PandaRoot
PndAnalysis Class Reference

#include <PndAnalysis.h>

Inheritance diagram for PndAnalysis:
PndSpectroscopyAnalysis

Public Member Functions

 PndAnalysis (TString tname1="", TString tname2="", TString algnamec="PidAlgoIdealCharged", TString algnamen="PidAlgoIdealNeutral")
 
virtual ~PndAnalysis ()
 
void Rewind ()
 
void Reset ()
 
Int_t GetEvent (Int_t n=-1)
 
void GetEventInTask ()
 
FairMCEventHeader * GetEventHeader ()
 
Int_t GetEntries ()
 
Bool_t FillList (RhoCandList &l, TString listkey="All", TString pidTcaNames="", int trackHypothesis=-1)
 
void SetGoodTrackCriterion (TString crit="veryLoose")
 
void SetVerbose (Int_t level)
 
Bool_t PropagateToIp (RhoCandidate *cand)
 
Bool_t PropagateToZAxis (RhoCandidate *cand)
 
Bool_t PropagateToPoint (RhoCandidate *cand, TVector3 mypoint)
 
Bool_t PropagateToPlane (RhoCandidate *cand, TVector3 origin, TVector3 dj, TVector3 dk)
 
PndTrackGetTrack (RhoCandidate *cand)
 
FairTrackParP GetFirstPar (RhoCandidate *cand)
 
Bool_t ResetCandidate (RhoCandidate *cand)
 
Bool_t ResetDaughters (RhoCandidate *cand)
 
Bool_t McTruthMatch (RhoCandidate *cand, Int_t level=2, bool verbose=false)
 
std::vector< int > McTruthMatch (RhoCandList &list, Int_t level=2, bool verbose=false)
 
void McMatchAllowPhotos (int maxn=1, double thresh=0.05)
 
Bool_t Propagator (int mode, FairTrackParP &tStart, RhoCandidate *cand, TVector3 point=TVector3(0, 0, 0), Bool_t skipcov=kFALSE, Bool_t overwrite=kFALSE, TVector3 planej=TVector3(1, 0, 0), TVector3 planek=TVector3(0, 1, 0))
 

Protected Member Functions

void Init ()
 
virtual void BuildMcCands ()
 
Bool_t GetMcCandList (RhoCandList &l)
 
void ReadRecoCandidates ()
 
void Cleanup ()
 
TClonesArray * ReadTCA (TString tcaname)
 
Bool_t MctMatch (RhoCandidate &c, RhoCandList &mct, Int_t level=2, bool verbose=false)
 
Bool_t MctMatch (RhoCandidate *c, RhoCandList &mct, Int_t level=2, bool verbose=false)
 
 ClassDef (PndAnalysis, 0)
 

Protected Attributes

FairRootManager * fRootManager
 
PndAnaPidSelectorfPidSelector
 
PndAnaPidCombinerfPidCombiner
 
RhoGoodPhotonSelectorfGoodPhotonSelector
 
RhoGoodTrackSelectorfGoodTrackSelector
 
Int_t fEvtCount
 
Int_t fChainEntries
 
Bool_t fEventRead
 
Bool_t fBuildMcCands
 
Int_t fVerbose
 
Int_t fPhotosMax
 
Double_t fPhotosThresh
 
std::map< int, RhoCandidate * > fMcPresenceMap
 
std::array< TClonesArray *, 6 > fChargedCands
 
std::array< TClonesArray *, 6 > fBremCorr
 
TClonesArray * fNeutralCands
 
std::array< TClonesArray *, 6 > fChargedProbability
 
std::array< TClonesArray *, 6 > fTracks
 
std::array< TClonesArray *, 6 > fTracks2
 
TClonesArray * fMcCands
 
TClonesArray * fMcTracks
 
std::array< RhoCandList, 6 > fChargedCandList
 
RhoCandList fNeutralCandList
 
RhoCandList fAllCandList
 
