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

Task for checking the spill status based on a reference module. More...

#include <CbmSpillCheck.h>

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

Public Member Functions

 CbmSpillCheck ()
 Default constructor.
 
 CbmSpillCheck (ECbmModuleId ref=ECbmModuleId::kBmon, double spill_off_prcnt=0.2, double spill_on_prcnt=0.5)
 Parameterized constructor.
 
 ~CbmSpillCheck ()=default
 
InitStatus Init ()
 
void Exec (Option_t *)
 
void Finish ()
 
void SetCutMap (CbmCutMap *map)
 Set the cut map for analysis.
 
void UserAlignment (const std::map< int32_t, std::vector< double > > &user_mat)
 User defined sensor translations.
 
virtual void DrawResults ()
 Virtual function to draw analysis results.
 

Protected Member Functions

void LoadSetup ()
 Load the STS setup and fill the map with XYZ boundaries for each STS setup element. It maps the first z strip for each module depending on the size of the sensor.
 
void SaveToFile ()
 It write all mapped objects to the FairRunAna sink file.
 
 ClassDef (CbmStsAnaBase, 1)
 

Protected Attributes

uint entry_ {0}
 
std::unique_ptr< TFile > fReportFile
 
std::unordered_set< int32_t > fAddressBook
 
std::map< std::string, std::unique_ptr< TGraphErrors > > fG1D
 
std::map< std::string, std::unique_ptr< TH1D > > fH1D
 
std::map< std::string, std::unique_ptr< TH2D > > fH2D
 
std::map< std::string, std::shared_ptr< TH2D > > fH2DShared
 
std::map< std::string, std::unique_ptr< TCanvas > > fCanvas
 
int nb_sts_station_ {8}
 
std::unordered_map< int32_t, std::vector< double > > fStsGeoInfo
 
std::map< int32_t, std::vector< double > > fUserAlignment
 
std::unordered_map< int32_t, int > fFirstZStrip
 
CbmCutMapfAnalysisCuts {nullptr}
 
int fRunId {-1}
 

Private Member Functions

void BookHistograms (ECbmModuleId)
 Book histograms for a specific module.
 
 ClassDef (CbmSpillCheck, 1)
 

Private Attributes

ECbmModuleId fRefSystem
 
double fRateMinPercent
 
double fRateMaxPercent
 
int fRateMax {-1}
 
int fRateMin {-1}
 
int fNbPoints {0}
 
std::vector< int > fRefRate
 
std::vector< int > fSpillStatus
 
CbmDigiManagerfDigiManager {nullptr}
 

Detailed Description

Task for checking the spill status based on a reference module.

This class inherits from FairTask and CbmStsAnaBase. It provides functionality for checking the spill status based on the Digis rate of a reference module.

Definition at line 22 of file CbmSpillCheck.h.

Constructor & Destructor Documentation

◆ CbmSpillCheck() [1/2]

CbmSpillCheck::CbmSpillCheck ( )

Default constructor.

Definition at line 13 of file CbmSpillCheck.cxx.

References fRateMaxPercent, fRateMinPercent, fRefSystem, and kBmon.

Referenced by ClassDef().

◆ CbmSpillCheck() [2/2]

CbmSpillCheck::CbmSpillCheck ( ECbmModuleId ref = ECbmModuleId::kBmon,
double spill_off_prcnt = 0.2,
double spill_on_prcnt = 0.5 )

Parameterized constructor.

Parameters
refThe ECbmModuleId representing the reference module for spill checking.
spill_off_prcntThe percentage threshold for spill-off detection (default: 0.2).
spill_on_prcntThe percentage threshold for spill-on detection (default: 0.5).

Definition at line 18 of file CbmSpillCheck.cxx.

References fRateMaxPercent, fRateMinPercent, and fRefSystem.

◆ ~CbmSpillCheck()

CbmSpillCheck::~CbmSpillCheck ( )
default

Member Function Documentation

◆ BookHistograms()

void CbmSpillCheck::BookHistograms ( ECbmModuleId system)
private

Book histograms for a specific module.

Definition at line 26 of file CbmSpillCheck.cxx.

References CbmStsAnaBase::fG1D, and cbm::util::ToString().

Referenced by Init().

◆ ClassDef() [1/2]

CbmSpillCheck::ClassDef ( CbmSpillCheck ,
1  )
private

References CbmSpillCheck().

◆ ClassDef() [2/2]

CbmStsAnaBase::ClassDef ( CbmStsAnaBase ,
1  )
protectedinherited

References CbmStsAnaBase().

◆ DrawResults()

virtual void CbmStsAnaBase::DrawResults ( )
inlinevirtualinherited

Virtual function to draw analysis results.

