CbmRoot
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 More...
 
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. More...
 
TClonesArray * fDigiMatchCollection
 TRD digis. More...
 
TClonesArray * fMCStacks
 Corresponding MCPoints to TRD digis. More...
 
CbmTrdParSetAsicfAsicPar
 MC Track information. More...
 
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 53 of file CbmTrdHitRateFastQa.h.

Constructor & Destructor Documentation

◆ CbmTrdHitRateFastQa() [1/3]

CbmTrdHitRateFastQa::CbmTrdHitRateFastQa ( )

Default constructor

Definition at line 55 of file CbmTrdHitRateFastQa.cxx.

◆ CbmTrdHitRateFastQa() [2/3]

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

Standard constructor

Definition at line 60 of file CbmTrdHitRateFastQa.cxx.

◆ ~CbmTrdHitRateFastQa()

CbmTrdHitRateFastQa::~CbmTrdHitRateFastQa ( )
virtual

Destructor

Definition at line 137 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 1389 of file CbmTrdHitRateFastQa.cxx.

References exp(), fabs(), 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 1891 of file CbmTrdHitRateFastQa.cxx.

◆ DrawPads()

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

◆ Exec()

◆ FinishEvent()

void CbmTrdHitRateFastQa::FinishEvent ( )
virtual

Finish (called after each event)

Definition at line 935 of file CbmTrdHitRateFastQa.cxx.

References fDigiCollection, fDigiMap, and fDigiMatchCollection.

◆ FinishTask()

virtual void CbmTrdHitRateFastQa::FinishTask ( )
inlinevirtual

Finish task (called after all event)

Definition at line 77 of file CbmTrdHitRateFastQa.h.

◆ GetModuleInformation()

void CbmTrdHitRateFastQa::GetModuleInformation ( )
private

Definition at line 943 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 821 of file CbmTrdHitRateFastQa.cxx.

References fDraw, fLayer, fStation, i, and winsize.

Referenced by Exec().

◆ Init()

InitStatus CbmTrdHitRateFastQa::Init ( )
virtual

Definition at line 180 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 1896 of file CbmTrdHitRateFastQa.cxx.

◆ ReInit()

InitStatus CbmTrdHitRateFastQa::ReInit ( )
virtual

Initialisation

Definition at line 163 of file CbmTrdHitRateFastQa.cxx.

References fAsicPar, fDigiPar, and fGeoPar.

◆ ScanModulePlane()

◆ SetParContainers()

void CbmTrdHitRateFastQa::SetParContainers ( )
virtual

Definition at line 148 of file CbmTrdHitRateFastQa.cxx.

References fAsicPar, fDigiPar, and fGeoPar.

Member Data Documentation

◆ accuracy

const Int_t CbmTrdHitRateFastQa::accuracy = 1
staticprivate

Definition at line 195 of file CbmTrdHitRateFastQa.h.

◆ Digicounter

Int_t CbmTrdHitRateFastQa::Digicounter
private

Definition at line 160 of file CbmTrdHitRateFastQa.h.

◆ fAsicPar

CbmTrdParSetAsic* CbmTrdHitRateFastQa::fAsicPar
private

MC Track information.

Definition at line 239 of file CbmTrdHitRateFastQa.h.

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

◆ fBitPerHit

Double_t CbmTrdHitRateFastQa::fBitPerHit
private

Definition at line 247 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ fCol_in

Int_t CbmTrdHitRateFastQa::fCol_in
private

Definition at line 170 of file CbmTrdHitRateFastQa.h.

◆ fCol_mean

Int_t CbmTrdHitRateFastQa::fCol_mean
private

Definition at line 170 of file CbmTrdHitRateFastQa.h.

◆ fCol_out

Int_t CbmTrdHitRateFastQa::fCol_out
private

Definition at line 171 of file CbmTrdHitRateFastQa.h.

◆ fColors

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

Definition at line 245 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ fDeltax

Float_t CbmTrdHitRateFastQa::fDeltax
private

Definition at line 221 of file CbmTrdHitRateFastQa.h.

◆ fDeltay

Float_t CbmTrdHitRateFastQa::fDeltay
private

Definition at line 221 of file CbmTrdHitRateFastQa.h.

◆ fDigiCollection

TClonesArray* CbmTrdHitRateFastQa::fDigiCollection
private

Trd MC points.

