FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
SimpleCand Class Reference

Public Member Functions

 SimpleCand ()
 
 SimpleCand (TLorentzVector lv, int pid, int id, int ch)
 
 SimpleCand (double x, double y, double z, double t, int pid, int id, int ch)
 
 ~SimpleCand ()
 
void Set (TLorentzVector lv, int pid, int id, int ch)
 
void SetP4 (TLorentzVector lv)
 
void SetP4 (double x, double y, double z, double t)
 
void SetMass (double mass)
 
void SetPid (int pid)
 
void SetPdg (int pdg)
 
void SetId (int id)
 
void SetCharge (int ch)
 
void SetMotherIdx (int idx)
 
void SetMct (bool mct=true)
 
void SetMcPid (bool mct=true)
 
void SetNSiblings (int n)
 
void SetNFS (int n)
 
void SetMarker (unsigned int i)
 
void SetDau (int n, int m=0)
 
void SetEvtId (int ev)
 
void AddDau (SimpleCand *c)
 
TLorentzVector P4 () const
 
int Pid () const
 
int Pdg () const
 
int Id () const
 
int EvtId () const
 
int Charge () const
 
int MotherIdx () const
 
int NSiblings () const
 
int NFS () const
 
bool Mct () const
 
bool McPid () const
 
unsigned int Marker () const
 
int DauF () const
 
int DauL () const
 
int NDau () const
 
bool IsDau (int idx) const
 
SimpleCandDau (int idx)
 

Private Attributes

TLorentzVector fLV
 
int fPid
 
int fPdg
 
int fId
 
int fEvtId
 
int fCh
 
int fMotherIdx
 
int fNSiblings
 
int fNFS
 
bool fMct
 
bool fMcPid
 
unsigned int fMarker
 
int fDauF
 
int fDauL
 
int fNDau
 
std::vector< SimpleCand * > fDaus
 

Detailed Description

Definition at line 3 of file SimpleCand.C.

Constructor & Destructor Documentation

SimpleCand::SimpleCand ( )
inline

Definition at line 5 of file SimpleCand.C.

References fCh, fDauF, fDauL, fDaus, fEvtId, fId, fLV, fMarker, fMcPid, fMct, fMotherIdx, fNDau, fNFS, fNSiblings, and fPid.

6  {fLV.SetXYZT(0.,0.,0.,0.); fPid = 0; fId = 0; fCh = 0; fMotherIdx=-1;
7  fMct=false; fMcPid=false; fNSiblings=1; fNFS=1; fMarker=1<<fId; fDauF=-1; fDauL=-1; fNDau = 0; fEvtId=-1;fDaus.clear();}
unsigned int fMarker
Definition: SimpleCand.C:69
int fEvtId
Definition: SimpleCand.C:62
std::vector< SimpleCand * > fDaus
Definition: SimpleCand.C:73
bool fMct
Definition: SimpleCand.C:67
int fMotherIdx
Definition: SimpleCand.C:64
int fNSiblings
Definition: SimpleCand.C:65
bool fMcPid
Definition: SimpleCand.C:68
TLorentzVector fLV
Definition: SimpleCand.C:58
SimpleCand::SimpleCand ( TLorentzVector  lv,
int  pid,
int  id,
int  ch 
)
inline

Definition at line 9 of file SimpleCand.C.

References fDauF, fDauL, fDaus, fEvtId, fId, fMarker, fMcPid, fMct, fMotherIdx, fNDau, fNFS, fNSiblings, and Set().

10  {Set(lv,pid,id,ch); fMotherIdx=-1; fMct=false; fMcPid=false;
11  fNSiblings=1; fNFS=1; fMarker=1<<fId; fDauF=-1; fDauL=-1;; fEvtId=-1;fNDau = 0; fDaus.clear();}
unsigned int fMarker
Definition: SimpleCand.C:69
int fEvtId
Definition: SimpleCand.C:62
int pid()
std::vector< SimpleCand * > fDaus
Definition: SimpleCand.C:73
bool fMct
Definition: SimpleCand.C:67
void Set(TLorentzVector lv, int pid, int id, int ch)
Definition: SimpleCand.C:19
int fMotherIdx
Definition: SimpleCand.C:64
int fNSiblings
Definition: SimpleCand.C:65
bool fMcPid
Definition: SimpleCand.C:68
SimpleCand::SimpleCand ( double  x,
double  y,
double  z,
double  t,
int  pid,
int  id,
int  ch 
)
inline

