CbmRoot
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. More...
 
virtual ~CbmLitTofQa ()
 Destructor. More...
 
virtual InitStatus Init ()
 Inherited from FairTask. More...
 
virtual void Exec (Option_t *opt)
 Inherited from FairTask. More...
 
virtual void Finish ()
 Inherited from FairTask. More...
 
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. More...
 

Private Types

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

Private Member Functions

void ReadDataBranches ()
 Reads data branches. More...
 
void FillTrackCategoriesAndAcceptanceFunctions ()
 Assign default track categories and track acceptance functions. More...
 
void CreateHistograms ()
 Creates histograms. More...
 
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
 
CbmStsKFTrackFitter fKFFitter
 
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 35 of file CbmLitTofQa.h.

Member Typedef Documentation

◆ LitTrackAcceptanceFunction

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

Definition at line 131 of file CbmLitTofQa.h.

Constructor & Destructor Documentation

◆ CbmLitTofQa() [1/2]

CbmLitTofQa::CbmLitTofQa ( )

Constructor.

Definition at line 38 of file CbmLitTofQa.cxx.

References FillTrackCategoriesAndAcceptanceFunctions().

◆ ~CbmLitTofQa()

CbmLitTofQa::~CbmLitTofQa ( )
virtual

Destructor.

Definition at line 62 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 166 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 74 of file CbmLitTofQa.cxx.

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

◆ FillTrackCategoriesAndAcceptanceFunctions()

◆ Finish()

void CbmLitTofQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 84 of file CbmLitTofQa.cxx.

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

◆ FitHistograms()

void CbmLitTofQa::FitHistograms ( )
private

Definition at line 478 of file CbmLitTofQa.cxx.

References fHM, and CbmHistManager::H2().

Referenced by Finish().

◆ Init()

InitStatus CbmLitTofQa::Init ( )
virtual

Inherited from FairTask.

Definition at line 66 of file CbmLitTofQa.cxx.

References CreateHistograms(), fHM, fKFFitter, CbmStsKFTrackFitter::Init(), and ReadDataBranches().

◆ operator=()

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

◆ ProcessGlobalTracks()

◆ ProcessMC()

◆ ProcessTofHits()

void CbmLitTofQa::ProcessTofHits ( )
private

◆ ProcessTofTracks()

◆ ReadDataBranches()

void CbmLitTofQa::ReadDataBranches ( )
private

◆ SetOutputDir()

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

Definition at line 63 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 68 of file CbmLitTofQa.h.

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

Member Data Documentation

◆ fGlobalTracks

TClonesArray* CbmLitTofQa::fGlobalTracks
private

Definition at line 114 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fHM

◆ fIsFixedBounds

Bool_t CbmLitTofQa::fIsFixedBounds
private

Definition at line 103 of file CbmLitTofQa.h.

◆ fKFFitter

CbmStsKFTrackFitter CbmLitTofQa::fKFFitter
private

Definition at line 125 of file CbmLitTofQa.h.

Referenced by Init().

◆ fMCTrackIdForTofHits

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

Definition at line 139 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 121 of file CbmLitTofQa.h.

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

◆ fOutputDir

string CbmLitTofQa::fOutputDir
private

Definition at line 105 of file CbmLitTofQa.h.

Referenced by Finish(), and SetOutputDir().

◆ fPRangeBins

Int_t CbmLitTofQa::fPRangeBins
private

Definition at line 109 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPRangeMax

Double_t CbmLitTofQa::fPRangeMax
private

Definition at line 108 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPRangeMin

Double_t CbmLitTofQa::fPRangeMin
private

Definition at line 107 of file CbmLitTofQa.h.

Referenced by CreateHistograms(), and SetPRange().

◆ fPrimVertex

CbmVertex* CbmLitTofQa::fPrimVertex
private

Definition at line 123 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fStsTrackMatches

TClonesArray* CbmLitTofQa::fStsTrackMatches
private

Definition at line 116 of file CbmLitTofQa.h.

Referenced by ProcessGlobalTracks(), and ReadDataBranches().

◆ fStsTracks

TClonesArray* CbmLitTofQa::fStsTracks
private

Definition at line 115 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 120 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: