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

Task for TOF QA. More...

#include <CbmLitTofQa.h>

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

Public Member Functions

 CbmLitTofQa ()
 Constructor.
 
virtual ~CbmLitTofQa ()
 Destructor.
 
virtual InitStatus Init ()
 Inherited from FairTask.
 
virtual void Exec (Option_t *opt)
 Inherited from FairTask.
 
virtual void Finish ()
 Inherited from FairTask.
 
void SetOutputDir (const string &dir)
 
void SetPRange (Int_t bins, Int_t min, Int_t max)
 Set momentum range and number of bins for histograms.
 

Private Types

typedef Bool_t(*) LitTrackAcceptanceFunction(CbmMCDataArray *mcTracks, Int_t eventNo, Int_t index)
 

Private Member Functions

void ReadDataBranches ()
 Reads data branches.
 
void FillTrackCategoriesAndAcceptanceFunctions ()
 Assign default track categories and track acceptance functions.
 
void CreateHistograms ()
 Creates histograms.
 
void ProcessMC (Int_t iEvent)
 
void ProcessGlobalTracks ()
 
void ProcessTofHits ()
 
void ProcessTofTracks ()
 
void FitHistograms ()
 
 CbmLitTofQa (const CbmLitTofQa &)
 
CbmLitTofQaoperator= (const CbmLitTofQa &)
 

Private Attributes

Bool_t fIsFixedBounds
 
string fOutputDir
 
Double_t fPRangeMin
 
Double_t fPRangeMax
 
Int_t fPRangeBins
 
CbmHistManagerfHM
 
TClonesArray * fGlobalTracks
 
TClonesArray * fStsTracks
 
TClonesArray * fStsTrackMatches
 
TClonesArray * fTofHits
 
CbmMCDataArrayfTofPoints
 
TClonesArray * fTofHitsMatches
 
TClonesArray * fTofTracks
 
CbmMCDataArrayfMCTracks
 
CbmVertexfPrimVertex
 
vector< string > fTrackCategories
 
map< string, LitTrackAcceptanceFunctionfTrackAcceptanceFunctions
 
set< pair< Int_t, Int_t > > fMCTrackIdForTofHits
 
set< pair< Int_t, Int_t > > fMCTrackIdForTofPoints
 

Detailed Description

Task for TOF QA.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2013

Definition at line 40 of file CbmLitTofQa.h.

Member Typedef Documentation

◆ LitTrackAcceptanceFunction

Bool_t(*) CbmLitTofQa::LitTrackAcceptanceFunction(CbmMCDataArray *mcTracks, Int_t eventNo, Int_t index)
private

Definition at line 135 of file CbmLitTofQa.h.

Constructor & Destructor Documentation

◆ CbmLitTofQa() [1/2]

CbmLitTofQa::CbmLitTofQa ( )

Constructor.

Definition at line 48 of file CbmLitTofQa.cxx.

References FillTrackCategoriesAndAcceptanceFunctions().

◆ ~CbmLitTofQa()

CbmLitTofQa::~CbmLitTofQa ( )
virtual

Destructor.

Definition at line 72 of file CbmLitTofQa.cxx.

References fHM.

◆ CbmLitTofQa() [2/2]

CbmLitTofQa::CbmLitTofQa ( const CbmLitTofQa & )
private

Member Function Documentation

◆ CreateHistograms()

void CbmLitTofQa::CreateHistograms ( )
private

Creates histograms.

Definition at line 164 of file CbmLitTofQa.cxx.

References CbmHistManager::Add(), fHM, fPRangeBins, fPRangeMax, fPRangeMin, and fTrackCategories.

Referenced by Init().

◆ Exec()

void CbmLitTofQa::Exec ( Option_t * opt)
virtual

Inherited from FairTask.

Definition at line 85 of file CbmLitTofQa.cxx.

References ProcessMC(), ProcessTofHits(), and ProcessTofTracks().

◆ FillTrackCategoriesAndAcceptanceFunctions()