Definition at line 13 of file SimpleCand.C.

References fCh, fDauF, fDauL, fDaus, fEvtId, fId, fLV, fMarker, fMcPid, fMct, fMotherIdx, fNDau, fNFS, fNSiblings, fPid, and pid().

14  {fLV.SetXYZT(x,y,z,t); fPid = pid; fId = id; fCh=ch; fMotherIdx=-1;
15  fMct=false; fMcPid=false; fNSiblings=1;fNFS=1; fMarker=1<<fId; fDauF=-1; fDauL=-1;fNDau = 0 ; fEvtId=-1;fDaus.clear();}
unsigned int fMarker
Definition: SimpleCand.C:69
int fEvtId
Definition: SimpleCand.C:62
int pid()
std::vector< SimpleCand * > fDaus
Definition: SimpleCand.C:73
bool fMct
Definition: SimpleCand.C:67
Double_t z
Double_t x
int fMotherIdx
Definition: SimpleCand.C:64
int fNSiblings
Definition: SimpleCand.C:65
TTree * t
Definition: bump_analys.C:13
Double_t y
bool fMcPid
Definition: SimpleCand.C:68
TLorentzVector fLV
Definition: SimpleCand.C:58
SimpleCand::~SimpleCand ( )
inline

Definition at line 17 of file SimpleCand.C.

17 {};

Member Function Documentation

void SimpleCand::AddDau ( SimpleCand c)
inline

Definition at line 37 of file SimpleCand.C.

References fDaus, and fNDau.

Referenced by combine().

37 {fDaus.push_back(c); fNDau++;}
std::vector< SimpleCand * > fDaus
Definition: SimpleCand.C:73
int SimpleCand::Charge ( ) const
inline

Definition at line 44 of file SimpleCand.C.

References fCh.

Referenced by makeRecoCands(), printCand(), qaCand(), and select().

44 {return fCh;}
SimpleCand* SimpleCand::Dau ( int  idx)
inline

Definition at line 55 of file SimpleCand.C.

References fDaus, and idx.

55 {return fDaus[idx];}
std::vector< SimpleCand * > fDaus
Definition: SimpleCand.C:73
int idx[MAX]
Definition: autocutx.C:38
int SimpleCand::DauF ( ) const
inline

Definition at line 51 of file SimpleCand.C.

References fDauF.

51 {return fDauF;}
int SimpleCand::DauL ( ) const
inline

Definition at line 52 of file SimpleCand.C.

References fDauL.

52 {return fDauL;}
int SimpleCand::EvtId ( ) const
inline

Definition at line 43 of file SimpleCand.C.

References fEvtId.

43 {return fEvtId;}
int fEvtId
Definition: SimpleCand.C:62
int SimpleCand::Id ( ) const
inline

Definition at line 42 of file SimpleCand.C.

References fId.

Referenced by printCand().

42 {return fId;}
bool SimpleCand::IsDau ( int  idx) const
inline

Definition at line 54 of file SimpleCand.C.

References fDauF, fDauL, and NDau().

54 {return NDau()>0 ? (idx>=fDauF && idx<=fDauL) : false;}
int idx[MAX]
Definition: autocutx.C:38
int NDau() const
Definition: SimpleCand.C:53
unsigned int SimpleCand::Marker ( ) const
inline

Definition at line 50 of file SimpleCand.C.

References fMarker.

50 {return fMarker;}
unsigned int fMarker
Definition: SimpleCand.C:69
bool SimpleCand::McPid ( ) const
inline

Definition at line 49 of file SimpleCand.C.

References fMcPid.

Referenced by printCand(), and qaCand().

49 {return fMcPid;}
bool fMcPid
Definition: SimpleCand.C:68
bool SimpleCand::Mct ( ) const
inline

Definition at line 48 of file SimpleCand.C.

References fMct.

Referenced by printCand(), and qaCand().

48 {return fMct;}
bool fMct
Definition: SimpleCand.C:67
int SimpleCand::MotherIdx ( ) const
inline

Definition at line 45 of file SimpleCand.C.

References fMotherIdx.

Referenced by printCand().

45 {return fMotherIdx;}
int fMotherIdx
Definition: SimpleCand.C:64
int SimpleCand::NDau ( ) const
inline

Definition at line 53 of file SimpleCand.C.

References fDauF, and fDauL.

Referenced by IsDau().

