FairRoot/PandaRoot
|
#include <PndAnalysis.h>
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 | 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) |
PndTrack * | GetTrack (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) |
Int_t | 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)) |
Private Member Functions | |
void | Init () |
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) | |
Private Attributes | |
FairRootManager * | fRootManager |
PndAnaPidSelector * | fPidSelector |
PndAnaPidCombiner * | fPidCombiner |
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 | 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... | |
Definition at line 30 of file PndAnalysis.h.
PndAnalysis::PndAnalysis | ( | TString | tname1 = "" , |
TString | tname2 = "" , |
||
TString | algnamec = "PidAlgoIdealCharged" , |
||
TString | algnamen = "PidAlgoIdealNeutral" |
||
) |
Definition at line 48 of file PndAnalysis.cxx.
References fRootManager, and Init().
Referenced by ana_complete(), ana_day1(), ana_multi(), ana_multikalman(), anaDMesonsCharged(), anaideal_complete(), tut_ana(), tut_ana_comb(), tut_ana_fast(), tut_ana_fit(), tut_ana_mclist(), tut_ana_mcmatch(), and tut_ana_pid().
|
virtual |
|
private |
Definition at line 532 of file PndAnalysis.cxx.
References fabs(), fBuildMcCands, fChargedCandList, fMcCandList, fMcCands, fMcTracks, fNeutralCandList, fVerbose, RhoCandList::Get(), PndMCTrack::Get4Momentum(), RhoCandList::GetLength(), GetMcCandList(), PndPidCandidate::GetMcIndex(), PndMCTrack::GetPdgCode(), RhoCandidate::GetRecoCandidate(), PndMCTrack::GetStartVertex(), i, reco(), RhoCandidate::SetMcTruth(), RhoCandidate::SetP4(), RhoCandidate::SetPos(), RhoCandidate::SetTrackNumber(), RhoCandidate::SetType(), and RhoCandidate::Uid().
Referenced by GetEvent(), and GetEventInTask().
|
private |
|
private |
Definition at line 229 of file PndAnalysis.cxx.
References RhoCandList::Cleanup(), fChargedCandList, fMcCandList, fNeutralCandList, i, RhoFactory::Instance(), and RhoFactory::Reset().
Referenced by GetEvent(), GetEventInTask(), and ReadRecoCandidates().
Bool_t PndAnalysis::FillList | ( | RhoCandList & | l, |
TString | listkey = "All" , |
||
TString | pidTcaNames = "" , |
||
int | trackHypothesis = -1 |
||
) |
Definition at line 319 of file PndAnalysis.cxx.
References PndAnaPidCombiner::Apply(), At, Bool_t, RhoCandList::Cleanup(), fBremCorr, fChargedCandList, fDefaultHypo, fHypoFlagCharged, fNeutralCandList, fPidCombiner, fPidSelector, fVerbose, RhoCandList::GetLength(), GetMcCandList(), PndPidBremCorrected4Mom::GetMomentum(), i, RhoCandList::Select(), PndAnaPidSelector::SetCriterion(), PndAnaPidCombiner::SetDefaults(), PndAnaPidCombiner::SetTcaNames(), and TString.
Referenced by ana_complete(), ana_day1(), ana_jpsi(), ana_multi(), ana_multikalman(), anaDMesonsCharged(), anaideal_complete(), anatut_psi2s(), PndTripleAnaTask::DsDs2317Analysis(), PndProdAnaTask::Exec(), PndTutAnaTaskD0::Exec(), PndLLbarAnaTask::Exec(), PndScrutAnaTask::Exec(), PndAnaWithTrigger::Exec(), PndMyAnalysisTask::Exec(), PndParticleQATask::Exec(), PndTripleAnaTask::Exec(), PndSimpleCombinerTask::Exec(), PndSimpleCombiner::FillGenericLists(), PndSoftTriggerTask::FillGlobalLists(), PndSoftTriggerTask::GetPocaVtx(), PndTripleAnaTask::JpsiAnalysis(), newana_check_eta(), QAmacro_fastsim_2(), PndRhoTupleQA::qaMcList(), PndRhoTupleQA::qaPoca(), PndRhoTupleQA::qaVtx(), run_ana_eta_c_stt_v2(), PndTripleAnaTask::ThreePiAnalysis(), tut_ana(), tut_ana_comb(), tut_ana_d0(), tut_ana_d0_qahelper(), tut_ana_fast(), tut_ana_fit(), tut_ana_mclist(), tut_ana_mcmatch(), tut_ana_ntp(), tut_ana_ntp_noqa(), tut_ana_ntp_qa(), and tut_ana_pid().
Int_t PndAnalysis::GetEntries | ( | ) |
Definition at line 471 of file PndAnalysis.cxx.
References fRootManager.
Referenced by ana_complete(), ana_day1(), ana_jpsi(), ana_multi(), ana_multikalman(), anaDMesonsCharged(), anaideal_complete(), anatut_psi2s(), newana_check_eta(), QAmacro_fastsim_2(), run_ana_eta_c_stt_v2(), tut_ana(), tut_ana_comb(), tut_ana_d0(), tut_ana_d0_qahelper(), tut_ana_fast(), tut_ana_fit(), tut_ana_mclist(), tut_ana_mcmatch(), tut_ana_ntp(), tut_ana_ntp_noqa(), tut_ana_ntp_qa(), and tut_ana_pid().
Int_t PndAnalysis::GetEvent | ( | Int_t | n = -1 | ) |
Definition at line 257 of file PndAnalysis.cxx.
References BuildMcCands(), Cleanup(), fBremCorr, fChainEntries, fChargedCands, fChargedProbability, fEvtCount, fHypoFlagCharged, fPidHypoStr, fRootManager, fTracks, fTracks2, fVerbose, i, and ReadRecoCandidates().
Referenced by ana_complete(), ana_day1(), ana_jpsi(), ana_multi(), ana_multikalman(), anaDMesonsCharged(), anaideal_complete(), anatut_psi2s(), PndTutAnaTask::Exec(), PndTutAnaTaskD0::Exec(), PndLLbarAnaTask::Exec(), PndMyAnalysisTask::Exec(), PndScrutAnaTask::Exec(), newana_check_eta(), QAmacro_fastsim_2(), run_ana_eta_c_stt_v2(), tut_ana(), tut_ana_comb(), tut_ana_d0(), tut_ana_d0_qahelper(), tut_ana_fast(), tut_ana_fit(), tut_ana_mclist(), tut_ana_mcmatch(), tut_ana_ntp(), tut_ana_ntp_noqa(), tut_ana_ntp_qa(), and tut_ana_pid().
FairMCEventHeader * PndAnalysis::GetEventHeader | ( | ) |
Definition at line 307 of file PndAnalysis.cxx.
References fEventRead, fEvtCount, and fRootManager.
Referenced by newana_check_eta().
void PndAnalysis::GetEventInTask | ( | ) |
Definition at line 249 of file PndAnalysis.cxx.
References BuildMcCands(), Cleanup(), and ReadRecoCandidates().
Referenced by PndProdAnaTask::Exec(), PndTutThaiTask::Exec(), PndParticleQATask::Exec(), PndAnaWithTrigger::Exec(), PndTripleAnaTask::Exec(), PndSoftTriggerTask::Exec(), and PndSimpleCombinerTask::Exec().
FairTrackParP PndAnalysis::GetFirstPar | ( | RhoCandidate * | cand | ) |
Definition at line 690 of file PndAnalysis.cxx.
References PndTrack::GetParamFirst(), GetTrack(), and track.
Referenced by PropagateToPlane(), PropagateToPoint(), PropagateToZAxis(), and ResetCandidate().
|
private |
Definition at line 420 of file PndAnalysis.cxx.
References fabs(), fMcCands, fMcTracks, fVerbose, RhoCandList::GetLength(), PndMCTrack::GetMotherID(), PndMCTrack::GetSecondMotherID(), i, and RhoCandList::Put().
Referenced by BuildMcCands(), and FillList().
PndTrack * PndAnalysis::GetTrack | ( | RhoCandidate * | cand | ) |
Definition at line 657 of file PndAnalysis.cxx.
References a, At, fHypoPdg, fTracks, RhoCandidate::GetRecoCandidate(), PndPidCandidate::GetTrackIndex(), RhoCandidate::PdgCode(), and track.
Referenced by GetFirstPar().
|
private |
Definition at line 88 of file PndAnalysis.cxx.
References fBremCorr, fBuildMcCands, fChainEntries, fChargedCands, fChargedPidName, fChargedProbability, fDefaultHypo, fHypoFlagCharged, fHypoPdg, fMcCands, fMcTracks, fNeutralCands, fPidCombiner, fPidHypoStr, fPidSelector, fRootManager, fTracks, fTracks2, fTracksName, fTracksName2, fVerbose, i, ReadTCA(), Reset(), and TString.
Referenced by PndAnalysis().
|
inline |
Definition at line 62 of file PndAnalysis.h.
References fPhotosMax, and fPhotosThresh.
Referenced by PndAnaWithTrigger::Init(), and PndSoftTriggerTask::Init().
|
inlineprivate |
Definition at line 83 of file PndAnalysis.h.
References MctMatch(), and verbose.
Referenced by MctMatch(), and McTruthMatch().
|
private |
Definition at line 948 of file PndAnalysis.cxx.
References RhoCandidate::Daughter(), RhoCandidate::E(), fPhotosMax, fPhotosThresh, RhoCandidate::GetMcTruth(), i, mct, MctMatch(), RhoCandidate::NDaughters(), RhoCandidate::PdgCode(), RhoCandidate::SetMcTruth(), RhoCandidate::TheMother(), and verbose.
Bool_t PndAnalysis::McTruthMatch | ( | RhoCandidate * | cand, |
Int_t | level = 2 , |
||
bool | verbose = false |
||
) |
Definition at line 932 of file PndAnalysis.cxx.
References fMcCandList, and MctMatch().
Referenced by ana_complete(), ana_day1(), ana_jpsi(), ana_multi(), ana_multikalman(), anaideal_complete(), PndTripleAnaTask::DsDs2317Analysis(), PndTutAnaTaskD0::Exec(), PndAnaWithTrigger::Exec(), PndScrutAnaTask::Exec(), PndMyAnalysisTask::Exec(), PndTripleAnaTask::JpsiAnalysis(), PndRhoTupleQA::qaComp(), PndRhoTupleQA::qaKs0(), PndRhoTupleQA::qaPi0(), SelectTruePid(), PndTutAnaTask::SelectTruePid(), PndTutThaiTask::SelectTruePid(), PndLLbarAnaTask::SelectTruePid(), PndParticleQATask::SelectTruePid(), PndProdAnaTask::SelectTruePid(), PndSoftTriggerTask::SelectTruePid(), PndSoftTriggerTask::TagMode(), PndTripleAnaTask::ThreePiAnalysis(), tut_ana(), tut_ana_d0(), tut_ana_fast(), tut_ana_mcmatch(), tut_ana_ntp(), tut_ana_ntp_noqa(), and tut_ana_ntp_qa().
Int_t PndAnalysis::McTruthMatch | ( | RhoCandList & | list, |
Int_t | level = 2 , |
||
bool | verbose = false |
||
) |
Definition at line 937 of file PndAnalysis.cxx.
References fMcCandList, RhoCandList::GetLength(), and MctMatch().
Bool_t PndAnalysis::PropagateToIp | ( | RhoCandidate * | cand | ) |
Definition at line 624 of file PndAnalysis.cxx.
References PropagateToPoint().
Bool_t PndAnalysis::PropagateToPlane | ( | RhoCandidate * | cand, |
TVector3 | origin, | ||
TVector3 | dj, | ||
TVector3 | dk | ||
) |
Definition at line 647 of file PndAnalysis.cxx.
References GetFirstPar(), and Propagator().
Bool_t PndAnalysis::PropagateToPoint | ( | RhoCandidate * | cand, |
TVector3 | mypoint | ||
) |
Definition at line 637 of file PndAnalysis.cxx.
References GetFirstPar(), and Propagator().
Referenced by PropagateToIp().
Bool_t PndAnalysis::PropagateToZAxis | ( | RhoCandidate * | cand | ) |
Definition at line 631 of file PndAnalysis.cxx.
References GetFirstPar(), and 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) |
||
) |
Definition at line 750 of file PndAnalysis.cxx.
References Bool_t, cos(), Double_t, fVerbose, RhoCalculationTools::GetConverted7(), RhoCalculationTools::GetFitError(), jj, RhoCandidate::P4(), RhoCandidate::PdgCode(), pos, RhoCandidate::SetCov7(), RhoCandidate::SetP3(), RhoCandidate::SetPosition(), sqrt(), and vecdiff.
Referenced by PropagateToPlane(), PropagateToPoint(), and PropagateToZAxis().
|
private |
Definition at line 480 of file PndAnalysis.cxx.
References RhoCandList::Add(), At, RhoCandidate::Charge(), RhoCandList::Cleanup(), Cleanup(), fChargedCandList, fChargedCands, fHypoFlagCharged, fHypoPdg, fNeutralCandList, fNeutralCands, fVerbose, h, i, RhoCandidate::SetTrackNumber(), and RhoCandidate::SetType().
Referenced by GetEvent(), and GetEventInTask().
|
private |
Definition at line 78 of file PndAnalysis.cxx.
References fRootManager, and fVerbose.
Referenced by Init().
|
inline |
Bool_t PndAnalysis::ResetCandidate | ( | RhoCandidate * | cand | ) |
Definition at line 722 of file PndAnalysis.cxx.
References Double_t, fVerbose, RhoCalculationTools::GetConverted7(), GetFirstPar(), RhoCalculationTools::GetFitError(), jj, RhoCandidate::P4(), RhoCandidate::SetCov7(), RhoCandidate::SetP3(), and RhoCandidate::SetPosition().
Referenced by ResetDaughters().
Bool_t PndAnalysis::ResetDaughters | ( | RhoCandidate * | cand | ) |
Definition at line 710 of file PndAnalysis.cxx.
References a, Bool_t, RhoCandidate::Daughter(), RhoCandidate::NDaughters(), ResetCandidate(), and mrfdata_8b_error::success.
void PndAnalysis::Rewind | ( | ) |
|
inline |
|
private |
Definition at line 101 of file PndAnalysis.h.
Referenced by FillList(), GetEvent(), and Init().
|
private |
Definition at line 93 of file PndAnalysis.h.
Referenced by BuildMcCands(), and Init().
|
private |
Definition at line 91 of file PndAnalysis.h.
Referenced by GetEvent(), and Init().
|
private |
Definition at line 110 of file PndAnalysis.h.
Referenced by BuildMcCands(), Cleanup(), FillList(), and ReadRecoCandidates().
|
private |
Definition at line 100 of file PndAnalysis.h.
Referenced by GetEvent(), Init(), and ReadRecoCandidates().
|
private |
Definition at line 114 of file PndAnalysis.h.
Referenced by Init().
|
private |
Definition at line 103 of file PndAnalysis.h.
Referenced by GetEvent(), and Init().
|
private |
Flag to check which hypo lists exists //0-4 for trk hypothesis, 5 for fallback.
Definition at line 122 of file PndAnalysis.h.
Referenced by FillList(), and Init().
|
private |
Definition at line 92 of file PndAnalysis.h.
Referenced by GetEventHeader().
|
private |
Definition at line 90 of file PndAnalysis.h.
Referenced by GetEvent(), GetEventHeader(), and Rewind().
|
private |
Definition at line 121 of file PndAnalysis.h.
Referenced by FillList(), GetEvent(), Init(), and ReadRecoCandidates().
|
private |
Definition at line 120 of file PndAnalysis.h.
Referenced by GetTrack(), Init(), and ReadRecoCandidates().
|
private |
Definition at line 112 of file PndAnalysis.h.
Referenced by BuildMcCands(), Cleanup(), and McTruthMatch().
|
private |
Definition at line 107 of file PndAnalysis.h.
Referenced by BuildMcCands(), GetMcCandList(), and Init().
|
private |
Definition at line 98 of file PndAnalysis.h.
|
private |
Definition at line 108 of file PndAnalysis.h.
Referenced by BuildMcCands(), GetMcCandList(), and Init().
|
private |
Definition at line 111 of file PndAnalysis.h.
Referenced by BuildMcCands(), Cleanup(), FillList(), and ReadRecoCandidates().
|
private |
Definition at line 102 of file PndAnalysis.h.
Referenced by Init(), and ReadRecoCandidates().
|
private |
Definition at line 115 of file PndAnalysis.h.
|
private |
Definition at line 95 of file PndAnalysis.h.
Referenced by McMatchAllowPhotos(), and MctMatch().
|
private |
Definition at line 96 of file PndAnalysis.h.
Referenced by McMatchAllowPhotos(), and MctMatch().
|
private |
Definition at line 89 of file PndAnalysis.h.
Referenced by FillList(), and Init().
|
private |
Definition at line 119 of file PndAnalysis.h.
Referenced by GetEvent(), and Init().
|
private |
Definition at line 88 of file PndAnalysis.h.
Referenced by FillList(), Init(), and ~PndAnalysis().
|
private |
Definition at line 87 of file PndAnalysis.h.
Referenced by GetEntries(), GetEvent(), GetEventHeader(), Init(), PndAnalysis(), and ReadTCA().
|
private |
Definition at line 105 of file PndAnalysis.h.
Referenced by GetEvent(), GetTrack(), and Init().
|
private |
Definition at line 106 of file PndAnalysis.h.
Referenced by GetEvent(), and Init().
|
private |
Definition at line 116 of file PndAnalysis.h.
Referenced by Init().
|
private |
Definition at line 117 of file PndAnalysis.h.
Referenced by Init().
|
private |
Definition at line 94 of file PndAnalysis.h.
Referenced by BuildMcCands(), FillList(), GetEvent(), GetMcCandList(), Init(), Propagator(), ReadRecoCandidates(), ReadTCA(), ResetCandidate(), and SetVerbose().