FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
RhoEventSelectorBase Class Referenceabstract

#include <RhoEventSelectorBase.h>

Inheritance diagram for RhoEventSelectorBase:

Public Member Functions

 RhoEventSelectorBase (const char *name="RhoEventSelectorBase")
 
virtual ~RhoEventSelectorBase ()
 
virtual Bool_t Accept (RhoEventInfo &)=0
 
virtual void PrintOn (std::ostream &o=std::cout) const
 
void SetTight ()
 
void SetLoose ()
 
void SetNumberOfTracks (UInt_t n1, UInt_t n2=65535)
 
void SetPrimaryVertex (Double_t d, Double_t zMin, Double_t zMax)
 
void SetTotalCharge (Int_t n)
 
void SetTotalEnergy (Double_t e1, Double_t e2=1.E8)
 
void SetTotalMomentum (Double_t p1, Double_t p2=1.E8)
 
void SetEnergy (Double_t e1, Double_t e2=1.E8)
 
void SetShowerEnergy (Double_t e1, Double_t e2=1.E8)
 
void SetMomentum (Double_t p1, Double_t p2=1.E8)
 
void SetPt (Double_t p1, Double_t p2=1.E8)
 
void SetTheta (Double_t t1, Double_t t2=2.*3.14159265358979323846)
 
void SetPhi (Double_t p1, Double_t p2=2.*3.14159265358979323846)
 

Protected Attributes

Bool_t fTight
 
Int_t fNTracksMin
 
Int_t fNTracksMax
 
Int_t fTotChar
 
Double_t fDocaMax
 
Double_t fZMin
 
Double_t fZMax
 
Double_t fETotLow
 
Double_t fETotHigh
 
Double_t fPTotLow
 
Double_t fPTotHigh
 
Double_t fELow
 
Double_t fEHigh
 
Double_t fEmcLow
 
Double_t fEmcHigh
 
Double_t fPLow
 
Double_t fPHigh
 
Double_t fPtLow
 
Double_t fPtHigh
 
Double_t fThetaLow
 
Double_t fThetaHigh
 
Double_t fPhiLow
 
Double_t fPhiHigh
 

Detailed Description

Definition at line 30 of file RhoEventSelectorBase.h.

Constructor & Destructor Documentation

RhoEventSelectorBase::RhoEventSelectorBase ( const char *  name = "RhoEventSelectorBase")
inline

Definition at line 36 of file RhoEventSelectorBase.h.

36  :
37  TNamed ( name,name ),
38  fTight ( kFALSE ),
39  fNTracksMin ( 0 ), fNTracksMax ( 65535 ), fTotChar ( 65535 ),
40  fDocaMax ( 1.E8 ), fZMin ( 1.E8 ), fZMax ( 1.E8 ),
41  fETotLow ( 0.0 ), fETotHigh ( 1.E8 ),
42  fPTotLow ( 0.0 ), fPTotHigh ( 1.E8 ),
43  fELow ( 0.0 ), fEHigh ( 1.E8 ),
44  fEmcLow ( 0.0 ), fEmcHigh ( 1.E8 ),
45  fPLow ( 0.0 ), fPHigh ( 1.E8 ),
46  fPtLow ( 0.0 ), fPtHigh ( 1.E8 ),
47  fThetaLow ( 0.0 ), fThetaHigh ( 2.*3.14159265358979323846 ),
48  fPhiLow ( 0.0 ), fPhiHigh ( 2.*3.14159265358979323846 )
49  {}
TString name
virtual RhoEventSelectorBase::~RhoEventSelectorBase ( )
inlinevirtual

Definition at line 52 of file RhoEventSelectorBase.h.

52 {}

Member Function Documentation

virtual Bool_t RhoEventSelectorBase::Accept ( RhoEventInfo )
pure virtual
void RhoEventSelectorBase::PrintOn ( std::ostream o = std::cout) const
virtual

Definition at line 29 of file RhoEventSelectorBase.cxx.

Referenced by operator<<().

