FairRoot/PandaRoot
|
Simple particle candidate to perform simple combinatorics and particle counting for event filtering. More...
#include <PndSmpCand.h>
Public Member Functions | |
PndSmpCand () | |
Default constructor. More... | |
PndSmpCand (TLorentzVector lv, Float_t chrg, Int_t pdg=0, Int_t uid=-1) | |
Constructor from Lorentz vector reference. More... | |
PndSmpCand (TLorentzVector *lv, Float_t chrg, Int_t pdg=0, Int_t uid=-1) | |
Constructor from pointer to Lorentz vector . More... | |
PndSmpCand (Int_t pdg, PndSmpCand &c0, PndSmpCand &c1) | |
Constructor from 2 daughters. Calls CombCand. More... | |
PndSmpCand (Int_t pdg, PndSmpCand &c0, PndSmpCand &c1, PndSmpCand &c2) | |
Constructor from 3 daughters. Calls CombCand. More... | |
PndSmpCand (Int_t pdg, PndSmpCand &c0, PndSmpCand &c1, PndSmpCand &c2, PndSmpCand &c3) | |
Constructor from 4 daughters. Calls CombCand. More... | |
PndSmpCand (Int_t pdg, PndSmpCand &c0, PndSmpCand &c1, PndSmpCand &c2, PndSmpCand &c3, PndSmpCand &c4) | |
Constructor from 5 daughters. Calls CombCand. More... | |
PndSmpCand (Int_t pdg, PndSmpCand *c0, PndSmpCand *c1, PndSmpCand *c2=0, PndSmpCand *c3=0, PndSmpCand *c4=0) | |
Constructor from up to 5 daughter pointers. Calls CombCand. More... | |
void | SetP4 (TLorentzVector p4) |
Sets LorentzVector. More... | |
void | SetM (Double_t m) |
Sets mass (used for different mass hypotheses in filter. More... | |
void | SetCharge (Float_t ch) |
Sets charge. More... | |
Bool_t | operator== (const PndSmpCand &c1) const |
Overload of == operator needed to compare std::vectors of candidates. More... | |
Bool_t | operator!= (const PndSmpCand &c1) const |
Overload of == operator needed to compare std::vectors of candidates. More... | |
void | CombCand (Int_t pdg, PndSmpCand *c0, PndSmpCand *c1, PndSmpCand *c2=0, PndSmpCand *c3=0, PndSmpCand *c4=0) |
Combines this candidate from several daughters (adds P4 and charges). More... | |
TLorentzVector | P4 () |
Float_t | Charge () |
Int_t | Pdg () |
Int_t | NDau () |
ULong_t | Marker () |
PndSmpCand * | Dau (Int_t idx) |
Bool_t | Overlap (PndSmpCand *c) |
Bool_t | Overlap (PndSmpCand &c) |
void | Print () |
Private Member Functions | |
void | PrintBinary (ULong_t x) |
Prints a unsigned int as bit string. More... | |
Private Attributes | |
TLorentzVector | fLV |
Float_t | fCharge |
Int_t | fPdgCode |
Int_t | fUniqueID |
ULong_t | fMarker |
Int_t | fNDau |
PndSmpCand * | fDaughter [5] |
Simple particle candidate to perform simple combinatorics and particle counting for event filtering.
This class defines a simple particle candidate, which allows simple combinatoric with overlap check and provides access to its internal 4-vector.
Definition at line 23 of file PndSmpCand.h.
|
inline |
PndSmpCand::PndSmpCand | ( | TLorentzVector | lv, |
Float_t | chrg, | ||
Int_t | pdg = 0 , |
||
Int_t | uid = -1 |
||
) |
PndSmpCand::PndSmpCand | ( | TLorentzVector * | lv, |
Float_t | chrg, | ||
Int_t | pdg = 0 , |
||
Int_t | uid = -1 |
||
) |
|
inline |
Constructor from 2 daughters. Calls CombCand.
Definition at line 36 of file PndSmpCand.h.
References CombCand().
|
inline |
Constructor from 3 daughters. Calls CombCand.
Definition at line 38 of file PndSmpCand.h.
References CombCand().
|
inline |
Constructor from 4 daughters. Calls CombCand.
Definition at line 40 of file PndSmpCand.h.
References CombCand().
|
inline |
Constructor from 5 daughters. Calls CombCand.
Definition at line 42 of file PndSmpCand.h.
References CombCand().
|
inline |
Constructor from up to 5 daughter pointers. Calls CombCand.
Definition at line 45 of file PndSmpCand.h.
References c2, c3, c4, and CombCand().
|
inline |
void PndSmpCand::CombCand | ( | Int_t | pdg, |
PndSmpCand * | c0, | ||
PndSmpCand * | c1, | ||
PndSmpCand * | c2 = 0 , |
||
PndSmpCand * | c3 = 0 , |
||
PndSmpCand * | c4 = 0 |
||
) |
Combines this candidate from several daughters (adds P4 and charges).
Definition at line 45 of file PndSmpCand.cxx.
References c1, c2, c3, c4, fCharge, fDaughter, fLV, fMarker, fNDau, fPdgCode, and fUniqueID.
Referenced by PndSmpCand().
|
inline |
|
inline |
|
inline |
|
inline |
Overload of == operator needed to compare std::vectors of candidates.
Definition at line 59 of file PndSmpCand.h.
References c1.
|
inline |
Overload of == operator needed to compare std::vectors of candidates.
Definition at line 57 of file PndSmpCand.h.
References fMarker, and fPdgCode.
|
inline |
Definition at line 70 of file PndSmpCand.h.
References fMarker.
Referenced by PndFilteredPrimaryGenerator::CombineList().
|
inline |
|
inline |
|
inline |
void PndSmpCand::Print | ( | ) |
Definition at line 35 of file PndSmpCand.cxx.
References fCharge, fLV, fMarker, fPdgCode, fUniqueID, PrintBinary(), and printf().
|
inlineprivate |
Prints a unsigned int as bit string.
Definition at line 77 of file PndSmpCand.h.
Referenced by Print().
|
inline |
|
inline |
Sets mass (used for different mass hypotheses in filter.
Definition at line 51 of file PndSmpCand.h.
|
inline |
Sets LorentzVector.
Definition at line 49 of file PndSmpCand.h.
References fLV.
Referenced by PndFilteredPrimaryGenerator::GenerateEvent().
|
private |
Definition at line 85 of file PndSmpCand.h.
Referenced by Charge(), CombCand(), Print(), and SetCharge().
|
private |
Definition at line 90 of file PndSmpCand.h.
Referenced by CombCand(), Dau(), and PndSmpCand().
|
private |
Definition at line 84 of file PndSmpCand.h.
Referenced by CombCand(), P4(), Print(), SetM(), and SetP4().
|
private |
Definition at line 88 of file PndSmpCand.h.
Referenced by CombCand(), Marker(), operator==(), Overlap(), PndSmpCand(), and Print().
|
private |
Definition at line 89 of file PndSmpCand.h.
Referenced by CombCand(), Dau(), and NDau().
|
private |
Definition at line 86 of file PndSmpCand.h.
Referenced by CombCand(), operator==(), Pdg(), and Print().
|
private |
Definition at line 87 of file PndSmpCand.h.
Referenced by CombCand(), PndSmpCand(), and Print().