Reimplemented in CbmStsTimeCal.

Definition at line 65 of file CbmStsAnaBase.h.

◆ Exec()

void CbmSpillCheck::Exec ( Option_t * )

◆ Finish()

◆ Init()

InitStatus CbmSpillCheck::Init ( )

◆ LoadSetup()

◆ SaveToFile()

void CbmStsAnaBase::SaveToFile ( )
protectedinherited

◆ SetCutMap()

void CbmStsAnaBase::SetCutMap ( CbmCutMap * map)
inherited

Set the cut map for analysis.

Parameters
cutMapPointer to the CbmCutMap object.

Definition at line 21 of file CbmStsAnaBase.cxx.

References fAnalysisCuts.

◆ UserAlignment()

void CbmStsAnaBase::UserAlignment ( const std::map< int32_t, std::vector< double > > & user_mat)
inlineinherited

User defined sensor translations.

Parameters
user_matInput translations.

Definition at line 60 of file CbmStsAnaBase.h.

References fUserAlignment.

Member Data Documentation

◆ entry_

◆ fAddressBook

◆ fAnalysisCuts

◆ fCanvas

std::map<std::string, std::unique_ptr<TCanvas> > CbmStsAnaBase::fCanvas
protectedinherited

Definition at line 75 of file CbmStsAnaBase.h.

◆ fDigiManager

CbmDigiManager* CbmSpillCheck::fDigiManager {nullptr}
private

Definition at line 54 of file CbmSpillCheck.h.

Referenced by Exec(), and Init().

◆ fFirstZStrip

std::unordered_map<int32_t, int> CbmStsAnaBase::fFirstZStrip
protectedinherited

Definition at line 82 of file CbmStsAnaBase.h.

Referenced by LoadSetup().

◆ fG1D

std::map<std::string, std::unique_ptr<TGraphErrors> > CbmStsAnaBase::fG1D
protectedinherited

◆ fH1D

◆ fH2D

◆ fH2DShared

std::map<std::string, std::shared_ptr<TH2D> > CbmStsAnaBase::fH2DShared
protectedinherited

Definition at line 74 of file CbmStsAnaBase.h.

Referenced by CbmEventVertexDca::BookHistograms(), and SaveToFile().

◆ fNbPoints

int CbmSpillCheck::fNbPoints {0}
private

Definition at line 49 of file CbmSpillCheck.h.

Referenced by Exec().

◆ fRateMax

int CbmSpillCheck::fRateMax {-1}
private

Definition at line 47 of file CbmSpillCheck.h.

Referenced by Exec(), and Finish().

◆ fRateMaxPercent

double CbmSpillCheck::fRateMaxPercent
private

Definition at line 46 of file CbmSpillCheck.h.

Referenced by CbmSpillCheck(), CbmSpillCheck(), and Finish().

◆ fRateMin

int CbmSpillCheck::fRateMin {-1}
private

Definition at line 48 of file CbmSpillCheck.h.

Referenced by Exec(), and Finish().

◆ fRateMinPercent

double CbmSpillCheck::fRateMinPercent
private

Definition at line 45 of file CbmSpillCheck.h.

Referenced by CbmSpillCheck(), CbmSpillCheck(), and Finish().

◆ fRefRate

std::vector<int> CbmSpillCheck::fRefRate
private

Definition at line 50 of file CbmSpillCheck.h.

Referenced by Exec(), and Finish().

◆ fRefSystem

ECbmModuleId CbmSpillCheck::fRefSystem
private

Definition at line 44 of file CbmSpillCheck.h.

Referenced by CbmSpillCheck(), CbmSpillCheck(), Exec(), and Init().

◆ fReportFile

std::unique_ptr<TFile> CbmStsAnaBase::fReportFile
protectedinherited

Definition at line 69 of file CbmStsAnaBase.h.

Referenced by CbmStsTimeCal::DrawResults(), and CbmStsTimeCal::Init().

◆ fRunId

int CbmStsAnaBase::fRunId {-1}
protectedinherited

Definition at line 86 of file CbmStsAnaBase.h.

Referenced by CbmStsTimeCal::CbmStsTimeCal(), and CbmStsTimeCal::Init().

◆ fSpillStatus

std::vector<int> CbmSpillCheck::fSpillStatus
private

Definition at line 51 of file CbmSpillCheck.h.

Referenced by Finish().

◆ fStsGeoInfo

◆ fUserAlignment

std::map<int32_t, std::vector<double> > CbmStsAnaBase::fUserAlignment
protectedinherited

Definition at line 80 of file CbmStsAnaBase.h.

Referenced by UserAlignment().

◆ nb_sts_station_

int CbmStsAnaBase::nb_sts_station_ {8}
protectedinherited

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