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

#include <CbmTrdHitRateFastQa.h>

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

Public Member Functions

 CbmTrdHitRateFastQa ()
 
 CbmTrdHitRateFastQa (const char *name, const char *title="CBM Task")
 
virtual ~CbmTrdHitRateFastQa ()
 
virtual InitStatus ReInit ()
 
virtual InitStatus Init ()
 
virtual void SetParContainers ()
 
virtual void Exec (Option_t *option)
 
virtual void FinishEvent ()
 
virtual void FinishTask ()
 
void Register ()
 

Private Member Functions

void HistoInit (TCanvas *&c1, TCanvas *&c2, TCanvas *&c3, TH2F *&Layer, TH1F *&HitPad, Double_t ZRangeL, Double_t ZRangeU, Double_t mm2bin)
 
void ScanModulePlane (const Int_t moduleId, TCanvas *&c1, TCanvas *&c2, TH1F *&HitPad, TH1F *&HitAsic)
 
void GetModuleInformationFromDigiPar (HitRateGeoPara2 *GeoPara, Bool_t Fast, Bool_t Lines, Int_t VolumeID, TH2F *Layer, TCanvas *c1, TH1F *HitPad, TCanvas *c2, TH2F *Topview[3], TCanvas *c0, Double_t mm2bin)
 
void GetModuleInformation ()
 
void Histo (HitRateGeoPara2 *GeoPara, Bool_t Fast, TH2F *Layer, TCanvas *c1, TH1F *HitPad, TCanvas *c2, TH2F *Topview[3], TCanvas *c0, Double_t mm2bin)
 
Double_t CalcHitRate (HitRateGeoPara2 *GeoPara, Double_t StartX, Double_t StopX, Int_t xSteps, Double_t StartY, Double_t StopY, Int_t ySteps, Double_t *Mpos, TH2F *Topview[3], TCanvas *c0)
 
Double_t CalcHitRatePad (const Double_t x_min, const Double_t x_max, const Double_t y_min, const Double_t y_max, const Double_t z)
 
void DrawBorders (HitRateGeoPara2 *GeoPara, TH2F *Layer, TCanvas *c1)
 
void DrawPads (HitRateGeoPara2 *GeoPara, TH2F *Layer, TCanvas *c1)
 
void DrawDigi ()
 
 CbmTrdHitRateFastQa (const CbmTrdHitRateFastQa &)
 iterator over array above
 
CbmTrdHitRateFastQaoperator= (const CbmTrdHitRateFastQa &)
 

Private Attributes

std::ofstream myfile
 
Int_t nTotalAsics
 
Int_t nTotalOptLinks
 
Double_t trdTotalDataRate
 
TH1F * h1DataModule
 
TH1F * h1OptLinksModule
 
Int_t Digicounter
 
TFile * tFile
 
Bool_t fDraw
 
Int_t fPlane
 
Int_t fStation
 
Int_t fLayer
 
Int_t fCol_mean
 
Int_t fCol_in
 
Int_t fCol_out
 
Int_t fRow_mean
 
Int_t fRow_in
 
Int_t fRow_out
 
Int_t fModuleID
 
Int_t fMCindex
 
Double_t local_meanLL [3]
 
Double_t local_meanC [3]
 
Double_t global_meanLL [3]
 
Double_t global_meanC [3]
 
Double_t local_inLL [3]
 
Double_t local_inC [3]
 
Double_t global_inLL [3]
 
Double_t global_inC [3]
 
Double_t local_outLL [3]
 
Double_t local_outC [3]
 
Double_t global_outLL [3]
 
Double_t global_outC [3]
 
Float_t fx_in
 
Float_t fx_out
 
Float_t fy_in
 
Float_t fy_out
 
Float_t fz_in
 
Float_t fz_out
 
Float_t fx_mean
 
Float_t fy_mean
 
Float_t fz_mean
 
Int_t fSector
 
Double_t padsize [3]
 
Double_t modulesize [3]
 
Float_t fELoss
 
Float_t fELossdEdX
 
Float_t fELossTR
 
Float_t fPosXLL
 
Float_t fPosYLL
 
Float_t fPadPosxLL
 
Float_t fPadPosyLL
 
Float_t fPadPosxC
 
Float_t fPadPosyC
 
Float_t fDeltax
 
Float_t fDeltay
 
Float_t fPadCharge [fPadNrY][fPadNrX]
 
Float_t fPRFHitPositionLL
 
Float_t fPRFHitPositionC
 
Float_t fEfficiency
 
TClonesArray * fTrdPoints
 
TClonesArray * fDigiCollection
 Trd MC points.
 