RhoCandList fMcCandList
 
TString fChargedPidName
 
TString fNeutralPidName
 
TString fTracksName
 
TString fTracksName2
 
TString fPidHypoStr [6]
 
Int_t fHypoPdg [6]
 
Bool_t fHypoFlagCharged [6]
 
Int_t fDefaultHypo
 Flag to check which hypo lists exists //0-4 for trk hypothesis, 5 for fallback. More...
 

Detailed Description

Definition at line 34 of file PndAnalysis.h.

Constructor & Destructor Documentation

◆ PndAnalysis()

PndAnalysis::PndAnalysis ( TString  tname1 = "",
TString  tname2 = "",
TString  algnamec = "PidAlgoIdealCharged",
TString  algnamen = "PidAlgoIdealNeutral" 
)

◆ ~PndAnalysis()

virtual PndAnalysis::~PndAnalysis ( )
virtual

Member Function Documentation

◆ BuildMcCands()

virtual void PndAnalysis::BuildMcCands ( )
protectedvirtual

Reimplemented in PndSpectroscopyAnalysis.

Referenced by McMatchAllowPhotos().

◆ ClassDef()

PndAnalysis::ClassDef ( PndAnalysis  ,
 
)
protected

◆ Cleanup()

void PndAnalysis::Cleanup ( )
protected

Referenced by McMatchAllowPhotos().

◆ FillList()

Bool_t PndAnalysis::FillList ( RhoCandList l,
TString  listkey = "All",
TString  pidTcaNames = "",
int  trackHypothesis = -1 
)

Referenced by Reset().

◆ GetEntries()

Int_t PndAnalysis::GetEntries ( )

Referenced by Reset().

◆ GetEvent()

Int_t PndAnalysis::GetEvent ( Int_t  n = -1)

Referenced by Reset().

◆ GetEventHeader()

FairMCEventHeader* PndAnalysis::GetEventHeader ( )

Referenced by Reset().

◆ GetEventInTask()

void PndAnalysis::GetEventInTask ( )

Referenced by Reset().

◆ GetFirstPar()

FairTrackParP PndAnalysis::GetFirstPar ( RhoCandidate cand)

Referenced by SetVerbose().

◆ GetMcCandList()

Bool_t PndAnalysis::GetMcCandList ( RhoCandList l)
protected

Referenced by McMatchAllowPhotos().

◆ GetTrack()

PndTrack* PndAnalysis::GetTrack ( RhoCandidate cand)

Referenced by SetVerbose().

◆ Init()

void PndAnalysis::Init ( )
protected

Referenced by McMatchAllowPhotos().

◆ McMatchAllowPhotos()

void PndAnalysis::McMatchAllowPhotos ( int  maxn = 1,
double  thresh = 0.05 
)
inline

Definition at line 66 of file PndAnalysis.h.

References BuildMcCands(), Cleanup(), fPhotosMax, fPhotosThresh, GetMcCandList(), Init(), Propagator(), ReadRecoCandidates(), and ReadTCA().

67  {
68  fPhotosMax = maxn;
69  fPhotosThresh = thresh;
70  }
Double_t fPhotosThresh
Definition: PndAnalysis.h:105
Int_t fPhotosMax
Definition: PndAnalysis.h:104

◆ MctMatch() [1/2]

Bool_t PndAnalysis::MctMatch ( RhoCandidate c,
RhoCandList mct,
Int_t  level = 2,
bool  verbose = false 
)
inlineprotected

Definition at line 90 of file PndAnalysis.h.

References MctMatch().

Referenced by MctMatch().

90 { return MctMatch(&c, mct, level, verbose); };
Bool_t MctMatch(RhoCandidate &c, RhoCandList &mct, Int_t level=2, bool verbose=false)
Definition: PndAnalysis.h:90

◆ MctMatch() [2/2]

