CbmRoot
Loading...
Searching...
No Matches
CbmAnaJpsiTask Class Reference

#include <CbmAnaJpsiTask.h>

Inheritance diagram for CbmAnaJpsiTask:
[legend]
Collaboration diagram for CbmAnaJpsiTask:
[legend]

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.
 
CbmAnaJpsiTaskoperator= (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
 
CbmVertexfPrimVertex
 
CbmKFVertex fKFVertex
 
std::vector< CbmAnaJpsiCandidatefCandidates
 
CbmAnaJpsiCuts fCuts
 
Double_t fWeight
 
CbmHistManagerfHM
 
Bool_t fUseTrd
 
Bool_t fUseTof
 

Detailed Description

Definition at line 31 of file CbmAnaJpsiTask.h.

Constructor & Destructor Documentation

◆ CbmAnaJpsiTask() [1/2]

CbmAnaJpsiTask::CbmAnaJpsiTask ( )

Standard constructor.

Definition at line 37 of file CbmAnaJpsiTask.cxx.

◆ ~CbmAnaJpsiTask()

CbmAnaJpsiTask::~CbmAnaJpsiTask ( )
virtual

Standard destructor.

Definition at line 75 of file CbmAnaJpsiTask.cxx.

◆ CbmAnaJpsiTask() [2/2]

CbmAnaJpsiTask::CbmAnaJpsiTask ( const CbmAnaJpsiTask & )
private

Copy constructor.

Member Function Documentation

◆ AssignMcToCandidates()

◆ CopyCandidatesToOutputArray()

void CbmAnaJpsiTask::CopyCandidatesToOutputArray ( )
private

Definition at line 1000 of file CbmAnaJpsiTask.cxx.

References fCandidates.

Referenced by Exec().

◆ CreateAnalysisStepsH1()

void CbmAnaJpsiTask::CreateAnalysisStepsH1 ( const string & name,
const string & axisX,
const string & axisY,
double nBins,
double min,
double max )
private

◆ CreateAnalysisStepsH2()

void CbmAnaJpsiTask::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 )
private

◆ CreateAnaStepsPairSourceH1()

void CbmAnaJpsiTask::CreateAnaStepsPairSourceH1 ( const string & name,
const string & axisX,
const string & axisY,
double nBins,
double min,
double max )
private

◆ CreateSourceTypesH1()

void CbmAnaJpsiTask::CreateSourceTypesH1 ( const string & name,
const string & axisX,
const string & axisY,
double nBins,
double min,
double max )
private

◆ CreateSourceTypesH2()

void CbmAnaJpsiTask::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 )
private

◆ DifferenceSignalAndBg()

void CbmAnaJpsiTask::DifferenceSignalAndBg ( )
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().

◆ Exec()

◆ FillCandidates()

◆ FillPairHists()

◆ FillRichRingNofHits()

void CbmAnaJpsiTask::FillRichRingNofHits ( )
private

◆ Finish()

void CbmAnaJpsiTask::Finish ( )
virtual

Inherited from FairTask.

Definition at line 1008 of file CbmAnaJpsiTask.cxx.

References fHM, and CbmHistManager::WriteToFile().

◆ Init()

◆ InitHist()

◆ IsElectron()

◆ IsMcTrackAccepted()

Bool_t CbmAnaJpsiTask::IsMcTrackAccepted ( Int_t mcTrackInd)
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().

◆ IsMismatch()

◆ IsRecoTrackAccepted()

◆ MCPairs()

void CbmAnaJpsiTask::MCPairs ( )
private

◆ operator=()

CbmAnaJpsiTask & CbmAnaJpsiTask::operator= ( const CbmAnaJpsiTask & )
private

Assignment operator.

◆ PairMcAndAcceptance()

◆ PairSource()

◆ RichPmtXY()

◆ SignalAndBgReco()

◆ SingleParticleAcceptance()

void CbmAnaJpsiTask::SingleParticleAcceptance ( )
private

◆ TrackSource()

Member Data Documentation

◆ fCandidates

std::vector<CbmAnaJpsiCandidate> CbmAnaJpsiTask::fCandidates
private

◆ fCuts

CbmAnaJpsiCuts CbmAnaJpsiTask::fCuts
private

Definition at line 91 of file CbmAnaJpsiTask.h.

Referenced by DifferenceSignalAndBg(), and SignalAndBgReco().

◆ fEventNum

Int_t CbmAnaJpsiTask::fEventNum
private

