CbmRoot
|
#include <CbmAnaJpsiTask.h>
Public Member Functions | |
CbmAnaJpsiTask () | |
Standard constructor. | |
virtual | ~CbmAnaJpsiTask () |
Standard destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
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. | |
void | AssignMcToCandidates () |
Assign MC info to the candidates. | |
Bool_t | IsMcTrackAccepted (Int_t mcTrackInd) |
Return true if MC track is in detector acceptance. | |
void | IsRecoTrackAccepted (CbmAnaJpsiCandidate *cand) |
void | SingleParticleAcceptance () |
void | PairMcAndAcceptance () |
Fill histograms for MC and Acc pairs. | |
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) | |
void | IsMismatch (CbmAnaJpsiCandidate *cand) |
void | DifferenceSignalAndBg () |
Fill histograms for signal and BG electrons. | |
void | CopyCandidatesToOutputArray () |
CbmAnaJpsiTask (const CbmAnaJpsiTask &) | |
Copy constructor. | |
CbmAnaJpsiTask & | operator= (const CbmAnaJpsiTask &) |
Assignment operator. | |
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 31 of file CbmAnaJpsiTask.h.
CbmAnaJpsiTask::CbmAnaJpsiTask | ( | ) |
Standard constructor.
Definition at line 37 of file CbmAnaJpsiTask.cxx.
|
virtual |
Standard destructor.
Definition at line 75 of file CbmAnaJpsiTask.cxx.
|
private |
Copy constructor.
|
private |
Assign MC info to the candidates.
Definition at line 449 of file CbmAnaJpsiTask.cxx.
References fCandidates, fMcTracks, fRichRingMatches, fStsTrackMatches, fTofHits, fTofHitsMatches, fTofPoints, fTrdTrackMatches, fUseTrd, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), CbmAnaJpsiUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmAnaJpsiUtils::IsMcSignalElectron(), and IsMismatch().
Referenced by Exec().
|
private |
|
private |
Definition at line 153 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiHist::fNofAnaSteps, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 162 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create2(), CbmAnaJpsiHist::fAnaSteps, fHM, and CbmAnaJpsiHist::fNofAnaSteps.
Referenced by InitHist().
|
private |
Definition at line 192 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), CbmAnaJpsiHist::fAnaSteps, fHM, CbmAnaJpsiHist::fNofAnaSteps, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 172 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create1(), fHM, CbmAnaJpsiHist::fNofSourceTypes, CbmAnaJpsiHist::fSourceTypes, max(), and min().
Referenced by InitHist().
|
private |
Definition at line 181 of file CbmAnaJpsiTask.cxx.
References CbmHistManager::Create2(), fHM, CbmAnaJpsiHist::fNofSourceTypes, and CbmAnaJpsiHist::fSourceTypes.
Referenced by InitHist().
|
private |
Fill histograms for signal and BG electrons.
Definition at line 504 of file CbmAnaJpsiTask.cxx.
References fCandidates, CbmAnaJpsiCuts::fChiPrimCut, fCuts, fHM, CbmAnaJpsiHist::fSourceTypes, fWeight, CbmHistManager::H1(), CbmHistManager::H2(), kJpsiBg, kJpsiGamma, kJpsiPi0, and kJpsiSignal.
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 315 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 397 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 807 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 355 of file CbmAnaJpsiTask.cxx.
References fMcTracks, fNofHitsInRingMap, fRichHits, fRichPoints, CbmMCTrack::GetMotherId(), and CbmHit::GetRefId().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 1008 of file CbmAnaJpsiTask.cxx.
References fHM, and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 77 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 217 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 928 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 612 of file CbmAnaJpsiTask.cxx.
References fMcTracks, fNofHitsInRingMap, CbmMCTrack::GetNPoints(), kMvd, kSts, kTof, and kTrd.
Referenced by PairMcAndAcceptance(), and SingleParticleAcceptance().
|
private |
Definition at line 946 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiCandidate::fIsMismatch, CbmAnaJpsiCandidate::fRichMcTrackId, CbmAnaJpsiCandidate::fStsMcTrackId, CbmAnaJpsiCandidate::fTofMcTrackId, CbmAnaJpsiCandidate::fTrdMcTrackId, and fUseTrd.
Referenced by AssignMcToCandidates().
|
private |
Definition at line 625 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiCandidate::fIsRecoTrackAccepted, CbmAnaJpsiCandidate::fRichInd, fRichRings, CbmAnaJpsiCandidate::fStsInd, fStsTracks, fTofHits, CbmAnaJpsiCandidate::fTofInd, CbmAnaJpsiCandidate::fTrdInd, fTrdTracks, CbmRichRing::GetNofHits(), CbmTrack::GetNofHits(), CbmStsTrack::GetNofMvdHits(), CbmStsTrack::GetNofStsHits(), and nStsHits.
Referenced by FillCandidates().
|
private |
Definition at line 380 of file CbmAnaJpsiTask.cxx.
References fHM, fMcTracks, CbmMCTrack::GetStartVertex(), CbmHistManager::H2(), CbmAnaJpsiUtils::IsMcGammaElectron(), and v.
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Fill histograms for MC and Acc pairs.
Definition at line 664 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 701 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 957 of file CbmAnaJpsiTask.cxx.
References fHM, fMcTracks, fRichHits, fRichPoints, CbmAnaJpsiHist::fSourceTypes, fWeight, CbmMCTrack::GetMotherId(), CbmHit::GetRefId(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H2(), CbmAnaJpsiUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmAnaJpsiUtils::IsMcSignalElectron(), kJpsiBg, kJpsiGamma, kJpsiPi0, and kJpsiSignal.
Referenced by Exec().
|
private |
Definition at line 846 of file CbmAnaJpsiTask.cxx.
References fCandidates, CbmAnaJpsiCuts::fChiPrimCut, fCuts, fHM, FillPairHists(), fMcTracks, CbmAnaJpsiKinematicParams::fMinv, CbmAnaJpsiKinematicParams::fPt, CbmAnaJpsiCuts::fPtCut, fWeight, CbmMCTrack::GetPdgCode(), CbmHistManager::H1(), CbmAnaJpsiKinematicParams::KinematicParamsWithCandidates(), CbmAnaJpsiKinematicParams::KinematicParamsWithMcTracks(), kJpsiChi2Prim, kJpsiElId, kJpsiPtCut, kJpsiReco, and TrackSource().
Referenced by Exec().
|
private |
Definition at line 647 of file CbmAnaJpsiTask.cxx.
References CbmAnaJpsiHist::fAnaSteps, fHM, fMcTracks, fWeight, CbmMCTrack::GetP(), CbmHistManager::H1(), CbmAnaJpsiUtils::IsMcSignalElectron(), IsMcTrackAccepted(), kJpsiAcc, and kJpsiMc.
Referenced by Exec().
|
private |
Definition at line 758 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 89 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), CopyCandidatesToOutputArray(), DifferenceSignalAndBg(), FillCandidates(), and SignalAndBgReco().
|
private |
Definition at line 91 of file CbmAnaJpsiTask.h.
Referenced by DifferenceSignalAndBg(), and SignalAndBgReco().
|
private |
Definition at line 61 of file CbmAnaJpsiTask.h.
Referenced by Exec().
|
private |
Definition at line 79 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), and Init().
|
private |
Definition at line 95 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 80 of file CbmAnaJpsiTask.h.
|
private |
Definition at line 87 of file CbmAnaJpsiTask.h.
Referenced by Exec(), and FillCandidates().
|
private |
Definition at line 63 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillRichRingNofHits(), Init(), IsMcTrackAccepted(), MCPairs(), PairMcAndAcceptance(), RichPmtXY(), SignalAndBgReco(), SingleParticleAcceptance(), and TrackSource().
|
private |
Definition at line 84 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), and IsMcTrackAccepted().
|
private |
Definition at line 86 of file CbmAnaJpsiTask.h.
|
private |
Definition at line 69 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().
|
private |
Definition at line 68 of file CbmAnaJpsiTask.h.
Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().
|
private |
Definition at line 71 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 70 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 65 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 64 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 67 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 66 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 77 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 78 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 76 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 73 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 72 of file CbmAnaJpsiTask.h.
Referenced by Init().
|
private |
Definition at line 75 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), and Init().
|
private |
Definition at line 74 of file CbmAnaJpsiTask.h.
Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().
|
private |
Definition at line 98 of file CbmAnaJpsiTask.h.
Referenced by IsElectron().
|
private |
Definition at line 97 of file CbmAnaJpsiTask.h.
Referenced by AssignMcToCandidates(), FillCandidates(), Init(), IsMismatch(), and TrackSource().
|
private |
Definition at line 93 of file CbmAnaJpsiTask.h.
Referenced by DifferenceSignalAndBg(), FillPairHists(), PairMcAndAcceptance(), PairSource(), RichPmtXY(), SignalAndBgReco(), SingleParticleAcceptance(), and TrackSource().