CbmRoot
CbmStsFarDetectorHit.cxx
Go to the documentation of this file.
1 /*
2  * CbmStsFarDetectorHit.cxx
3  *
4  * Created on: 31 lip 2019
5  * Author: Daniel Wielanek
6  * E-mail: daniel.wielanek@gmail.com
7  * Warsaw University of Technology, Faculty of Physics
8  */
9 
10 #include "CbmStsFarDetectorHit.h"
11 
12 #include "CbmGlobalTrack.h"
13 
15  SetUnitName("FarHit [N]");
16  SetMinMax(0, 10);
17 }
18 
19 Bool_t CbmStsFarDetectorHit::Pass(NicaTrack* track) {
20  CbmGlobalTrack* tr = (CbmGlobalTrack*) track;
21  Int_t n = 0;
22  if (tr->GetTrdTrackIndex() >= 0) n++;
23  if (tr->GetTofHitIndex() >= 0) n++;
24  SetValue(n);
25  return Validate();
26 }
27 
29  // TODO Auto-generated destructor stub
30 }
CbmGlobalTrack.h
CbmStsFarDetectorHit::CbmStsFarDetectorHit
CbmStsFarDetectorHit()
Definition: CbmStsFarDetectorHit.cxx:14
CbmStsFarDetectorHit::~CbmStsFarDetectorHit
virtual ~CbmStsFarDetectorHit()
Definition: CbmStsFarDetectorHit.cxx:28
CbmGlobalTrack::GetTrdTrackIndex
Int_t GetTrdTrackIndex() const
Definition: CbmGlobalTrack.h:39
CbmStsFarDetectorHit::Pass
Bool_t Pass(NicaTrack *track)
Definition: CbmStsFarDetectorHit.cxx:19
CbmGlobalTrack
Definition: CbmGlobalTrack.h:26
CbmStsFarDetectorHit.h
CbmGlobalTrack::GetTofHitIndex
Int_t GetTofHitIndex() const
Definition: CbmGlobalTrack.h:42