CbmRoot
CbmTofTrackCuts.h
Go to the documentation of this file.
1 /*
2  * CbmTofTrackCuts.h
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 #ifndef NICA_CBM_CUTS_TRACKCUTS_CBMTOFTRACKCUTS_H_
10 #define NICA_CBM_CUTS_TRACKCUTS_CBMTOFTRACKCUTS_H_
11 
12 #include "NicaTrackCut.h"
13 #include "NicaTrackToFMass2Cut.h"
14 
15 class CbmTofTrackCuts : public NicaTrackCut {
16  const Double_t fOneOverC;
17 
18 public:
20  static Int_t M2() { return 0; }
21  static Int_t Beta() { return 1; }
22  void SetM2Cut(Double_t min, Double_t max);
23  void SetBetaCut(Double_t min, Double_t max);
24  Bool_t Pass(NicaTrack* track);
25  virtual ~CbmTofTrackCuts();
26  ClassDef(CbmTofTrackCuts, 1)
27 };
28 
29 class CbmTofM2Cut : public NicaTrackToFMass2Cut {
30  const Double_t fOneOverC;
31 
32 public:
33  CbmTofM2Cut();
34  CbmTofM2Cut(const CbmTofM2Cut& other);
35  virtual Bool_t Init(Int_t format_id = 0);
36  Bool_t Pass(NicaTrack* track);
37  virtual ~CbmTofM2Cut();
38  ClassDef(CbmTofM2Cut, 1)
39 };
40 
41 class CbmTofMassCut : public NicaTrackCut {
42  const Double_t fOneOverC;
43 
44 public:
45  CbmTofMassCut();
46  Bool_t Pass(NicaTrack* track);
47  virtual ~CbmTofMassCut();
48  ClassDef(CbmTofMassCut, 1)
49 };
50 #endif /* NICA_CBM_CUTS_TRACKCUTS_CBMTOFTRACKCUTS_H_ */
CbmTofMassCut
Definition: CbmTofTrackCuts.h:41
CbmTofTrackCuts
Definition: CbmTofTrackCuts.h:15
CbmTofM2Cut::Pass
Bool_t Pass(NicaTrack *track)
Definition: CbmTofTrackCuts.cxx:56
CbmTofMassCut::fOneOverC
const Double_t fOneOverC
Definition: CbmTofTrackCuts.h:42
CbmTofM2Cut::CbmTofM2Cut
CbmTofM2Cut()
Definition: CbmTofTrackCuts.cxx:52
min
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:33
CbmTofM2Cut::Init
virtual Bool_t Init(Int_t format_id=0)
Definition: CbmTofTrackCuts.cxx:100
CbmTofMassCut::CbmTofMassCut
CbmTofMassCut()
Definition: CbmTofTrackCuts.cxx:77
CbmTofTrackCuts::fOneOverC
const Double_t fOneOverC
Definition: CbmTofTrackCuts.h:16
CbmTofM2Cut::~CbmTofM2Cut
virtual ~CbmTofM2Cut()
Definition: CbmTofTrackCuts.cxx:75
CbmTofTrackCuts::Beta
static Int_t Beta()
Definition: CbmTofTrackCuts.h:21
CbmTofM2Cut
Definition: CbmTofTrackCuts.h:29
CbmTofMassCut::Pass
Bool_t Pass(NicaTrack *track)
Definition: CbmTofTrackCuts.cxx:81
CbmTofTrackCuts::M2
static Int_t M2()
Definition: CbmTofTrackCuts.h:20
CbmTofTrackCuts::SetBetaCut
void SetBetaCut(Double_t min, Double_t max)
Definition: CbmTofTrackCuts.cxx:26
CbmTofTrackCuts::~CbmTofTrackCuts
virtual ~CbmTofTrackCuts()
Definition: CbmTofTrackCuts.cxx:48
CbmTofMassCut::~CbmTofMassCut
virtual ~CbmTofMassCut()
Definition: CbmTofTrackCuts.cxx:98
CbmTofTrackCuts::CbmTofTrackCuts
CbmTofTrackCuts()
Definition: CbmTofTrackCuts.cxx:14
CbmTofTrackCuts::SetM2Cut
void SetM2Cut(Double_t min, Double_t max)
Definition: CbmTofTrackCuts.cxx:22
max
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:36
CbmTofM2Cut::fOneOverC
const Double_t fOneOverC
Definition: CbmTofTrackCuts.h:30
CbmTofTrackCuts::Pass
Bool_t Pass(NicaTrack *track)
Definition: CbmTofTrackCuts.cxx:30