TClonesArray * fDigiMatchCollection
 TRD digis.
 
TClonesArray * fMCStacks
 Corresponding MCPoints to TRD digis.
 
CbmTrdParSetAsicfAsicPar
 MC Track information.
 
CbmTrdParSetDigifDigiPar
 
CbmTrdParSetGeofGeoPar
 
CbmTrdGeoHandlerfGeoHandler
 
std::vector< Int_t > fColors
 
std::vector< Double_t > fZLevel
 
Double_t fBitPerHit
 
std::map< std::pair< Int_t, std::pair< Int_t, Int_t > >, CbmTrdDigi * > fDigiMap
 
std::map< std::pair< Int_t, std::pair< Int_t, Int_t > >, CbmTrdDigi * >::iterator fDigiMapIt
 

Static Private Attributes

static const Int_t accuracy = 1
 
static const Int_t fPadNrX = 7
 
static const Int_t fPadNrY = 5
 

Detailed Description

Definition at line 59 of file CbmTrdHitRateFastQa.h.

Constructor & Destructor Documentation

◆ CbmTrdHitRateFastQa() [1/3]

CbmTrdHitRateFastQa::CbmTrdHitRateFastQa ( )

Default constructor

Definition at line 61 of file CbmTrdHitRateFastQa.cxx.

◆ CbmTrdHitRateFastQa() [2/3]

CbmTrdHitRateFastQa::CbmTrdHitRateFastQa ( const char * name,
const char * title = "CBM Task" )

Standard constructor

Definition at line 65 of file CbmTrdHitRateFastQa.cxx.

◆ ~CbmTrdHitRateFastQa()

CbmTrdHitRateFastQa::~CbmTrdHitRateFastQa ( )
virtual

Destructor

Definition at line 144 of file CbmTrdHitRateFastQa.cxx.

◆ CbmTrdHitRateFastQa() [3/3]

CbmTrdHitRateFastQa::CbmTrdHitRateFastQa ( const CbmTrdHitRateFastQa & )
private

iterator over array above

Member Function Documentation

◆ CalcHitRate()

Double_t CbmTrdHitRateFastQa::CalcHitRate ( HitRateGeoPara2 * GeoPara,
Double_t StartX,
Double_t StopX,
Int_t xSteps,
Double_t StartY,
Double_t StopY,
Int_t ySteps,
Double_t * Mpos,
TH2F * Topview[3],
TCanvas * c0 )
private

◆ CalcHitRatePad()

Double_t CbmTrdHitRateFastQa::CalcHitRatePad ( const Double_t x_min,
const Double_t x_max,
const Double_t y_min,
const Double_t y_max,
const Double_t z )
private

Definition at line 1277 of file CbmTrdHitRateFastQa.cxx.

References exp(), sqrt(), x, and y.

Referenced by ScanModulePlane().

◆ DrawBorders()

void CbmTrdHitRateFastQa::DrawBorders ( HitRateGeoPara2 * GeoPara,
TH2F * Layer,
TCanvas * c1 )
private

◆ DrawDigi()

void CbmTrdHitRateFastQa::DrawDigi ( )
private

Definition at line 1689 of file CbmTrdHitRateFastQa.cxx.

◆ DrawPads()

void CbmTrdHitRateFastQa::DrawPads ( HitRateGeoPara2 * GeoPara,
TH2F * Layer,
TCanvas * c1 )
private

◆ Exec()

void CbmTrdHitRateFastQa::Exec ( Option_t * option)
virtual

Executed task

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 228 of file CbmTrdHitRateFastQa.cxx.

References fBitPerHit, fColors, fDigiPar, fDraw, fLayer, fPlane, fStation, fZLevel, CbmTrdAddress::GetLayerId(), CbmTrdParSet::GetModuleId(), CbmTrdParSet::GetNrOfModules(), h1DataModule, h1OptLinksModule, HistoInit(), myfile, nTotalAsics, nTotalOptLinks, ScanModulePlane(), tFile, trdTotalDataRate, and winsize.

◆ FinishEvent()

void CbmTrdHitRateFastQa::FinishEvent ( )
virtual

Finish (called after each event)

Definition at line 876 of file CbmTrdHitRateFastQa.cxx.

References fDigiCollection, fDigiMap, and fDigiMatchCollection.

◆ FinishTask()

virtual void CbmTrdHitRateFastQa::FinishTask ( )
inlinevirtual

Finish task (called after all event)

Definition at line 83 of file CbmTrdHitRateFastQa.h.

◆ GetModuleInformation()

void CbmTrdHitRateFastQa::GetModuleInformation ( )
private