Definition at line 235 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 250 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 253 of file CbmTrdHitRateFastQa.h.

◆ fDigiMatchCollection

TClonesArray* CbmTrdHitRateFastQa::fDigiMatchCollection
private

TRD digis.

Definition at line 236 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 230 of file CbmTrdHitRateFastQa.h.

◆ fELoss

Float_t CbmTrdHitRateFastQa::fELoss
private

Definition at line 211 of file CbmTrdHitRateFastQa.h.

◆ fELossdEdX

Float_t CbmTrdHitRateFastQa::fELossdEdX
private

Definition at line 212 of file CbmTrdHitRateFastQa.h.

◆ fELossTR

Float_t CbmTrdHitRateFastQa::fELossTR
private

Definition at line 213 of file CbmTrdHitRateFastQa.h.

◆ fGeoHandler

CbmTrdGeoHandler* CbmTrdHitRateFastQa::fGeoHandler
private

Definition at line 243 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 174 of file CbmTrdHitRateFastQa.h.

◆ fMCStacks

TClonesArray* CbmTrdHitRateFastQa::fMCStacks
private

Corresponding MCPoints to TRD digis.

Definition at line 237 of file CbmTrdHitRateFastQa.h.

Referenced by Init().

◆ fModuleID

Int_t CbmTrdHitRateFastQa::fModuleID
private

Definition at line 173 of file CbmTrdHitRateFastQa.h.

◆ fPadCharge

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

Definition at line 224 of file CbmTrdHitRateFastQa.h.

◆ fPadNrX

const Int_t CbmTrdHitRateFastQa::fPadNrX = 7
staticprivate

Definition at line 196 of file CbmTrdHitRateFastQa.h.

◆ fPadNrY

const Int_t CbmTrdHitRateFastQa::fPadNrY = 5
staticprivate

Definition at line 197 of file CbmTrdHitRateFastQa.h.

◆ fPadPosxC

Float_t CbmTrdHitRateFastQa::fPadPosxC
private

Definition at line 219 of file CbmTrdHitRateFastQa.h.

◆ fPadPosxLL

Float_t CbmTrdHitRateFastQa::fPadPosxLL
private

Definition at line 217 of file CbmTrdHitRateFastQa.h.

◆ fPadPosyC

Float_t CbmTrdHitRateFastQa::fPadPosyC
private

Definition at line 220 of file CbmTrdHitRateFastQa.h.

◆ fPadPosyLL

Float_t CbmTrdHitRateFastQa::fPadPosyLL
private

Definition at line 218 of file CbmTrdHitRateFastQa.h.

◆ fPlane

Int_t CbmTrdHitRateFastQa::fPlane
private

Definition at line 166 of file CbmTrdHitRateFastQa.h.

Referenced by Exec().

◆ fPosXLL

Float_t CbmTrdHitRateFastQa::fPosXLL
private

Definition at line 214 of file CbmTrdHitRateFastQa.h.

◆ fPosYLL

Float_t CbmTrdHitRateFastQa::fPosYLL
private

Definition at line 215 of file CbmTrdHitRateFastQa.h.

◆ fPRFHitPositionC

Float_t CbmTrdHitRateFastQa::fPRFHitPositionC
private

Definition at line 228 of file CbmTrdHitRateFastQa.h.

◆ fPRFHitPositionLL

Float_t CbmTrdHitRateFastQa::fPRFHitPositionLL
private

Definition at line 228 of file CbmTrdHitRateFastQa.h.

◆ fRow_in

Int_t CbmTrdHitRateFastQa::fRow_in
private

Definition at line 172 of file CbmTrdHitRateFastQa.h.

◆ fRow_mean

Int_t CbmTrdHitRateFastQa::fRow_mean
private

Definition at line 172 of file CbmTrdHitRateFastQa.h.

◆ fRow_out

Int_t CbmTrdHitRateFastQa::fRow_out
private

Definition at line 172 of file CbmTrdHitRateFastQa.h.

◆ fSector

Int_t CbmTrdHitRateFastQa::fSector
private

Definition at line 193 of file CbmTrdHitRateFastQa.h.

◆ fStation

Int_t CbmTrdHitRateFastQa::fStation
private

◆ fTrdPoints

TClonesArray* CbmTrdHitRateFastQa::fTrdPoints
private