53 { return (fDauF>0 && fDauL>0) ? fDauL-fDauF+1 : 0;}
int SimpleCand::NFS ( ) const
inline

Definition at line 47 of file SimpleCand.C.

References fNFS.

Referenced by printCand().

47 {return fNFS;}
int SimpleCand::NSiblings ( ) const
inline

Definition at line 46 of file SimpleCand.C.

References fNSiblings.

Referenced by printCand().

46 {return fNSiblings;}
int fNSiblings
Definition: SimpleCand.C:65
TLorentzVector SimpleCand::P4 ( ) const
inline

Definition at line 39 of file SimpleCand.C.

References fLV.

Referenced by boostList(), makeRecoCands(), printCand(), qaCand(), smearMom(), and softtrigger_kin5().

39 {return fLV;}
TLorentzVector fLV
Definition: SimpleCand.C:58
int SimpleCand::Pdg ( ) const
inline

Definition at line 41 of file SimpleCand.C.

References fPdg.

Referenced by qaCand().

41 {return fPdg;}
int SimpleCand::Pid ( ) const
inline

Definition at line 40 of file SimpleCand.C.

References fPid.

Referenced by makeRecoCands(), printCand(), qaCand(), and select().

40 {return fPid;}
void SimpleCand::Set ( TLorentzVector  lv,
int  pid,
int  id,
int  ch 
)
inline

Definition at line 19 of file SimpleCand.C.

References fCh, fId, fLV, fMarker, fPid, and pid().

Referenced by SimpleCand().

19 {fLV = lv; fPid = pid; fId = id; fCh = ch; fMarker=1<<fId;}
unsigned int fMarker
Definition: SimpleCand.C:69
int pid()
TLorentzVector fLV
Definition: SimpleCand.C:58
void SimpleCand::SetCharge ( int  ch)
inline

Definition at line 27 of file SimpleCand.C.

References fCh.

Referenced by combine().

27 {fCh = ch;}
void SimpleCand::SetDau ( int  n,
int  m = 0 
)
inline

Definition at line 34 of file SimpleCand.C.

References fDauF, fDauL, m, and n.

Referenced by softtrigger_kin5(), softtrigger_toy12(), and toy_core().

34 {fDauF=n; fDauL=m==0?n:m;}
__m128 m
Definition: P4_F32vec4.h:28
int n
void SimpleCand::SetEvtId ( int  ev)
inline

Definition at line 35 of file SimpleCand.C.

References ev, and fEvtId.

Referenced by combine(), softtrigger_kin5(), softtrigger_toy12(), and toy_core().

35 {fEvtId = ev;}
int fEvtId
Definition: SimpleCand.C:62
int ev
void SimpleCand::SetId ( int  id)
inline

Definition at line 26 of file SimpleCand.C.

References fId.

Referenced by combine().

26 {fId = id;}
void SimpleCand::SetMarker ( unsigned int  i)
inline

Definition at line 33 of file SimpleCand.C.

References fMarker, and i.

Referenced by combine(), and makeRecoCands().

33 {fMarker = i;}
unsigned int fMarker
Definition: SimpleCand.C:69
Int_t i
Definition: run_full.C:25
void SimpleCand::SetMass ( double  mass)
inline

Definition at line 22 of file SimpleCand.C.

References fabs(), and fLV.

Referenced by makeRecoCands(), and select().

22 { fLV.SetVectM(fLV.Vect(),fabs(mass)); }
friend F32vec4 fabs(const F32vec4 &a)
Definition: P4_F32vec4.h:47
TLorentzVector fLV
Definition: SimpleCand.C:58
void SimpleCand::SetMcPid ( bool  mct = true)
inline

Definition at line 30 of file SimpleCand.C.

References fMcPid, and mct.

Referenced by combine(), and select().

30 { fMcPid=mct; }
bool fMcPid
Definition: SimpleCand.C:68
PndMCTrack * mct
Definition: hist-t7.C:147
void SimpleCand::SetMct ( bool  mct = true)
inline

Definition at line 29 of file SimpleCand.C.

References fMct, and mct.

Referenced by combine().

29 { fMct=mct; }
bool fMct
Definition: SimpleCand.C:67
PndMCTrack * mct
Definition: hist-t7.C:147
void SimpleCand::SetMotherIdx ( int  idx)
inline

Definition at line 28 of file SimpleCand.C.

References fMotherIdx, and idx.

Referenced by combine(), softtrigger_kin5(), softtrigger_toy12(), and toy_core().

28 {fMotherIdx=idx;}
int idx[MAX]
Definition: autocutx.C:38
int fMotherIdx
Definition: SimpleCand.C:64
void SimpleCand::SetNFS ( int  n)
inline

Definition at line 32 of file SimpleCand.C.

References fNFS, and n.

Referenced by combine().

32 { fNFS=n; }
int n
void SimpleCand::SetNSiblings ( int  n)
inline

Definition at line 31 of file SimpleCand.C.

References fNSiblings, and n.

Referenced by softtrigger_kin5(), softtrigger_toy12(), and toy_core().

31 { fNSiblings=n; }
int n
int fNSiblings
Definition: SimpleCand.C:65
void SimpleCand::SetP4 ( TLorentzVector  lv)
inline

Definition at line 20 of file SimpleCand.C.

References fLV.

Referenced by boostList(), combine(), and smearMom().

20 {fLV = lv;}
TLorentzVector fLV
Definition: SimpleCand.C:58
void SimpleCand::SetP4 ( double  x,
double  y,
double  z,
double  t 
)
inline

Definition at line 21 of file SimpleCand.C.

References fLV.

21 {fLV.SetXYZT(x,y,z,t);}
Double_t z
Double_t x
TTree * t
Definition: bump_analys.C:13
Double_t y
TLorentzVector fLV
Definition: SimpleCand.C:58
void SimpleCand::SetPdg ( int  pdg)
inline

Definition at line 25 of file SimpleCand.C.

References fPdg.

Referenced by combine(), makeRecoCands(), and select().

25 {fPdg = pdg;}
void SimpleCand::SetPid ( int  pid)
inline

Definition at line 24 of file SimpleCand.C.

References fPid, and pid().

24 {fPid = pid;}
int pid()

Member Data Documentation

int SimpleCand::fCh
private

Definition at line 63 of file SimpleCand.C.

Referenced by Charge(), Set(), SetCharge(), and SimpleCand().

int SimpleCand::fDauF
private

Definition at line 70 of file SimpleCand.C.

Referenced by DauF(), IsDau(), NDau(), SetDau(), and SimpleCand().

int SimpleCand::fDauL
private

Definition at line 71 of file SimpleCand.C.

Referenced by DauL(), IsDau(), NDau(), SetDau(), and SimpleCand().

std::vector<SimpleCand*> SimpleCand::fDaus
private

Definition at line 73 of file SimpleCand.C.

Referenced by AddDau(), Dau(), and SimpleCand().

int SimpleCand::fEvtId
private

Definition at line 62 of file SimpleCand.C.

Referenced by EvtId(), SetEvtId(), and SimpleCand().

int SimpleCand::fId
private

Definition at line 61 of file SimpleCand.C.

Referenced by Id(), Set(), SetId(), and SimpleCand().

TLorentzVector SimpleCand::fLV
private

Definition at line 58 of file SimpleCand.C.

Referenced by P4(), Set(), SetMass(), SetP4(), and SimpleCand().

unsigned int SimpleCand::fMarker
private

Definition at line 69 of file SimpleCand.C.

Referenced by Marker(), Set(), SetMarker(), and SimpleCand().

bool SimpleCand::fMcPid
private

Definition at line 68 of file SimpleCand.C.

Referenced by McPid(), SetMcPid(), and SimpleCand().

bool SimpleCand::fMct
private

Definition at line 67 of file SimpleCand.C.

Referenced by Mct(), SetMct(), and SimpleCand().

int SimpleCand::fMotherIdx
private

Definition at line 64 of file SimpleCand.C.

Referenced by MotherIdx(), SetMotherIdx(), and SimpleCand().

int SimpleCand::fNDau
private

Definition at line 72 of file SimpleCand.C.

Referenced by AddDau(), and SimpleCand().

int SimpleCand::fNFS
private

Definition at line 66 of file SimpleCand.C.

Referenced by NFS(), SetNFS(), and SimpleCand().

int SimpleCand::fNSiblings
private

Definition at line 65 of file SimpleCand.C.

Referenced by NSiblings(), SetNSiblings(), and SimpleCand().

int SimpleCand::fPdg
private

Definition at line 60 of file SimpleCand.C.

Referenced by Pdg(), and SetPdg().

int SimpleCand::fPid
private

Definition at line 59 of file SimpleCand.C.

Referenced by Pid(), Set(), SetPid(), and SimpleCand().


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