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
14
CbmStsFarDetectorHit::CbmStsFarDetectorHit
() : NicaTrackCut(1) {
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
28
CbmStsFarDetectorHit::~CbmStsFarDetectorHit
() {
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
analysis
PWGC2F
femtoscopy
nicafemto
cuts
trackcuts
CbmStsFarDetectorHit.cxx
Generated on Wed Oct 28 2020 15:11:45 for CbmRoot by
1.8.18