PandaRoot
PndFtsSimpleHit.h
Go to the documentation of this file.
1 //
2 // Created by Bartosz Sobol on 30.04.2020.
3 //
4 
5 #pragma once
6 
7 #include <vector>
8 #include <cstdint>
9 #include <PndFtsHit.h>
10 
11 #include "PndFtsSimpleHit.h"
12 
13 namespace PndFtsTrackFinder {
14 
20 
21  PndFtsSimpleHit() = default;
22 
23  explicit PndFtsSimpleHit(const PndFtsHit *pndHit, const uint16_t pndHitId)
24  : fPndHitId{pndHitId}, fStrawId{static_cast<uint16_t>(pndHit->GetTubeID())}, fIsochrone{static_cast<float>(pndHit->GetIsochrone())}
25  {
26  }
27 
28  uint16_t fPndHitId;
29  uint16_t fStrawId;
30  float fIsochrone;
31 
38  inline bool operator<(const PndFtsSimpleHit &rhs) const noexcept { return this->fStrawId < rhs.fStrawId; }
39 };
40 
41 using SimpleHitVector = std::vector<PndFtsSimpleHit>;
42 
43 } // 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.