◆ Finish()

void CbmLitTofQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 96 of file CbmLitTofQa.cxx.

References CbmSimulationReport::Create(), fHM, FitHistograms(), fOutputDir, and CbmHistManager::WriteToFile().

◆ FitHistograms()

void CbmLitTofQa::FitHistograms ( )
private

Definition at line 386 of file CbmLitTofQa.cxx.

References fHM, and CbmHistManager::H2().

Referenced by Finish().

◆ Init()

InitStatus CbmLitTofQa::Init ( )
virtual

Inherited from FairTask.

Definition at line 77 of file CbmLitTofQa.cxx.

References CreateHistograms(), fHM, and ReadDataBranches().

◆ operator=()

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

◆ ProcessGlobalTracks()

◆ ProcessMC()

◆ ProcessTofHits()

◆ ProcessTofTracks()

◆ ReadDataBranches()

void CbmLitTofQa::ReadDataBranches ( )
private

◆ SetOutputDir()

void CbmLitTofQa::SetOutputDir ( const string & dir)
inline

Definition at line 68 of file CbmLitTofQa.h.

References fOutputDir.

◆ SetPRange()

void CbmLitTofQa::SetPRange ( Int_t bins,
Int_t min,
Int_t max )
inline

Set momentum range and number of bins for histograms.

Definition at line 73 of file CbmLitTofQa.h.

References fPRangeBins, fPRangeMax, fPRangeMin, max(), and min().

Member Data Documentation

◆ fGlobalTracks

TClonesArray* CbmLitTofQa::fGlobalTracks
private

Definition at line 120 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fHM

◆ fIsFixedBounds

Bool_t CbmLitTofQa::fIsFixedBounds
private

Definition at line 109 of file CbmLitTofQa.h.

◆ fMCTrackIdForTofHits

set<pair<Int_t, Int_t> > CbmLitTofQa::fMCTrackIdForTofHits
private

Definition at line 140 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ProcessMC().

◆ fMCTrackIdForTofPoints

set<pair<Int_t, Int_t> > CbmLitTofQa::fMCTrackIdForTofPoints
private

Definition at line 141 of file CbmLitTofQa.h.

Referenced by ProcessMC().

◆ fMCTracks

CbmMCDataArray* CbmLitTofQa::fMCTracks
private

Definition at line 127 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), ProcessTofTracks(), and ReadDataBranches().

◆ fOutputDir

string CbmLitTofQa::fOutputDir
private

Definition at line 111 of file CbmLitTofQa.h.

Referenced by Finish(), and SetOutputDir().

◆ fPRangeBins

Int_t CbmLitTofQa::fPRangeBins
private

Definition at line 115 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPRangeMax

Double_t CbmLitTofQa::fPRangeMax
private

Definition at line 114 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPRangeMin

Double_t CbmLitTofQa::fPRangeMin
private

Definition at line 113 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPrimVertex

CbmVertex* CbmLitTofQa::fPrimVertex
private

Definition at line 129 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fStsTrackMatches

TClonesArray* CbmLitTofQa::fStsTrackMatches
private

Definition at line 122 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fStsTracks

TClonesArray* CbmLitTofQa::fStsTracks
private

Definition at line 121 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fTofHits

TClonesArray* CbmLitTofQa::fTofHits
private

◆ fTofHitsMatches

TClonesArray* CbmLitTofQa::fTofHitsMatches
private

◆ fTofPoints

CbmMCDataArray* CbmLitTofQa::fTofPoints
private

◆ fTofTracks

TClonesArray* CbmLitTofQa::fTofTracks
private

Definition at line 126 of file CbmLitTofQa.h.

Referenced by ProcessTofTracks(), and ReadDataBranches().

◆ fTrackAcceptanceFunctions

map<string, LitTrackAcceptanceFunction> CbmLitTofQa::fTrackAcceptanceFunctions
private

◆ fTrackCategories

vector<string> CbmLitTofQa::fTrackCategories
private

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