Bool_t PndAnalysis::MctMatch ( RhoCandidate c,
RhoCandList mct,
Int_t  level = 2,
bool  verbose = false 
)
protected

◆ McTruthMatch() [1/2]

Bool_t PndAnalysis::McTruthMatch ( RhoCandidate cand,
Int_t  level = 2,
bool  verbose = false 
)

Referenced by SetVerbose().

◆ McTruthMatch() [2/2]

std::vector<int> PndAnalysis::McTruthMatch ( RhoCandList list,
Int_t  level = 2,
bool  verbose = false 
)

◆ PropagateToIp()

Bool_t PndAnalysis::PropagateToIp ( RhoCandidate cand)

Referenced by SetVerbose().

◆ PropagateToPlane()

Bool_t PndAnalysis::PropagateToPlane ( RhoCandidate cand,
TVector3  origin,
TVector3  dj,
TVector3  dk 
)

Referenced by SetVerbose().

◆ PropagateToPoint()

Bool_t PndAnalysis::PropagateToPoint ( RhoCandidate cand,
TVector3  mypoint 
)

Referenced by SetVerbose().

◆ PropagateToZAxis()

Bool_t PndAnalysis::PropagateToZAxis ( RhoCandidate cand)

Referenced by SetVerbose().

◆ Propagator()

Bool_t PndAnalysis::Propagator ( int  mode,
FairTrackParP &  tStart,
RhoCandidate cand,
TVector3  point = TVector3(0, 0, 0),
Bool_t  skipcov = kFALSE,
Bool_t  overwrite = kFALSE,
TVector3  planej = TVector3(1, 0, 0),
TVector3  planek = TVector3(0, 1, 0) 
)

Referenced by McMatchAllowPhotos().

◆ ReadRecoCandidates()

void PndAnalysis::ReadRecoCandidates ( )
protected

Referenced by McMatchAllowPhotos().

◆ ReadTCA()

TClonesArray* PndAnalysis::ReadTCA ( TString  tcaname)
protected

Referenced by McMatchAllowPhotos().

◆ Reset()

void PndAnalysis::Reset ( )
inline

◆ ResetCandidate()

Bool_t PndAnalysis::ResetCandidate ( RhoCandidate cand)

Referenced by SetVerbose().

◆ ResetDaughters()

Bool_t PndAnalysis::ResetDaughters ( RhoCandidate cand)

Referenced by SetVerbose().

◆ Rewind()

void PndAnalysis::Rewind ( )

Referenced by Reset().

◆ SetGoodTrackCriterion()

void PndAnalysis::SetGoodTrackCriterion ( TString  crit = "veryLoose")

Referenced by Reset().

◆ SetVerbose()

void PndAnalysis::SetVerbose ( Int_t  level)
inline

Member Data Documentation

◆ fAllCandList

RhoCandList PndAnalysis::fAllCandList
protected

Definition at line 121 of file PndAnalysis.h.

◆ fBremCorr

std::array<TClonesArray *, 6> PndAnalysis::fBremCorr
protected

Definition at line 110 of file PndAnalysis.h.

◆ fBuildMcCands

Bool_t PndAnalysis::fBuildMcCands
protected

Definition at line 102 of file PndAnalysis.h.

◆ fChainEntries

Int_t PndAnalysis::fChainEntries
protected

Definition at line 100 of file PndAnalysis.h.

◆ fChargedCandList

std::array<RhoCandList, 6> PndAnalysis::fChargedCandList
protected

Definition at line 119 of file PndAnalysis.h.

◆ fChargedCands

std::array<TClonesArray *, 6> PndAnalysis::fChargedCands
protected

Definition at line 109 of file PndAnalysis.h.

◆ fChargedPidName

TString PndAnalysis::fChargedPidName
protected

Definition at line 124 of file PndAnalysis.h.

◆ fChargedProbability

std::array<TClonesArray *, 6> PndAnalysis::fChargedProbability
protected

Definition at line 112 of file PndAnalysis.h.