Definition at line 234 of file CbmTrdHitRateFastQa.h.

Referenced by Init().

◆ fx_in

Float_t CbmTrdHitRateFastQa::fx_in
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fx_mean

Float_t CbmTrdHitRateFastQa::fx_mean
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fx_out

Float_t CbmTrdHitRateFastQa::fx_out
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fy_in

Float_t CbmTrdHitRateFastQa::fy_in
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fy_mean

Float_t CbmTrdHitRateFastQa::fy_mean
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fy_out

Float_t CbmTrdHitRateFastQa::fy_out
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fz_in

Float_t CbmTrdHitRateFastQa::fz_in
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fz_mean

Float_t CbmTrdHitRateFastQa::fz_mean
private

Definition at line 192 of file CbmTrdHitRateFastQa.h.

◆ fz_out

Float_t CbmTrdHitRateFastQa::fz_out
private

Definition at line 191 of file CbmTrdHitRateFastQa.h.

◆ fZLevel

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

Definition at line 246 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ global_inC

Double_t CbmTrdHitRateFastQa::global_inC[3]
private

Definition at line 183 of file CbmTrdHitRateFastQa.h.

◆ global_inLL

Double_t CbmTrdHitRateFastQa::global_inLL[3]
private

Definition at line 182 of file CbmTrdHitRateFastQa.h.

◆ global_meanC

Double_t CbmTrdHitRateFastQa::global_meanC[3]
private

Definition at line 179 of file CbmTrdHitRateFastQa.h.

◆ global_meanLL

Double_t CbmTrdHitRateFastQa::global_meanLL[3]
private

Definition at line 178 of file CbmTrdHitRateFastQa.h.

◆ global_outC

Double_t CbmTrdHitRateFastQa::global_outC[3]
private

Definition at line 188 of file CbmTrdHitRateFastQa.h.

◆ global_outLL

Double_t CbmTrdHitRateFastQa::global_outLL[3]
private

Definition at line 187 of file CbmTrdHitRateFastQa.h.

◆ h1DataModule

TH1F* CbmTrdHitRateFastQa::h1DataModule
private

Definition at line 94 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ h1OptLinksModule

TH1F* CbmTrdHitRateFastQa::h1OptLinksModule
private

Definition at line 95 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ local_inC

Double_t CbmTrdHitRateFastQa::local_inC[3]
private

Definition at line 181 of file CbmTrdHitRateFastQa.h.

◆ local_inLL

Double_t CbmTrdHitRateFastQa::local_inLL[3]
private

Definition at line 180 of file CbmTrdHitRateFastQa.h.

◆ local_meanC

Double_t CbmTrdHitRateFastQa::local_meanC[3]
private

Definition at line 177 of file CbmTrdHitRateFastQa.h.

◆ local_meanLL

Double_t CbmTrdHitRateFastQa::local_meanLL[3]
private

Definition at line 176 of file CbmTrdHitRateFastQa.h.

◆ local_outC

Double_t CbmTrdHitRateFastQa::local_outC[3]
private

Definition at line 186 of file CbmTrdHitRateFastQa.h.

◆ local_outLL

Double_t CbmTrdHitRateFastQa::local_outLL[3]
private

Definition at line 185 of file CbmTrdHitRateFastQa.h.

◆ modulesize

Double_t CbmTrdHitRateFastQa::modulesize[3]
private

Definition at line 209 of file CbmTrdHitRateFastQa.h.

◆ myfile

std::ofstream CbmTrdHitRateFastQa::myfile
private

Definition at line 88 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ nTotalAsics

Int_t CbmTrdHitRateFastQa::nTotalAsics
private

Definition at line 90 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ nTotalOptLinks

Int_t CbmTrdHitRateFastQa::nTotalOptLinks
private

Definition at line 91 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().

◆ padsize

Double_t CbmTrdHitRateFastQa::padsize[3]
private

Definition at line 208 of file CbmTrdHitRateFastQa.h.

◆ tFile

TFile* CbmTrdHitRateFastQa::tFile
private

Definition at line 162 of file CbmTrdHitRateFastQa.h.

Referenced by Exec().

◆ trdTotalDataRate

Double_t CbmTrdHitRateFastQa::trdTotalDataRate
private

Definition at line 92 of file CbmTrdHitRateFastQa.h.

Referenced by Exec(), and ScanModulePlane().


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