30 {
31  o << GetName() << " settings:";
32  if ( fTight ) { o << " Tight mode"; }
33  o << endl;
34  o << "Number of Tracks = " << fNTracksMin << " ... " << fNTracksMax << endl;
35  if ( fDocaMax < 1.E8 ) { o << "Primary vertex (d,-z,z) < (" << fDocaMax << ',' << fZMin << ',' << fZMax << ')' << endl; }
36  if ( fTotChar < 65535 ) { o << "Total charge < " << fTotChar << endl; }
37  if ( fETotLow > 0.0 ) { o << "Total energy = " << fETotLow << " ... " << fETotHigh << " GeV" << endl; }
38  if ( fPTotLow > 0.0 ) { o << "Total momentum = " << fPTotLow << " ... " << fPTotHigh << " GeV" << endl; }
39  if ( fELow > 0.0 ) { o << "Track energy = " << fELow << " ... " << fEHigh << " GeV" << endl; }
40  if ( fPLow > 0.0 ) { o << "Track momentum = " << fPLow << " ... " << fPHigh << " GeV" << endl; }
41  if ( fPtLow > 0.0 ) { o << "Track Pt = " << fPtLow << " ... " << fPtHigh << " GeV" << endl; }
42  if ( fEmcLow > 0.0 ) { o << "Track EMC energy = " << fEmcLow << " ... " << fEmcHigh << " GeV" << endl; }
43  if ( fThetaLow > 0.0 ) { o << "Track theta window = " << fThetaLow << " ... " << fThetaHigh << " Rad" << endl; }
44  if ( fPhiLow > 0.0 ) { o << "Track phi window = " << fPhiLow << " ... " << fPhiHigh << " Rad" << endl; }
45  o << endl;
46 }
void RhoEventSelectorBase::SetEnergy ( Double_t  e1,
Double_t  e2 = 1.E8 
)
inline

Definition at line 89 of file RhoEventSelectorBase.h.

References fEHigh, and fELow.

89  {
90  fELow = e1;
91  fEHigh = e2;
92  }
void RhoEventSelectorBase::SetLoose ( )
inline

Definition at line 64 of file RhoEventSelectorBase.h.

References fTight.

64  {
65  fTight = kFALSE;
66  };
void RhoEventSelectorBase::SetMomentum ( Double_t  p1,
Double_t  p2 = 1.E8 
)
inline

Definition at line 97 of file RhoEventSelectorBase.h.

References fPHigh, fPLow, p1, and p2.

97  {
98  fPLow = p1;
99  fPHigh = p2;
100  }
TPad * p2
Definition: hist-t7.C:117
TPad * p1
Definition: hist-t7.C:116
void RhoEventSelectorBase::SetNumberOfTracks ( UInt_t  n1,
UInt_t  n2 = 65535 
)
inline

Definition at line 68 of file RhoEventSelectorBase.h.

References fNTracksMax, and fNTracksMin.

68  {
69  fNTracksMin = n1;
70  fNTracksMax = n2;
71  }
void RhoEventSelectorBase::SetPhi ( Double_t  p1,
Double_t  p2 = 2.*3.14159265358979323846 
)
inline

Definition at line 109 of file RhoEventSelectorBase.h.

References fPhiHigh, fPhiLow, p1, and p2.

109  {
110  fPhiLow = p1;
111  fPhiHigh = p2;
112  }
TPad * p2
Definition: hist-t7.C:117
TPad * p1
Definition: hist-t7.C:116
void RhoEventSelectorBase::SetPrimaryVertex ( Double_t  d,
Double_t  zMin,
Double_t  zMax 
)
inline

Definition at line 72 of file RhoEventSelectorBase.h.

References d, fDocaMax, fZMax, and fZMin.

72  {
73  fDocaMax = d;
74  fZMin = zMin;
75  fZMax = zMax;
76  }
TObjArray * d
void RhoEventSelectorBase::SetPt ( Double_t  p1,
Double_t  p2 = 1.E8 
)
inline

Definition at line 101 of file RhoEventSelectorBase.h.

References fPtHigh, fPtLow, p1, and p2.

101  {
102  fPtLow = p1;
103  fPtHigh = p2;
104  }
TPad * p2
Definition: hist-t7.C:117
TPad * p1
Definition: hist-t7.C:116
void RhoEventSelectorBase::SetShowerEnergy ( Double_t  e1,
Double_t  e2 = 1.E8 
)
inline

Definition at line 93 of file RhoEventSelectorBase.h.

References fEmcHigh, and fEmcLow.

93  {
94  fEmcLow = e1;
95  fEmcHigh = e2;
96  }
void RhoEventSelectorBase::SetTheta ( Double_t  t1,
Double_t  t2 = 2.*3.14159265358979323846 
)
inline

Definition at line 105 of file RhoEventSelectorBase.h.

References fThetaHigh, fThetaLow, t1, and t2.

105  {
106  fThetaLow = t1;
107  fThetaHigh = t2;
108  }
Int_t t1
Definition: hist-t7.C:106
Int_t t2
Definition: hist-t7.C:106
void RhoEventSelectorBase::SetTight ( )
inline