Definition at line 885 of file CbmTrdHitRateFastQa.cxx.

References fLayer, fStation, and pos.

◆ GetModuleInformationFromDigiPar()

◆ Histo()

void CbmTrdHitRateFastQa::Histo ( HitRateGeoPara2 * GeoPara,
Bool_t Fast,
TH2F * Layer,
TCanvas * c1,
TH1F * HitPad,
TCanvas * c2,
TH2F * Topview[3],
TCanvas * c0,
Double_t mm2bin )
private

◆ HistoInit()

void CbmTrdHitRateFastQa::HistoInit ( TCanvas *& c1,
TCanvas *& c2,
TCanvas *& c3,
TH2F *& Layer,
TH1F *& HitPad,
Double_t ZRangeL,
Double_t ZRangeU,
Double_t mm2bin )
private

Definition at line 772 of file CbmTrdHitRateFastQa.cxx.

References fDraw, fLayer, fStation, and winsize.

Referenced by Exec().

◆ Init()

InitStatus CbmTrdHitRateFastQa::Init ( )
virtual

Definition at line 190 of file CbmTrdHitRateFastQa.cxx.

References fGeoHandler, fMCStacks, fTrdPoints, and CbmTrdGeoHandler::Init().

◆ operator=()

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

◆ Register()

void CbmTrdHitRateFastQa::Register ( )

Definition at line 1694 of file CbmTrdHitRateFastQa.cxx.

◆ ReInit()

InitStatus CbmTrdHitRateFastQa::ReInit ( )
virtual

Initialisation

Definition at line 172 of file CbmTrdHitRateFastQa.cxx.

References fAsicPar, fDigiPar, and fGeoPar.

◆ ScanModulePlane()

◆ SetParContainers()

void CbmTrdHitRateFastQa::SetParContainers ( )
virtual

Definition at line 156 of file CbmTrdHitRateFastQa.cxx.

References fAsicPar, fDigiPar, and fGeoPar.

Member Data Documentation

◆ accuracy

const Int_t CbmTrdHitRateFastQa::accuracy = 1
staticprivate

Definition at line 164 of file CbmTrdHitRateFastQa.h.

◆ Digicounter

Int_t CbmTrdHitRateFastQa::Digicounter
private

Definition at line 130 of file CbmTrdHitRateFastQa.h.

◆ fAsicPar

CbmTrdParSetAsic* CbmTrdHitRateFastQa::fAsicPar
private

MC Track information.

Definition at line 206 of file CbmTrdHitRateFastQa.h.

Referenced by ReInit(), ScanModulePlane(), and SetParContainers().

◆ fBitPerHit

Double_t CbmTrdHitRateFastQa::fBitPerHit
private

Definition at line 214 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ fCol_in

Int_t CbmTrdHitRateFastQa::fCol_in
private

Definition at line 140 of file CbmTrdHitRateFastQa.h.

◆ fCol_mean

Int_t CbmTrdHitRateFastQa::fCol_mean
private

Definition at line 140 of file CbmTrdHitRateFastQa.h.

◆ fCol_out

Int_t CbmTrdHitRateFastQa::fCol_out
private

Definition at line 141 of file CbmTrdHitRateFastQa.h.

◆ fColors

std::vector<Int_t> CbmTrdHitRateFastQa::fColors
private

Definition at line 212 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ fDeltax

Float_t CbmTrdHitRateFastQa::fDeltax
private

Definition at line 190 of file CbmTrdHitRateFastQa.h.

◆ fDeltay

Float_t CbmTrdHitRateFastQa::fDeltay
private

Definition at line 190 of file CbmTrdHitRateFastQa.h.

◆ fDigiCollection

TClonesArray* CbmTrdHitRateFastQa::fDigiCollection
private

Trd MC points.

Definition at line 202 of file CbmTrdHitRateFastQa.h.

Referenced by FinishEvent().

◆ fDigiMap

std::map<std::pair<Int_t, std::pair<Int_t, Int_t> >, CbmTrdDigi*> CbmTrdHitRateFastQa::fDigiMap
private

map to store digis for pair of x,y position in module

Definition at line 217 of file CbmTrdHitRateFastQa.h.

Referenced by FinishEvent().

◆ fDigiMapIt

std::map<std::pair<Int_t,std::pair<Int_t,Int_t>>,CbmTrdDigi*>::iterator CbmTrdHitRateFastQa::fDigiMapIt
private

iterator over map to store digis for pair of x,y position in module

Definition at line 219 of file CbmTrdHitRateFastQa.h.

◆ fDigiMatchCollection

TClonesArray* CbmTrdHitRateFastQa::fDigiMatchCollection
private

