CbmRoot
|
#include <CbmAnaJpsiTask.h>
Public Member Functions | |
CbmAnaJpsiTask () | |
Standard constructor. More... | |
virtual | ~CbmAnaJpsiTask () |
Standard destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
Private Member Functions | |
void | CreateAnalysisStepsH1 (const string &name, const string &axisX, const string &axisY, double nBins, double min, double max) |
void | CreateAnalysisStepsH2 (const string &name, const string &axisX, const string &axisY, const string &axisZ, double nBinsX, double minX, double maxX, double nBinsY, double minY, double maxY) |
void | CreateSourceTypesH1 (const string &name, const string &axisX, const string &axisY, double nBins, double min, double max) |
void | CreateSourceTypesH2 (const string &name, const string &axisX, const string &axisY, const string &axisZ, double nBinsX, double minX, double maxX, double nBinsY, double minY, double maxY) |
void | CreateAnaStepsPairSourceH1 (const string &name, const string &axisX, const string &axisY, double nBins, double min, double max) |
void | InitHist () |
void | FillRichRingNofHits () |
void | MCPairs () |
void | RichPmtXY () |
void | FillCandidates () |
Fill fCandidates array with JPsiCandidates. Candidate should have STS, RICH, TRD, TOF local segments. More... | |
void | AssignMcToCandidates () |
Assign MC info to the candidates. More... | |
Bool_t | IsMcTrackAccepted (Int_t mcTrackInd) |
Return true if MC track is in detector acceptance. More... | |
void | IsRecoTrackAccepted (CbmAnaJpsiCandidate *cand) |
void | SingleParticleAcceptance () |
void | PairMcAndAcceptance () |
Fill histograms for MC and Acc pairs. More... | |
void | PairSource (CbmAnaJpsiCandidate *candP, CbmAnaJpsiCandidate *candM, CbmAnaJpsiAnalysisSteps step, CbmAnaJpsiKinematicParams *parRec) |
void | TrackSource (CbmAnaJpsiCandidate *cand, CbmAnaJpsiAnalysisSteps step, Int_t pdg) |
void | FillPairHists (CbmAnaJpsiCandidate *candP, CbmAnaJpsiCandidate *candM, CbmAnaJpsiKinematicParams *parMc, CbmAnaJpsiKinematicParams *parRec, CbmAnaJpsiAnalysisSteps step) |
void | SignalAndBgReco () |
void | IsElectron (Int_t globalTrackIndex, Double_t momentum, CbmAnaJpsiCandidate *cand) |
Identifies particle as Electron (or not) More... | |
void | IsMismatch (CbmAnaJpsiCandidate *cand) |
void | DifferenceSignalAndBg () |
Fill histograms for signal and BG electrons. More... | |
void | CopyCandidatesToOutputArray () |
CbmAnaJpsiTask (const CbmAnaJpsiTask &) | |
Copy constructor. More... | |
CbmAnaJpsiTask & | operator= (const CbmAnaJpsiTask &) |
Assignment operator. More... | |
Private Attributes | |
Int_t | fEventNum |
TClonesArray * | fMcTracks |
TClonesArray * | fStsPoints |
TClonesArray * | fStsHits |
TClonesArray * | fStsTracks |
TClonesArray * | fStsTrackMatches |
TClonesArray * | fRichPoints |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichRingMatches |
TClonesArray * | fTrdPoints |
TClonesArray * | fTrdHits |
TClonesArray * | fTrdTracks |
TClonesArray * | fTrdTrackMatches |
TClonesArray * | fTofPoints |
TClonesArray * | fTofHits |
TClonesArray * | fTofHitsMatches |
TClonesArray * | fGlobalTracks |
TClonesArray * | fJpsiCandidates |
std::map< Int_t, Int_t > | fNofHitsInRingMap |
CbmVertex * | fPrimVertex |
CbmKFVertex | fKFVertex |
std::vector< CbmAnaJpsiCandidate > | fCandidates |
CbmAnaJpsiCuts | fCuts |
Double_t | fWeight |
CbmHistManager * | fHM |
Bool_t | fUseTrd |
Bool_t | fUseTof |
Definition at line 28 of file CbmAnaJpsiTask.h.
CbmAnaJpsiTask::CbmAnaJpsiTask | ( | ) |
Standard constructor.
Definition at line 29 of file CbmAnaJpsiTask.cxx.
|
virtual |
Standard destructor.
Definition at line 66 of file CbmAnaJpsiTask.cxx.
|
private |
Copy constructor.
|
private |
Assign MC info to the candidates.
Definition at line 681 of file CbmAnaJpsiTask.cxx.
References fCandidates, fMcTracks, fRichRingMatches, fStsTrackMatches, fTofHits, fTofHitsMatches, fTofPoints, fTrdTrackMatches, fUseTrd, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), i, CbmAnaJpsiUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmAnaJpsiUtils::IsMcSignalElectron(), and IsMismatch().
Referenced by Exec().
|
private |
Definition at line 1338 of file CbmAnaJpsiTask.cxx.
References fCandidates, and i.
Referenced by Exec().
|
private |
Definition at line 180 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiHist::fNofAnaSteps, i, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 193 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create2(), CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiHist::fNofAnaSteps, and i.
Referenced by InitHist().
|
private |
Definition at line 253 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiHist::fNofAnaSteps, i, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 216 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), fHM, CbmAnaJpsiHist::fNofSourceTypes, CbmAnaJpsiHist::fSourceTypes, i, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 229 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create2(), fHM, CbmAnaJpsiHist::fNofSourceTypes, CbmAnaJpsiHist::fSourceTypes, and i.
Referenced by InitHist().
|
private |
Fill histograms for signal and BG electrons.
Definition at line 742 of file CbmAnaJpsiTask.cxx.
References fCandidates, CbmAnaJpsiCuts::fChiPrimCut, fCuts, fHM, CbmAnaJpsiHist::fSourceTypes, fWeight, CbmHistManager::H1(), CbmHistManager::H2(), i, kJpsiBg, kJpsiGamma, kJpsiPi0, and kJpsiSignal.
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 546 of file CbmAnaJpsiTask.cxx.
References AssignMcToCandidates(), CopyCandidatesToOutputArray(), DifferenceSignalAndBg(), fEventNum, fHM, FillCandidates(), FillRichRingNofHits(), fJpsiCandidates, fKFVertex, fPrimVertex, CbmHistManager::H1(), MCPairs(), PairMcAndAcceptance(), RichPmtXY(), SignalAndBgReco(), and SingleParticleAcceptance().
|
private |
Fill fCandidates array with JPsiCandidates. Candidate should have STS, RICH, TRD, TOF local segments.
Definition at line 629 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiUtils::CalculateAndSetTrackParamsToCandidate(), fCandidates, fGlobalTracks, CbmAnaJpsiCandidate::fIsRecoTrackAccepted, fKFVertex, CbmAnaJpsiCandidate::fMomentum, CbmAnaJpsiCandidate::fRichInd, fRichRings, CbmAnaJpsiCandidate::fStsInd, fStsTracks, fTofHits, CbmAnaJpsiCandidate::fTofInd, CbmAnaJpsiCandidate::fTrdInd, fTrdTracks, fUseTrd, CbmGlobalTrack::GetRichRingIndex(), CbmGlobalTrack::GetStsTrackIndex(), CbmGlobalTrack::GetTofHitIndex(), CbmGlobalTrack::GetTrdTrackIndex(), IsElectron(), and IsRecoTrackAccepted().
Referenced by Exec().
|
private |
Definition at line 1093 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiCandidate::fIsMcGammaElectron, CbmAnaJpsiCandidate::fIsMcPi0Electron, CbmAnaJpsiCandidate::fIsMcSignalElectron, CbmAnaJpsiCandidate::fIsMismatch, CbmAnaJpsiCandidate::fMcPdg, CbmAnaJpsiKinematicParams::fMinv, CbmAnaJpsiKinematicParams::fMomentumMag, CbmAnaJpsiKinematicParams::fPt, CbmAnaJpsiKinematicParams::fRapidity, CbmAnaJpsiCandidate::fStsMcMotherId, fWeight, CbmHistManager::H1(), CbmHistManager::H2(), and PairSource().
Referenced by SignalAndBgReco().
|
private |
Definition at line 587 of file CbmAnaJpsiTask.cxx.
References fMcTracks, fNofHitsInRingMap, fRichHits, fRichPoints, CbmMCTrack::GetMotherId(), and CbmHit::GetRefId().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 1345 of file CbmAnaJpsiTask.cxx.
References fHM, and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 68 of file CbmAnaJpsiTask.cxx.
References fGlobalTracks, fJpsiCandidates, fMcTracks, fPrimVertex, fRichHits, fRichPoints, fRichRingMatches, fRichRings, fStsHits, fStsPoints, fStsTrackMatches, fStsTracks, fTofHits, fTofHitsMatches, fTofPoints, fTrdHits, fTrdPoints, fTrdTrackMatches, fTrdTracks, fUseTrd, and InitHist().
|
private |
Definition at line 290 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CreateAnalysisStepsH1(), CreateAnalysisStepsH2(), CreateAnaStepsPairSourceH1(), CreateSourceTypesH1(), CreateSourceTypesH2(), fHM, and CbmAnaJpsiHist::fNofAnaSteps.
Referenced by Init().
|
private |
Identifies particle as Electron (or not)
Definition at line 1254 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiCandidate::fIsElectron, CbmAnaJpsiCandidate::fIsRichEl, CbmAnaJpsiCandidate::fIsTofEl, CbmAnaJpsiCandidate::fIsTrdEl, CbmAnaJpsiCandidate::fRichAnn, CbmAnaJpsiCandidate::fTrdAnn, fUseTof, CbmLitGlobalElectronId::GetInstance(), CbmLitGlobalElectronId::GetRichAnn(), CbmLitGlobalElectronId::GetTrdAnn(), CbmLitGlobalElectronId::IsRichElectron(), CbmLitGlobalElectronId::IsTofElectron(), and CbmLitGlobalElectronId::IsTrdElectron().
Referenced by FillCandidates().
|
private |
Return true if MC track is in detector acceptance.
Definition at line 867 of file CbmAnaJpsiTask.cxx.
References fMcTracks, fNofHitsInRingMap, CbmMCTrack::GetNPoints(), kMvd, kSts, kTof, and kTrd.
Referenced by PairMcAndAcceptance(), and SingleParticleAcceptance().
|
private |
Definition at line 1278 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiCandidate::fIsMismatch, CbmAnaJpsiCandidate::fRichMcTrackId, CbmAnaJpsiCandidate::fStsMcTrackId, CbmAnaJpsiCandidate::fTofMcTrackId, CbmAnaJpsiCandidate::fTrdMcTrackId, and fUseTrd.
Referenced by AssignMcToCandidates().
|
private |
Definition at line 881 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiCandidate::fIsRecoTrackAccepted, CbmAnaJpsiCandidate::fRichInd, fRichRings, CbmAnaJpsiCandidate::fStsInd, fStsTracks, fTofHits, CbmAnaJpsiCandidate::fTofInd, CbmAnaJpsiCandidate::fTrdInd, fTrdTracks, CbmRichRing::GetNofHits(), CbmTrack::GetNofHits(), CbmStsTrack::GetNofHits(), CbmStsTrack::GetNofMvdHits(), and nStsHits.
Referenced by FillCandidates().
|
private |
Definition at line 611 of file CbmAnaJpsiTask.cxx.
References fHM, fMcTracks, CbmMCTrack::GetStartVertex(), CbmHistManager::H2(), i, CbmAnaJpsiUtils::IsMcGammaElectron(), sqrt(), and v.
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Fill histograms for MC and Acc pairs.
Definition at line 922 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, fMcTracks, CbmAnaJpsiKinematicParams::fMinv, CbmAnaJpsiKinematicParams::fMomentumMag, CbmAnaJpsiKinematicParams::fPt, CbmAnaJpsiKinematicParams::fRapidity, fWeight, CbmMCTrack::GetPdgCode(), CbmHistManager::H1(), CbmHistManager::H2(), CbmAnaJpsiUtils::IsMcSignalElectron(), IsMcTrackAccepted(), CbmAnaJpsiKinematicParams::KinematicParamsWithMcTracks(), kJpsiAcc, and kJpsiMc.
Referenced by Exec().
|
private |
Definition at line 969 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiCandidate::fIsMcGammaElectron, CbmAnaJpsiCandidate::fIsMcPi0Electron, CbmAnaJpsiCandidate::fIsMcSignalElectron, CbmAnaJpsiCandidate::fMcPdg, CbmAnaJpsiKinematicParams::fMinv, fWeight, and CbmHistManager::H1().
Referenced by FillPairHists().
|
private |
Definition at line 1290 of file CbmAnaJpsiTask.cxx.
References fHM, fMcTracks, fRichHits, fRichPoints, CbmAnaJpsiHist::fSourceTypes, fWeight, CbmMCTrack::GetMotherId(), CbmHit::GetRefId(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H2(), i, CbmAnaJpsiUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmAnaJpsiUtils::IsMcSignalElectron(), kJpsiBg, kJpsiGamma, kJpsiPi0, and kJpsiSignal.
Referenced by Exec().
|
private |
Definition at line 1151 of file CbmAnaJpsiTask.cxx.
References fCandidates, CbmAnaJpsiCuts::fChiPrimCut, fCuts, fHM, FillPairHists(), fMcTracks, CbmAnaJpsiKinematicParams::fMinv, CbmAnaJpsiKinematicParams::fPt, CbmAnaJpsiCuts::fPtCut, fWeight, CbmMCTrack::GetPdgCode(), CbmHistManager::H1(), i, CbmAnaJpsiKinematicParams::KinematicParamsWithCandidates(), CbmAnaJpsiKinematicParams::KinematicParamsWithMcTracks(), kJpsiChi2Prim, kJpsiElId, kJpsiPtCut, kJpsiReco, and TrackSource().
Referenced by Exec().
|
private |
Definition at line 904 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, fMcTracks, fWeight, CbmMCTrack::GetP(), CbmHistManager::H1(), i, CbmAnaJpsiUtils::IsMcSignalElectron(), IsMcTrackAccepted(), kJpsiAcc, and kJpsiMc.
Referenced by Exec().
|
private |
Definition at line 1042 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiCandidate::fIsMcGammaElectron, CbmAnaJpsiCandidate::fIsMcPi0Electron, CbmAnaJpsiCandidate::fIsMcSignalElectron, CbmAnaJpsiCandidate::fIsMismatch, fMcTracks, CbmAnaJpsiCandidate::fMomentum, CbmAnaJpsiCandidate::fRichMcTrackId, CbmAnaJpsiCandidate::fStsMcTrackId, CbmAnaJpsiCandidate::fTofMcTrackId, CbmAnaJpsiCandidate::fTrdMcTrackId, fUseTrd, fWeight, CbmMCTrack::GetP(), CbmHistManager::H1(), CbmHistManager::H2(), and kJpsiReco.
Referenced by SignalAndBgReco().
|
private |
Definition at line 86 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), CopyCandidatesToOutputArray(), DifferenceSignalAndBg(), FillCandidates(), and SignalAndBgReco().
|
private |
Definition at line 88 of file CbmAnaJpsiTask.h.
Referenced by DifferenceSignalAndBg(), and SignalAndBgReco().
|
private |
Definition at line 58 of file CbmAnaJpsiTask.h.
Referenced by Exec().
|
private |
Definition at line 76 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), and Init().
|
private |
Definition at line 92 of file CbmAnaJpsiTask.h.
Referenced by CreateAnalysisStepsH1(), CreateAnalysisStepsH2(), CreateAnaStepsPairSourceH1(), CreateSourceTypesH1(), CreateSourceTypesH2(), DifferenceSignalAndBg(), Exec(), FillPairHists(), Finish(), InitHist(), MCPairs(), PairMcAndAcceptance(), PairSource(), RichPmtXY(), SignalAndBgReco(), SingleParticleAcceptance(), and TrackSource().
|
private |
Definition at line 77 of file CbmAnaJpsiTask.h.
|
private |
Definition at line 84 of file CbmAnaJpsiTask.h.
Referenced by Exec(), and FillCandidates().
|
private |
Definition at line 60 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillRichRingNofHits(), Init(), IsMcTrackAccepted(), MCPairs(), PairMcAndAcceptance(), RichPmtXY(), SignalAndBgReco(), SingleParticleAcceptance(), and TrackSource().
|
private |
Definition at line 81 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), and IsMcTrackAccepted().
|
private |
Definition at line 83 of file CbmAnaJpsiTask.h.
|
private |
Definition at line 66 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().
|
private |
Definition at line 65 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().
|
private |
Definition at line 68 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 67 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 62 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 61 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 64 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 63 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 74 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 75 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 73 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 70 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 69 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 72 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 71 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 95 of file CbmAnaJpsiTask.h.
Referenced by IsElectron().
|
private |
Definition at line 94 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillCandidates(), Init(), IsMismatch(), and TrackSource().
|
private |
Definition at line 90 of file CbmAnaJpsiTask.h.
Referenced by DifferenceSignalAndBg(), FillPairHists(), PairMcAndAcceptance(), PairSource(), RichPmtXY(), SignalAndBgReco(), SingleParticleAcceptance(), and TrackSource().