Definition at line 61 of file CbmAnaJpsiTask.h.

Referenced by Exec().

◆ fGlobalTracks

TClonesArray* CbmAnaJpsiTask::fGlobalTracks
private

Definition at line 79 of file CbmAnaJpsiTask.h.

Referenced by FillCandidates(), and Init().

◆ fHM

◆ fJpsiCandidates

TClonesArray* CbmAnaJpsiTask::fJpsiCandidates
private

Definition at line 80 of file CbmAnaJpsiTask.h.

Referenced by Exec(), and Init().

◆ fKFVertex

CbmKFVertex CbmAnaJpsiTask::fKFVertex
private

Definition at line 87 of file CbmAnaJpsiTask.h.

Referenced by Exec(), and FillCandidates().

◆ fMcTracks

◆ fNofHitsInRingMap

std::map<Int_t, Int_t> CbmAnaJpsiTask::fNofHitsInRingMap
private

Definition at line 84 of file CbmAnaJpsiTask.h.

Referenced by FillRichRingNofHits(), and IsMcTrackAccepted().

◆ fPrimVertex

CbmVertex* CbmAnaJpsiTask::fPrimVertex
private

Definition at line 86 of file CbmAnaJpsiTask.h.

Referenced by Exec(), and Init().

◆ fRichHits

TClonesArray* CbmAnaJpsiTask::fRichHits
private

Definition at line 69 of file CbmAnaJpsiTask.h.

Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().

◆ fRichPoints

TClonesArray* CbmAnaJpsiTask::fRichPoints
private

Definition at line 68 of file CbmAnaJpsiTask.h.

Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().

◆ fRichRingMatches

TClonesArray* CbmAnaJpsiTask::fRichRingMatches
private

Definition at line 71 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), and Init().

◆ fRichRings

TClonesArray* CbmAnaJpsiTask::fRichRings
private

Definition at line 70 of file CbmAnaJpsiTask.h.

Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().

◆ fStsHits

TClonesArray* CbmAnaJpsiTask::fStsHits
private

Definition at line 65 of file CbmAnaJpsiTask.h.

Referenced by Init().

◆ fStsPoints

TClonesArray* CbmAnaJpsiTask::fStsPoints
private

Definition at line 64 of file CbmAnaJpsiTask.h.

Referenced by Init().

◆ fStsTrackMatches

TClonesArray* CbmAnaJpsiTask::fStsTrackMatches
private

Definition at line 67 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), and Init().

◆ fStsTracks

TClonesArray* CbmAnaJpsiTask::fStsTracks
private

Definition at line 66 of file CbmAnaJpsiTask.h.

Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().

◆ fTofHits

TClonesArray* CbmAnaJpsiTask::fTofHits
private

Definition at line 77 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), FillCandidates(), Init(), and IsRecoTrackAccepted().

◆ fTofHitsMatches

TClonesArray* CbmAnaJpsiTask::fTofHitsMatches
private

Definition at line 78 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), and Init().

◆ fTofPoints

TClonesArray* CbmAnaJpsiTask::fTofPoints
private

Definition at line 76 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), and Init().

◆ fTrdHits

TClonesArray* CbmAnaJpsiTask::fTrdHits
private

Definition at line 73 of file CbmAnaJpsiTask.h.

Referenced by Init().

◆ fTrdPoints

TClonesArray* CbmAnaJpsiTask::fTrdPoints
private

Definition at line 72 of file CbmAnaJpsiTask.h.

Referenced by Init().

◆ fTrdTrackMatches

TClonesArray* CbmAnaJpsiTask::fTrdTrackMatches
private

Definition at line 75 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), and Init().

◆ fTrdTracks

TClonesArray* CbmAnaJpsiTask::fTrdTracks
private

Definition at line 74 of file CbmAnaJpsiTask.h.

Referenced by FillCandidates(), Init(), and IsRecoTrackAccepted().

◆ fUseTof

Bool_t CbmAnaJpsiTask::fUseTof
private

Definition at line 98 of file CbmAnaJpsiTask.h.

Referenced by IsElectron().

◆ fUseTrd

Bool_t CbmAnaJpsiTask::fUseTrd
private

Definition at line 97 of file CbmAnaJpsiTask.h.

Referenced by AssignMcToCandidates(), FillCandidates(), Init(), IsMismatch(), and TrackSource().

◆ fWeight

Double_t CbmAnaJpsiTask::fWeight
private

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