TRD digis.

Definition at line 203 of file CbmTrdHitRateFastQa.h.

Referenced by FinishEvent().

◆ fDigiPar

CbmTrdParSetDigi* CbmTrdHitRateFastQa::fDigiPar
private

◆ fDraw

Bool_t CbmTrdHitRateFastQa::fDraw
private

◆ fEfficiency

Float_t CbmTrdHitRateFastQa::fEfficiency
private

Definition at line 197 of file CbmTrdHitRateFastQa.h.

◆ fELoss

Float_t CbmTrdHitRateFastQa::fELoss
private

Definition at line 180 of file CbmTrdHitRateFastQa.h.

◆ fELossdEdX

Float_t CbmTrdHitRateFastQa::fELossdEdX
private

Definition at line 181 of file CbmTrdHitRateFastQa.h.

◆ fELossTR

Float_t CbmTrdHitRateFastQa::fELossTR
private

Definition at line 182 of file CbmTrdHitRateFastQa.h.

◆ fGeoHandler

CbmTrdGeoHandler* CbmTrdHitRateFastQa::fGeoHandler
private

Definition at line 210 of file CbmTrdHitRateFastQa.h.

Referenced by Init().

◆ fGeoPar

CbmTrdParSetGeo* CbmTrdHitRateFastQa::fGeoPar
private

◆ fLayer

Int_t CbmTrdHitRateFastQa::fLayer
private

◆ fMCindex

Int_t CbmTrdHitRateFastQa::fMCindex
private

Definition at line 144 of file CbmTrdHitRateFastQa.h.

◆ fMCStacks

TClonesArray* CbmTrdHitRateFastQa::fMCStacks
private

Corresponding MCPoints to TRD digis.

Definition at line 204 of file CbmTrdHitRateFastQa.h.

Referenced by Init().

◆ fModuleID

Int_t CbmTrdHitRateFastQa::fModuleID
private

Definition at line 143 of file CbmTrdHitRateFastQa.h.

◆ fPadCharge

Float_t CbmTrdHitRateFastQa::fPadCharge[fPadNrY][fPadNrX]
private

Definition at line 193 of file CbmTrdHitRateFastQa.h.

◆ fPadNrX

const Int_t CbmTrdHitRateFastQa::fPadNrX = 7
staticprivate

Definition at line 165 of file CbmTrdHitRateFastQa.h.

◆ fPadNrY

const Int_t CbmTrdHitRateFastQa::fPadNrY = 5
staticprivate

Definition at line 166 of file CbmTrdHitRateFastQa.h.

◆ fPadPosxC

Float_t CbmTrdHitRateFastQa::fPadPosxC
private

Definition at line 188 of file CbmTrdHitRateFastQa.h.

◆ fPadPosxLL

Float_t CbmTrdHitRateFastQa::fPadPosxLL
private

Definition at line 186 of file CbmTrdHitRateFastQa.h.

◆ fPadPosyC

Float_t CbmTrdHitRateFastQa::fPadPosyC
private

Definition at line 189 of file CbmTrdHitRateFastQa.h.

◆ fPadPosyLL

Float_t CbmTrdHitRateFastQa::fPadPosyLL
private

Definition at line 187 of file CbmTrdHitRateFastQa.h.

◆ fPlane

Int_t CbmTrdHitRateFastQa::fPlane
private

Definition at line 136 of file CbmTrdHitRateFastQa.h.

Referenced by Exec().

◆ fPosXLL

Float_t CbmTrdHitRateFastQa::fPosXLL
private

Definition at line 183 of file CbmTrdHitRateFastQa.h.

◆ fPosYLL

Float_t CbmTrdHitRateFastQa::fPosYLL
private

Definition at line 184 of file CbmTrdHitRateFastQa.h.

◆ fPRFHitPositionC

Float_t CbmTrdHitRateFastQa::fPRFHitPositionC
private

Definition at line 195 of file CbmTrdHitRateFastQa.h.

◆ fPRFHitPositionLL

Float_t CbmTrdHitRateFastQa::fPRFHitPositionLL
private

Definition at line 195 of file CbmTrdHitRateFastQa.h.

◆ fRow_in

Int_t CbmTrdHitRateFastQa::fRow_in
private

Definition at line 142 of file CbmTrdHitRateFastQa.h.

◆ fRow_mean

Int_t CbmTrdHitRateFastQa::fRow_mean
private

Definition at line 142 of file CbmTrdHitRateFastQa.h.

◆ fRow_out

Int_t CbmTrdHitRateFastQa::fRow_out
private

Definition at line 142 of file CbmTrdHitRateFastQa.h.

