PandaRoot
PndFtsSimpleHit.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //
14 // Created by Bartosz Sobol on 30.04.2020.
15 //
16 
17 #pragma once
18 
19 #include <vector>
20 #include <cstdint>
21 #include <PndFtsHit.h>
22 
23 #include "PndFtsSimpleHit.h"
24 
25 namespace PndFtsTrackFinder {
26 
32 
33  PndFtsSimpleHit() = default;
34 
35  explicit PndFtsSimpleHit(const PndFtsHit *pndHit, const uint16_t pndHitId)
36  : fPndHitId{pndHitId}, fStrawId{static_cast<uint16_t>(pndHit->GetTubeID())}, fIsochrone{static_cast<float>(pndHit->GetIsochrone())}
37  {
38  }
39 
40  uint16_t fPndHitId;
41  uint16_t fStrawId;
42  float fIsochrone;
43 
50  inline bool operator<(const PndFtsSimpleHit &rhs) const noexcept { return this->fStrawId < rhs.fStrawId; }
51 };
52 
53 using SimpleHitVector = std::vector<PndFtsSimpleHit>;
54 
55 } // namespace PndFtsTrackFinder
bool operator<(const PndFtsSimpleHit &rhs) const noexcept
PndFtsSimpleHit(const PndFtsHit *pndHit, const uint16_t pndHitId)
std::vector< PndFtsSimpleHit > SimpleHitVector
uint16_t fStrawId
ID (number) of the hit Straw.
uint16_t fPndHitId
Hit Id in Panda Event.