◆ fDefaultHypo

Int_t PndAnalysis::fDefaultHypo
protected

Flag to check which hypo lists exists //0-4 for trk hypothesis, 5 for fallback.

Definition at line 132 of file PndAnalysis.h.

◆ fEventRead

Bool_t PndAnalysis::fEventRead
protected

Definition at line 101 of file PndAnalysis.h.

◆ fEvtCount

Int_t PndAnalysis::fEvtCount
protected

Definition at line 99 of file PndAnalysis.h.

◆ fGoodPhotonSelector

RhoGoodPhotonSelector* PndAnalysis::fGoodPhotonSelector
protected

Definition at line 97 of file PndAnalysis.h.

◆ fGoodTrackSelector

RhoGoodTrackSelector* PndAnalysis::fGoodTrackSelector
protected

Definition at line 98 of file PndAnalysis.h.

◆ fHypoFlagCharged

Bool_t PndAnalysis::fHypoFlagCharged[6]
protected

Definition at line 131 of file PndAnalysis.h.

◆ fHypoPdg

Int_t PndAnalysis::fHypoPdg[6]
protected

Definition at line 130 of file PndAnalysis.h.

◆ fMcCandList

RhoCandList PndAnalysis::fMcCandList
protected

Definition at line 122 of file PndAnalysis.h.

◆ fMcCands

TClonesArray* PndAnalysis::fMcCands
protected

Definition at line 116 of file PndAnalysis.h.

◆ fMcPresenceMap

std::map<int, RhoCandidate *> PndAnalysis::fMcPresenceMap
protected

Definition at line 107 of file PndAnalysis.h.

◆ fMcTracks

TClonesArray* PndAnalysis::fMcTracks
protected

Definition at line 117 of file PndAnalysis.h.

◆ fNeutralCandList

RhoCandList PndAnalysis::fNeutralCandList
protected

Definition at line 120 of file PndAnalysis.h.

◆ fNeutralCands

TClonesArray* PndAnalysis::fNeutralCands
protected

Definition at line 111 of file PndAnalysis.h.

◆ fNeutralPidName

TString PndAnalysis::fNeutralPidName
protected

Definition at line 125 of file PndAnalysis.h.

◆ fPhotosMax

Int_t PndAnalysis::fPhotosMax
protected

Definition at line 104 of file PndAnalysis.h.

Referenced by McMatchAllowPhotos().

◆ fPhotosThresh

Double_t PndAnalysis::fPhotosThresh
protected

Definition at line 105 of file PndAnalysis.h.

Referenced by McMatchAllowPhotos().

◆ fPidCombiner

PndAnaPidCombiner* PndAnalysis::fPidCombiner
protected

Definition at line 96 of file PndAnalysis.h.

◆ fPidHypoStr

TString PndAnalysis::fPidHypoStr[6]
protected

Definition at line 129 of file PndAnalysis.h.

◆ fPidSelector

PndAnaPidSelector* PndAnalysis::fPidSelector
protected

Definition at line 95 of file PndAnalysis.h.

◆ fRootManager

FairRootManager* PndAnalysis::fRootManager
protected

Definition at line 94 of file PndAnalysis.h.

◆ fTracks

std::array<TClonesArray *, 6> PndAnalysis::fTracks
protected

Definition at line 114 of file PndAnalysis.h.

◆ fTracks2

std::array<TClonesArray *, 6> PndAnalysis::fTracks2
protected

Definition at line 115 of file PndAnalysis.h.

◆ fTracksName

TString PndAnalysis::fTracksName
protected

Definition at line 126 of file PndAnalysis.h.

◆ fTracksName2

TString PndAnalysis::fTracksName2
protected

Definition at line 127 of file PndAnalysis.h.

◆ fVerbose

Int_t PndAnalysis::fVerbose
protected

Definition at line 103 of file PndAnalysis.h.

Referenced by SetVerbose().


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