◆ fSector

Int_t CbmTrdHitRateFastQa::fSector
private

Definition at line 162 of file CbmTrdHitRateFastQa.h.

◆ fStation

Int_t CbmTrdHitRateFastQa::fStation
private

◆ fTrdPoints

TClonesArray* CbmTrdHitRateFastQa::fTrdPoints
private

Definition at line 201 of file CbmTrdHitRateFastQa.h.

Referenced by Init().

◆ fx_in

Float_t CbmTrdHitRateFastQa::fx_in
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fx_mean

Float_t CbmTrdHitRateFastQa::fx_mean
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fx_out

Float_t CbmTrdHitRateFastQa::fx_out
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fy_in

Float_t CbmTrdHitRateFastQa::fy_in
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fy_mean

Float_t CbmTrdHitRateFastQa::fy_mean
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fy_out

Float_t CbmTrdHitRateFastQa::fy_out
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fz_in

Float_t CbmTrdHitRateFastQa::fz_in
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fz_mean

Float_t CbmTrdHitRateFastQa::fz_mean
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fz_out

Float_t CbmTrdHitRateFastQa::fz_out
private

Definition at line 161 of file CbmTrdHitRateFastQa.h.

◆ fZLevel

std::vector<Double_t> CbmTrdHitRateFastQa::fZLevel
private

Definition at line 213 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ global_inC

Double_t CbmTrdHitRateFastQa::global_inC[3]
private

Definition at line 153 of file CbmTrdHitRateFastQa.h.

◆ global_inLL

Double_t CbmTrdHitRateFastQa::global_inLL[3]
private

Definition at line 152 of file CbmTrdHitRateFastQa.h.

◆ global_meanC

Double_t CbmTrdHitRateFastQa::global_meanC[3]
private

Definition at line 149 of file CbmTrdHitRateFastQa.h.

◆ global_meanLL

Double_t CbmTrdHitRateFastQa::global_meanLL[3]
private

Definition at line 148 of file CbmTrdHitRateFastQa.h.

◆ global_outC

Double_t CbmTrdHitRateFastQa::global_outC[3]
private

Definition at line 158 of file CbmTrdHitRateFastQa.h.

◆ global_outLL

Double_t CbmTrdHitRateFastQa::global_outLL[3]
private

Definition at line 157 of file CbmTrdHitRateFastQa.h.

◆ h1DataModule

TH1F* CbmTrdHitRateFastQa::h1DataModule
private

Definition at line 100 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ h1OptLinksModule

TH1F* CbmTrdHitRateFastQa::h1OptLinksModule
private

Definition at line 101 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ local_inC

Double_t CbmTrdHitRateFastQa::local_inC[3]
private

Definition at line 151 of file CbmTrdHitRateFastQa.h.

◆ local_inLL

Double_t CbmTrdHitRateFastQa::local_inLL[3]
private

Definition at line 150 of file CbmTrdHitRateFastQa.h.

◆ local_meanC

Double_t CbmTrdHitRateFastQa::local_meanC[3]
private

Definition at line 147 of file CbmTrdHitRateFastQa.h.

◆ local_meanLL

Double_t CbmTrdHitRateFastQa::local_meanLL[3]
private

Definition at line 146 of file CbmTrdHitRateFastQa.h.

◆ local_outC

Double_t CbmTrdHitRateFastQa::local_outC[3]
private

Definition at line 156 of file CbmTrdHitRateFastQa.h.

◆ local_outLL

Double_t CbmTrdHitRateFastQa::local_outLL[3]
private

Definition at line 155 of file CbmTrdHitRateFastQa.h.

◆ modulesize

Double_t CbmTrdHitRateFastQa::modulesize[3]
private

Definition at line 178 of file CbmTrdHitRateFastQa.h.

◆ myfile

std::ofstream CbmTrdHitRateFastQa::myfile
private

Definition at line 94 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ nTotalAsics

Int_t CbmTrdHitRateFastQa::nTotalAsics
private

Definition at line 96 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ nTotalOptLinks

Int_t CbmTrdHitRateFastQa::nTotalOptLinks
private

Definition at line 97 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ padsize

Double_t CbmTrdHitRateFastQa::padsize[3]
private

Definition at line 177 of file CbmTrdHitRateFastQa.h.

◆ tFile

TFile* CbmTrdHitRateFastQa::tFile
private

Definition at line 132 of file CbmTrdHitRateFastQa.h.

Referenced by Exec().

◆ trdTotalDataRate

Double_t CbmTrdHitRateFastQa::trdTotalDataRate
private

Definition at line 98 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().


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