Definition at line 61 of file RhoEventSelectorBase.h.

References fTight.

61  {
62  fTight = kTRUE;
63  };
void RhoEventSelectorBase::SetTotalCharge ( Int_t  n)
inline

Definition at line 77 of file RhoEventSelectorBase.h.

References fTotChar, and n.

77  {
78  fTotChar = n;
79  }
int n
void RhoEventSelectorBase::SetTotalEnergy ( Double_t  e1,
Double_t  e2 = 1.E8 
)
inline

Definition at line 80 of file RhoEventSelectorBase.h.

References fETotHigh, and fETotLow.

80  {
81  fETotLow = e1;
82  fETotHigh = e2;
83  }
void RhoEventSelectorBase::SetTotalMomentum ( Double_t  p1,
Double_t  p2 = 1.E8 
)
inline

Definition at line 84 of file RhoEventSelectorBase.h.

References fPTotHigh, fPTotLow, p1, and p2.

84  {
85  fPTotLow = p1;
86  fPTotHigh = p2;
87  }
TPad * p2
Definition: hist-t7.C:117
TPad * p1
Definition: hist-t7.C:116

Member Data Documentation

Double_t RhoEventSelectorBase::fDocaMax
protected

Definition at line 117 of file RhoEventSelectorBase.h.

Referenced by SetPrimaryVertex().

Double_t RhoEventSelectorBase::fEHigh
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetEnergy().

Double_t RhoEventSelectorBase::fELow
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetEnergy().

Double_t RhoEventSelectorBase::fEmcHigh
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetShowerEnergy().

Double_t RhoEventSelectorBase::fEmcLow
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetShowerEnergy().

Double_t RhoEventSelectorBase::fETotHigh
protected

Definition at line 118 of file RhoEventSelectorBase.h.

Referenced by SetTotalEnergy().

Double_t RhoEventSelectorBase::fETotLow
protected

Definition at line 118 of file RhoEventSelectorBase.h.

Referenced by SetTotalEnergy().

Int_t RhoEventSelectorBase::fNTracksMax
protected

Definition at line 116 of file RhoEventSelectorBase.h.

Referenced by SetNumberOfTracks().

Int_t RhoEventSelectorBase::fNTracksMin
protected

Definition at line 116 of file RhoEventSelectorBase.h.

Referenced by SetNumberOfTracks().

Double_t RhoEventSelectorBase::fPHigh
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetMomentum().

Double_t RhoEventSelectorBase::fPhiHigh
protected

Definition at line 120 of file RhoEventSelectorBase.h.

Referenced by SetPhi().

Double_t RhoEventSelectorBase::fPhiLow
protected

Definition at line 120 of file RhoEventSelectorBase.h.

Referenced by SetPhi().

Double_t RhoEventSelectorBase::fPLow
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetMomentum().

Double_t RhoEventSelectorBase::fPtHigh
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetPt().

Double_t RhoEventSelectorBase::fPtLow
protected

Definition at line 119 of file RhoEventSelectorBase.h.

Referenced by SetPt().

Double_t RhoEventSelectorBase::fPTotHigh
protected

Definition at line 118 of file RhoEventSelectorBase.h.

Referenced by SetTotalMomentum().

Double_t RhoEventSelectorBase::fPTotLow
protected

Definition at line 118 of file RhoEventSelectorBase.h.

Referenced by SetTotalMomentum().

Double_t RhoEventSelectorBase::fThetaHigh
protected

Definition at line 120 of file RhoEventSelectorBase.h.

Referenced by SetTheta().

Double_t RhoEventSelectorBase::fThetaLow
protected

Definition at line 120 of file RhoEventSelectorBase.h.

Referenced by SetTheta().

Bool_t RhoEventSelectorBase::fTight
protected

Definition at line 115 of file RhoEventSelectorBase.h.

Referenced by SetLoose(), and SetTight().

Int_t RhoEventSelectorBase::fTotChar
protected

Definition at line 116 of file RhoEventSelectorBase.h.

Referenced by SetTotalCharge().

Double_t RhoEventSelectorBase::fZMax
protected

Definition at line 117 of file RhoEventSelectorBase.h.

Referenced by SetPrimaryVertex().

Double_t RhoEventSelectorBase::fZMin
protected

Definition at line 117 of file RhoEventSelectorBase.h.

Referenced by SetPrimaryVertex().


The documentation for this class was generated from the following files: