CbmRoot
|
#include <CbmTrdUnpackFaspMonitor.h>
Public Types | |
enum class | eDigiHistos : size_t { kMap = 0 , kMap_St , kMap_Nt , kChannel , kChannel_St , kChannel_Nt , kCharge , kCharge_St , kCharge_Nt , kTriggerType , kDigiDeltaT , kDigiNtCorr } |
Enum for the predefined digi histograms. More... | |
enum class | eRawHistos : size_t { kSignalshape = 0 , kSignalshape_St , kSignalshape_Nt , kMap , kMap_St , kMap_Nt , kElinkId , kSampleDistStdDev , kSample0perChannel , kHitType , kRawRate } |
Enum for the predefined raw histograms. More... | |
enum class | eOtherHistos : size_t { kSpadic_Info_Types = 0 , kMs_Flags , kBomRate , kBufRate , kBomPerRawRate } |
Enum for the predefined other histograms. More... | |
Public Member Functions | |
CbmTrdUnpackFaspMonitor () | |
Create the Cbm Trd Unpack AlgoBase object. | |
virtual | ~CbmTrdUnpackFaspMonitor () |
Destroy the Cbm Trd Unpack Task object. | |
CbmTrdUnpackFaspMonitor (const CbmTrdUnpackFaspMonitor &)=delete | |
Copy constructor - not implemented. | |
CbmTrdUnpackFaspMonitor & | operator= (const CbmTrdUnpackFaspMonitor &)=delete |
Assignment operator - not implemented. | |
void | FillHistos (CbmTrdDigi *digi) |
fill the stored digi histograms | |
void | Finish () |
Actions at the end of the run, e.g. write histos to file if flag is set. | |
Bool_t | Init () |
Init all required parameter informations. | |
void | MapMaskedChannels (const CbmTrdParSetAsic *asics) |
Special call for monitoring the masked channel map. | |
void | SetActiveHistos (std::vector< eDigiHistos > vec) |
transfer the enums for the histos to be activated to the member vector | |
void | SetActiveHistos (std::vector< eRawHistos > vec) |
transfer the enums for the histos to be activated to the member vector | |
void | FillHistos (CbmTrdDigi *digi, CbmTrdRawMessageSpadic *raw=nullptr) |
fill the stored digi histograms | |
void | FillHisto (Spadic::MsInfoType type, std::uint32_t moduleid) |
Fill the given histo with the information on the info type. | |
void | FillHisto (fles::MicrosliceFlags flag, std::uint32_t moduleid) |
Fill the given histo with the information on the flag. | |
Bool_t | Init (CbmTrdParSetDigi *digiParSet, CbmTrdParSetAsic *asicParSet=nullptr) |
Init all required parameter informations. | |
void | SetActiveHistos (std::vector< eOtherHistos > vec) |
transfer the enums for the histos to be activated to the member vector | |
void | SetSpadicObject (std::shared_ptr< CbmTrdSpadic > value) |
Set the Spadic Object. | |
void | SetWriteToFile (std::string filename) |
Set the output filename, automatically also sets the flag to create an output file. | |
void | SetDigiOutputVec (std::vector< CbmTrdDigi > *digiOutputVec) |
Set digi outpout vector (to make it usable for correlations) | |
void | SetCurrentTimesliceStartTime (std::uint64_t time) |
Set the start time of the current timeslice in ns. | |
Static Public Attributes | |
static const std::uint32_t | kTimeplotLenghtSeconds = 600 |
Constant which defines the lenght of the time axis in seconds of plots which display a quantity over time. | |
Protected Member Functions | |
void | addParam (uint32_t madd, const CbmTrdParModAsic *asics) |
Init module and link asics properties. | |
void | addParam (uint32_t madd, CbmTrdParModDigi *pp) |
Init module pad-plane parameters. | |
void | createHisto (eDigiHistos kHisto) |
Create the actual TH1 shared_ptrs of the Digi histos. | |
virtual void | fillHisto (CbmTrdDigi *digi, eDigiHistos kHisto, std::uint32_t moduleid, std::shared_ptr< TH1 > histo) |
Fill the given histo with the information from the digi. Reimplement from CbmTrdUnpackMonitor. | |
virtual std::uint64_t | getDeltaT (uint32_t modid, int32_t ch=-1, uint64_t daqt=0) |
Paralell implementation of the omonime function from CbmTrdUnpackMonitor for the case of FASP digis. The default values of the input parameters mark missing information. | |
template<class histotype > | |
void | addHistoToMap (std::shared_ptr< TH1 > histo, std::map< histotype, std::map< std::uint32_t, std::shared_ptr< TH1 > > > *histomap, std::uint32_t moduleid, histotype kHisto) |
template<typename THistotype > | |
bool | checkIfHistoExists (THistotype etype, std::map< THistotype, std::map< std::uint32_t, std::shared_ptr< TH1 > > > *histomap, std::uint32_t moduleid) |
virtual void | createHistos () |
Create the actual TH1 shared_ptrs. | |
virtual void | createHisto (eRawHistos kHisto) |
Create the actual TH1 shared_ptrs of the Raw histos. | |
virtual void | createHisto (eOtherHistos kHisto) |
Create the actual TH1 shared_ptrs of the Others histos. | |
void | fillHisto (CbmTrdRawMessageSpadic *raw, eRawHistos kHisto, std::shared_ptr< TH1 > histo, CbmTrdDigi *digi) |
Fill the given histo with the information from the raw message. | |
void | fillSamplesHisto (std::shared_ptr< TH1 > histo, CbmTrdRawMessageSpadic *raw) |
Fill the passed histo with the samples as function of time. | |
std::double_t | getDeltaT (CbmTrdDigi *digi) |
Get the time difference between this digi and the previous one from the channel of this digi. | |
std::string | getHistoName (eDigiHistos kHisto) |
Get the Histo Name for the given histo. | |
std::string | getHistoName (eRawHistos kHisto) |
Get the Histo Name for the given histo. | |
std::string | getHistoName (eOtherHistos kHisto) |
Get the Histo Name for the given histo. | |
std::string | getHistoType (std::shared_ptr< TH1 > histo) |
Get the Histo Type, i.e. "Digi/Raw/Other", deduced from the histo name. | |
std::pair< std::uint32_t, std::uint32_t > | getRowAndCol (std::uint32_t moduleid, std::uint32_t channelid) |
Get the row and column ids (potentially rotated chambers are adjusted to humand readable rotations) | |
std::float_t | getSamplesStdDev (CbmTrdRawMessageSpadic *raw) |
Extract the std deviation of all samples in the message. | |
template<class histotype > | |
size_t | writeHistosToFile (std::map< histotype, std::map< std::uint32_t, std::shared_ptr< TH1 > > > *histomap, TFile *file) |
void | fillNtCorrHisto (std::shared_ptr< TH1 > histo, CbmTrdDigi *digi) |
Fill the NeighborTrigger Checking Histogram. | |
void | resetTimeplots () |
Reset the contents of all timeplots. | |
void | adjustTimeplots (std::uint64_t newtime) |
Adjust the boundaries of all timeplots to contain newtime. | |
Static Protected Member Functions | |
static std::string | getTypeName (eDigiHistos kHisto) |
Get the Type Name for the given histo. | |
static std::string | getTypeName (eRawHistos kHisto) |
Get the Type Name for the given histo. | |
static std::string | getTypeName (eOtherHistos kHisto) |
Get the Type Name for the given histo. | |
Protected Attributes | |
std::map< eDigiHistos, std::map< std::uint32_t, std::shared_ptr< TH1 > > > | fDigiHistoMap = {} |
Digi histogram pointers stored in a map together with the module id. | |
std::map< eRawHistos, std::map< std::uint32_t, std::shared_ptr< TH1 > > > | fRawHistoMap = {} |
Raw histogram pointers stored in a map together with the module id. | |
std::map< eOtherHistos, std::map< std::uint32_t, std::shared_ptr< TH1 > > > | fOtherHistoMap = {} |
Other histogram pointers stored in a map together with the module id. | |
std::vector< eDigiHistos > | fActiveDigiHistos = {} |
Enums of Digi histos to be activated. | |
std::vector< eRawHistos > | fActiveRawHistos = {} |
Enums of Raw histos to be activated. | |
std::vector< eOtherHistos > | fActiveOtherHistos = {} |
Enums of Raw histos to be activated. | |
THttpServer * | fHistoServer = nullptr |
Pointer to the histogram server, in case we run the online monitoring, the pointer is automatically deduced from the run. | |
bool | fDoWriteToFile = false |
Flag whether to write histos to file or not, gets activated if a output filename gets set. | |
std::string | fOutfilename = "" |
File name for the output file. | |
std::vector< std::uint32_t > | fModuleIdsVec = {} |
Vector with the unique module Ids. | |
std::map< std::uint32_t, std::uint8_t > | fModuleOrientation = {} |
Map with the orientations of the modules. Performance helper to not go through the extraction from ParModDigi everytime. | |
std::map< std::uint32_t, std::uint8_t > | fModuleNrRows = {} |
Map with the number of rows of the modules. Performance helper to not go through the extraction from ParModDigi everytime. | |
std::map< std::uint32_t, std::uint8_t > | fModuleNrColumns = {} |
Map with the number of columns of the modules. Performance helper to not go through the extraction from ParModDigi everytime. | |
std::map< std::uint32_t, std::vector< size_t > > | fLastDigiTimeMap = {} |
Map with the last digi time for each channel of a given module. | |
std::vector< CbmTrdDigi > * | fDigiOutputVec = {} |
Variable which holds a reference to the TRD digi output vector (for correlations) | |
std::shared_ptr< CbmTrdSpadic > | fSpadic = nullptr |
std::uint64_t | fCurrentTimeplotStartNs = 0 |
Variable which holds the start time in ns of the current time axis of plots which display a quantity over time. | |
std::uint64_t | fCurrentTimesliceStartTimeNs = 0 |
Variable which holds the start time in ns of the current timeslice. | |
std::uint64_t | fLastRawTime = 0 |
Variable which holds the time in ns of the last processed raw message. | |
Private Attributes | |
const double | fFaspInvClk = 1.e6 / CbmTrdDigi::Clk(CbmTrdDigi::eCbmTrdAsicType::kFASP) |
save 1/clk for the FASP FEE in kHz | |
std::map< uint32_t, std::tuple< std::vector< int32_t >, uint8_t, uint8_t > > | fModuleDef = {} |
Map of definitions for each module under monitoring : std::get<0> : pad to FASP channel mapping std::get<1> : no of pad columns in the module std::get<2> : no of pad rows in the module. | |
Friends | |
class | CbmTrdUnpackFaspAlgo |
Definition at line 47 of file CbmTrdUnpackFaspMonitor.h.
|
stronginherited |
Enum for the predefined digi histograms.
Enumerator | |
---|---|
kMap | |
kMap_St | |
kMap_Nt | |
kChannel | |
kChannel_St | |
kChannel_Nt | |
kCharge | |
kCharge_St | |
kCharge_Nt | |
kTriggerType | |
kDigiDeltaT | |
kDigiNtCorr |
Definition at line 53 of file CbmTrdUnpackMonitor.h.
|
stronginherited |
Enum for the predefined other histograms.
Enumerator | |
---|---|
kSpadic_Info_Types | |
kMs_Flags | |
kBomRate | |
kBufRate | |
kBomPerRawRate |
Definition at line 86 of file CbmTrdUnpackMonitor.h.
|
stronginherited |
Enum for the predefined raw histograms.
Enumerator | |
---|---|
kSignalshape | |
kSignalshape_St | |
kSignalshape_Nt | |
kMap | |
kMap_St | |
kMap_Nt | |
kElinkId | |
kSampleDistStdDev | |
kSample0perChannel | |
kHitType | |
kRawRate |
Definition at line 70 of file CbmTrdUnpackMonitor.h.
CbmTrdUnpackFaspMonitor::CbmTrdUnpackFaspMonitor | ( | ) |
Create the Cbm Trd Unpack AlgoBase object.
Definition at line 35 of file CbmTrdUnpackFaspMonitor.cxx.
|
virtual |
Destroy the Cbm Trd Unpack Task object.
Definition at line 38 of file CbmTrdUnpackFaspMonitor.cxx.
|
delete |
Copy constructor - not implemented.
|
inlineprotectedinherited |
Definition at line 162 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::checkIfHistoExists(), CbmTrdUnpackMonitor::fHistoServer, and CbmTrdUnpackMonitor::getHistoType().
Referenced by createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::createHisto().
|
protected |
Init module pad-plane parameters.
madd | module address to be checked |
digis | pad-plane properties for the current module |
Definition at line 175 of file CbmTrdUnpackFaspMonitor.cxx.
References fModuleDef, CbmTrdParModDigi::GetNofColumns(), and CbmTrdParModDigi::GetNofRows().
|
protected |
Init module and link asics properties.
madd | module address to be added |
asics | asic properties for the current module |
Definition at line 151 of file CbmTrdUnpackFaspMonitor.cxx.
References fModuleDef, CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), CbmTrdParAsic::GetChannelAddresses(), NFASPCH, and NFASPMOD.
|
protectedinherited |
Adjust the boundaries of all timeplots to contain newtime.
Definition at line 734 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fCurrentTimeplotStartNs, CbmTrdUnpackMonitor::kTimeplotLenghtSeconds, and CbmTrdUnpackMonitor::resetTimeplots().
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
inlineprotectedinherited |
Definition at line 196 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::addHistoToMap().
|
protectedvirtual |
Create the actual TH1 shared_ptrs of the Digi histos.
Reimplemented from CbmTrdUnpackMonitor.
Definition at line 189 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::addHistoToMap(), CbmTrdUnpackMonitor::fDigiHistoMap, fModuleDef, CbmTrdUnpackMonitor::getHistoName(), CbmTrdUnpackMonitor::getTypeName(), CbmTrdUnpackMonitor::kChannel, CbmTrdUnpackMonitor::kCharge, CbmTrdUnpackMonitor::kDigiDeltaT, CbmTrdUnpackMonitor::kMap, CbmTrdUnpackMonitor::kMap_St, NFASPCH, and NFASPMOD.
|
protectedvirtualinherited |
Create the actual TH1 shared_ptrs of the Others histos.
Definition at line 348 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::addHistoToMap(), CbmTrdUnpackMonitor::fModuleIdsVec, CbmTrdUnpackMonitor::fOtherHistoMap, CbmTrdUnpackMonitor::getHistoName(), CbmTrdUnpackMonitor::getTypeName(), Spadic::kBOM, CbmTrdUnpackMonitor::kBomPerRawRate, CbmTrdUnpackMonitor::kBomRate, Spadic::kBUF, CbmTrdUnpackMonitor::kBufRate, Spadic::kChannelBuf, Spadic::kChannelBufM, Spadic::kMIS, CbmTrdUnpackMonitor::kMs_Flags, Spadic::kMSB, Spadic::kNInfMsgs, Spadic::kOrdFifoBuf, CbmTrdUnpackMonitor::kSpadic_Info_Types, CbmTrdUnpackMonitor::kTimeplotLenghtSeconds, and Spadic::kUNU.
|
protectedvirtualinherited |
Create the actual TH1 shared_ptrs of the Raw histos.
Definition at line 279 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::addHistoToMap(), CbmTrdUnpackMonitor::fModuleIdsVec, CbmTrdUnpackMonitor::fModuleNrColumns, CbmTrdUnpackMonitor::fModuleNrRows, CbmTrdUnpackMonitor::fRawHistoMap, CbmTrdUnpackMonitor::getHistoName(), CbmTrdUnpackMonitor::getTypeName(), CbmTrdUnpackMonitor::kElinkId, Spadic::kGlobal, CbmTrdUnpackMonitor::kHitType, CbmTrdUnpackMonitor::kMap, CbmTrdUnpackMonitor::kMap_Nt, CbmTrdUnpackMonitor::kMap_St, CbmTrdUnpackMonitor::kRawRate, CbmTrdUnpackMonitor::kSample0perChannel, CbmTrdUnpackMonitor::kSampleDistStdDev, Spadic::kSandN, CbmTrdUnpackMonitor::kSignalshape, CbmTrdUnpackMonitor::kSignalshape_Nt, CbmTrdUnpackMonitor::kSignalshape_St, and CbmTrdUnpackMonitor::kTimeplotLenghtSeconds.
|
protectedvirtualinherited |
Create the actual TH1 shared_ptrs.
Definition at line 406 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::fActiveDigiHistos, CbmTrdUnpackMonitor::fActiveOtherHistos, and CbmTrdUnpackMonitor::fActiveRawHistos.
Referenced by Init(), and CbmTrdUnpackMonitor::Init().
|
inherited |
Fill the given histo with the information on the flag.
[in] | flag | fles::MicrosliceFlags |
[in] | moduleid | unique CbmAddress moduleid |
Definition at line 115 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fOtherHistoMap, and CbmTrdUnpackMonitor::kMs_Flags.
|
inherited |
Fill the given histo with the information on the info type.
[in] | type | Spadic::MsInfoType |
[in] | moduleid | unique CbmAddress moduleid |
Definition at line 66 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fCurrentTimeplotStartNs, CbmTrdUnpackMonitor::fLastRawTime, CbmTrdUnpackMonitor::fOtherHistoMap, CbmTrdUnpackMonitor::fRawHistoMap, Spadic::kBOM, CbmTrdUnpackMonitor::kBomPerRawRate, CbmTrdUnpackMonitor::kBomRate, Spadic::kBUF, CbmTrdUnpackMonitor::kBufRate, CbmTrdUnpackMonitor::kRawRate, and CbmTrdUnpackMonitor::kSpadic_Info_Types.
|
protectedvirtual |
Fill the given histo with the information from the digi. Reimplement from CbmTrdUnpackMonitor.
[in] | digi | CbmTrdDigi |
[in] | kHisto | Histo definition |
[in] | moduleid | Unique module Id from which the digi came |
[out] | histo | pointer to the histo |
Reimplemented from CbmTrdUnpackMonitor.
Definition at line 257 of file CbmTrdUnpackFaspMonitor.cxx.
References fFaspInvClk, fModuleDef, CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetCharge(), getDeltaT(), CbmTrdDigi::GetTimeDAQ(), CbmTrdUnpackMonitor::kChannel, CbmTrdUnpackMonitor::kCharge, CbmTrdUnpackMonitor::kDigiDeltaT, and CbmTrdUnpackMonitor::kMap.
Referenced by FillHistos().
|
protectedinherited |
Fill the given histo with the information from the raw message.
[in] | raw | CbmTrdRawMessageSpadic |
[in] | kHisto | Histo definition |
[out] | histo | pointer to the histo (we do not want to extract it a snd time from the map) |
Definition at line 494 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::adjustTimeplots(), CbmTrdUnpackMonitor::fCurrentTimeplotStartNs, CbmTrdUnpackMonitor::fCurrentTimesliceStartTimeNs, CbmTrdUnpackMonitor::fillSamplesHisto(), CbmTrdDigi::GetAddressChannel(), CbmTrdRawMessageSpadic::GetChannelId(), CbmTrdRawMessageSpadic::GetElinkId(), CbmTrdRawMessageSpadic::GetHitType(), CbmTrdRawMessageSpadic::GetSamples(), CbmTrdUnpackMonitor::getSamplesStdDev(), CbmTrdRawMessageSpadic::GetTime(), CbmTrdUnpackMonitor::kElinkId, CbmTrdUnpackMonitor::kHitType, CbmTrdUnpackMonitor::kMap, CbmTrdUnpackMonitor::kMap_Nt, CbmTrdUnpackMonitor::kMap_St, Spadic::kNeigh, CbmTrdUnpackMonitor::kRawRate, CbmTrdUnpackMonitor::kSample0perChannel, CbmTrdUnpackMonitor::kSampleDistStdDev, Spadic::kSandN, Spadic::kSelf, CbmTrdUnpackMonitor::kSignalshape, CbmTrdUnpackMonitor::kSignalshape_Nt, and CbmTrdUnpackMonitor::kSignalshape_St.
void CbmTrdUnpackFaspMonitor::FillHistos | ( | CbmTrdDigi * | digi | ) |
fill the stored digi histograms
digi | pointer to the digi |
raw | pointer to the raw msg |
Definition at line 41 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::fDigiHistoMap, fillHisto(), and CbmTrdDigi::GetAddressModule().
|
inherited |
fill the stored digi histograms
digi | pointer to the digi |
raw | pointer to the raw msg |
Definition at line 41 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fCurrentTimesliceStartTimeNs, CbmTrdUnpackMonitor::fDigiHistoMap, CbmTrdUnpackMonitor::fillHisto(), CbmTrdUnpackMonitor::fLastRawTime, CbmTrdUnpackMonitor::fRawHistoMap, CbmTrdDigi::GetAddressModule(), and CbmTrdRawMessageSpadic::GetTime().
|
protectedinherited |
Fill the NeighborTrigger Checking Histogram.
Definition at line 568 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fDigiOutputVec, CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetAddressModule(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTriggerType(), CbmTrdDigi::kNeighbor, and CbmTrdDigi::kSelf.
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
protectedinherited |
Fill the passed histo with the samples as function of time.
histo | |
raw |
Definition at line 536 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdRawMessageSpadic::GetSamples(), and size().
Referenced by CbmTrdUnpackMonitor::fillHisto().
void CbmTrdUnpackFaspMonitor::Finish | ( | ) |
Actions at the end of the run, e.g. write histos to file if flag is set.
Save old global file and folder pointer to avoid messing with FairRoot
(Re-)Create ROOT file to store the histos
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 52 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::fDigiHistoMap, CbmTrdUnpackMonitor::fDoWriteToFile, CbmTrdUnpackMonitor::fOutfilename, CbmTrdUnpackMonitor::fRawHistoMap, and CbmTrdUnpackMonitor::writeHistosToFile().
|
protectedvirtual |
Paralell implementation of the omonime function from CbmTrdUnpackMonitor for the case of FASP digis. The default values of the input parameters mark missing information.
[in] | modid | module address |
[in] | ch | module-wise channel address of the signal |
[in] | daqt | DAQ time [clk] for the "ch" paired signal |
Definition at line 310 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::fLastDigiTimeMap, and fModuleDef.
Referenced by fillHisto().
|
protectedinherited |
Get the time difference between this digi and the previous one from the channel of this digi.
digi | CbmTrdDigi |
Definition at line 544 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fLastDigiTimeMap, CbmTrdUnpackMonitor::fModuleNrColumns, CbmTrdUnpackMonitor::fModuleNrRows, CbmTrdDigi::GetAddressChannel(), CbmTrdDigi::GetAddressModule(), and CbmTrdDigi::GetTime().
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
protectedinherited |
Get the Histo Name for the given histo.
kHisto | eDigiHistos |
Definition at line 595 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::kChannel, CbmTrdUnpackMonitor::kChannel_Nt, CbmTrdUnpackMonitor::kChannel_St, CbmTrdUnpackMonitor::kCharge, CbmTrdUnpackMonitor::kCharge_Nt, CbmTrdUnpackMonitor::kCharge_St, CbmTrdUnpackMonitor::kDigiDeltaT, CbmTrdUnpackMonitor::kDigiNtCorr, CbmTrdUnpackMonitor::kMap, CbmTrdUnpackMonitor::kMap_Nt, CbmTrdUnpackMonitor::kMap_St, and CbmTrdUnpackMonitor::kTriggerType.
Referenced by createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::createHisto().
|
protectedinherited |
Get the Histo Name for the given histo.
kHisto | eOtherHistos |
Definition at line 638 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::kBomPerRawRate, CbmTrdUnpackMonitor::kBomRate, CbmTrdUnpackMonitor::kBufRate, CbmTrdUnpackMonitor::kMs_Flags, and CbmTrdUnpackMonitor::kSpadic_Info_Types.
|
protectedinherited |
Get the Histo Name for the given histo.
kHisto | eRawHistos |
Definition at line 617 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::kElinkId, CbmTrdUnpackMonitor::kHitType, CbmTrdUnpackMonitor::kMap, CbmTrdUnpackMonitor::kMap_Nt, CbmTrdUnpackMonitor::kMap_St, CbmTrdUnpackMonitor::kRawRate, CbmTrdUnpackMonitor::kSample0perChannel, CbmTrdUnpackMonitor::kSampleDistStdDev, CbmTrdUnpackMonitor::kSignalshape, CbmTrdUnpackMonitor::kSignalshape_Nt, and CbmTrdUnpackMonitor::kSignalshape_St.
|
protectedinherited |
Get the Histo Type, i.e. "Digi/Raw/Other", deduced from the histo name.
histo |
Definition at line 653 of file CbmTrdUnpackMonitor.cxx.
Referenced by CbmTrdUnpackMonitor::addHistoToMap().
|
protectedinherited |
Get the row and column ids (potentially rotated chambers are adjusted to humand readable rotations)
moduleid | |
channelid |
Definition at line 668 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fModuleNrColumns, CbmTrdUnpackMonitor::fModuleNrRows, and CbmTrdUnpackMonitor::fModuleOrientation.
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
protectedinherited |
Extract the std deviation of all samples in the message.
Definition at line 692 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdRawMessageSpadic::GetNrSamples(), and CbmTrdRawMessageSpadic::GetSamples().
Referenced by CbmTrdUnpackMonitor::fillHisto().
|
inlinestaticprotectedinherited |
Get the Type Name for the given histo.
kHisto | eDigiHistos |
Definition at line 266 of file CbmTrdUnpackMonitor.h.
Referenced by createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::writeHistosToFile().
|
inlinestaticprotectedinherited |
Get the Type Name for the given histo.
kHisto | eOtherHistos |
Definition at line 280 of file CbmTrdUnpackMonitor.h.
|
inlinestaticprotectedinherited |
Get the Type Name for the given histo.
kHisto | eRawHistos |
Definition at line 273 of file CbmTrdUnpackMonitor.h.
Bool_t CbmTrdUnpackFaspMonitor::Init | ( | ) |
Init all required parameter informations.
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 81 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::createHistos(), CbmTrdUnpackMonitor::fHistoServer, and fModuleDef.
|
inherited |
Init all required parameter informations.
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 155 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::createHistos(), CbmTrdUnpackMonitor::fHistoServer, CbmTrdUnpackMonitor::fModuleIdsVec, CbmTrdUnpackMonitor::fModuleNrColumns, CbmTrdUnpackMonitor::fModuleNrRows, CbmTrdUnpackMonitor::fModuleOrientation, CbmTrdParSet::GetModuleMap(), CbmTrdParSet::GetModulePar(), and CbmTrdDigi::kSPADIC.
void CbmTrdUnpackFaspMonitor::MapMaskedChannels | ( | const CbmTrdParSetAsic * | asics | ) |
Special call for monitoring the masked channel map.
Definition at line 118 of file CbmTrdUnpackFaspMonitor.cxx.
References CbmTrdUnpackMonitor::fDigiHistoMap, fModuleDef, CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), CbmTrdParModAsic::GetAsicType(), CbmTrdParFasp::GetChannel(), CbmTrdParFasp::GetPadAddress(), CbmTrdParFaspChannel::HasPairingR(), CbmTrdParFaspChannel::IsMasked(), CbmTrdDigi::kFASP, CbmTrdUnpackMonitor::kMap_St, and NFASPCH.
|
delete |
Assignment operator - not implemented.
|
protectedinherited |
Reset the contents of all timeplots.
Definition at line 707 of file CbmTrdUnpackMonitor.cxx.
References CbmTrdUnpackMonitor::fOtherHistoMap, CbmTrdUnpackMonitor::fRawHistoMap, CbmTrdUnpackMonitor::kBomPerRawRate, CbmTrdUnpackMonitor::kBomRate, CbmTrdUnpackMonitor::kBufRate, and CbmTrdUnpackMonitor::kRawRate.
Referenced by CbmTrdUnpackMonitor::adjustTimeplots().
|
inline |
transfer the enums for the histos to be activated to the member vector
Definition at line 77 of file CbmTrdUnpackFaspMonitor.h.
References CbmTrdUnpackMonitor::fActiveDigiHistos.
|
inline |
transfer the enums for the histos to be activated to the member vector
Definition at line 80 of file CbmTrdUnpackFaspMonitor.h.
References CbmTrdUnpackMonitor::fActiveRawHistos.
|
inlineinherited |
transfer the enums for the histos to be activated to the member vector
Definition at line 141 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::fActiveOtherHistos.
|
inlineinherited |
Set the start time of the current timeslice in ns.
Definition at line 157 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::fCurrentTimesliceStartTimeNs.
|
inlineinherited |
Set digi outpout vector (to make it usable for correlations)
Definition at line 154 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::fDigiOutputVec.
|
inlineinherited |
Set the Spadic Object.
value |
Definition at line 144 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::fSpadic.
|
inlineinherited |
Set the output filename, automatically also sets the flag to create an output file.
filename | Absolute path for the output file |
Definition at line 147 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::fDoWriteToFile, and CbmTrdUnpackMonitor::fOutfilename.
|
inlineprotectedinherited |
Definition at line 302 of file CbmTrdUnpackMonitor.h.
References CbmTrdUnpackMonitor::getTypeName().
Referenced by Finish(), and CbmTrdUnpackMonitor::Finish().
|
friend |
Definition at line 48 of file CbmTrdUnpackFaspMonitor.h.
|
protectedinherited |
Enums of Digi histos to be activated.
Definition at line 355 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHistos(), SetActiveHistos(), and CbmTrdUnpackMonitor::SetActiveHistos().
|
protectedinherited |
Enums of Raw histos to be activated.
Definition at line 361 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHistos(), and CbmTrdUnpackMonitor::SetActiveHistos().
|
protectedinherited |
Enums of Raw histos to be activated.
Definition at line 358 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHistos(), SetActiveHistos(), and CbmTrdUnpackMonitor::SetActiveHistos().
|
protectedinherited |
Variable which holds the start time in ns of the current time axis of plots which display a quantity over time.
Definition at line 395 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::adjustTimeplots(), CbmTrdUnpackMonitor::FillHisto(), and CbmTrdUnpackMonitor::fillHisto().
|
protectedinherited |
Variable which holds the start time in ns of the current timeslice.
Definition at line 398 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmTrdUnpackMonitor::FillHistos(), and CbmTrdUnpackMonitor::SetCurrentTimesliceStartTime().
|
protectedinherited |
Digi histogram pointers stored in a map together with the module id.
Definition at line 346 of file CbmTrdUnpackMonitor.h.
Referenced by createHisto(), CbmTrdUnpackMonitor::createHisto(), FillHistos(), CbmTrdUnpackMonitor::FillHistos(), Finish(), CbmTrdUnpackMonitor::Finish(), and MapMaskedChannels().
|
protectedinherited |
Variable which holds a reference to the TRD digi output vector (for correlations)
Definition at line 389 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::fillNtCorrHisto(), and CbmTrdUnpackMonitor::SetDigiOutputVec().
|
protectedinherited |
Flag whether to write histos to file or not, gets activated if a output filename gets set.
Definition at line 367 of file CbmTrdUnpackMonitor.h.
Referenced by Finish(), CbmTrdUnpackMonitor::Finish(), and CbmTrdUnpackMonitor::SetWriteToFile().
|
private |
save 1/clk for the FASP FEE in kHz
Definition at line 114 of file CbmTrdUnpackFaspMonitor.h.
Referenced by fillHisto().
|
protectedinherited |
Pointer to the histogram server, in case we run the online monitoring, the pointer is automatically deduced from the run.
Definition at line 364 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::addHistoToMap(), Init(), and CbmTrdUnpackMonitor::Init().
|
protectedinherited |
Map with the last digi time for each channel of a given module.
Definition at line 386 of file CbmTrdUnpackMonitor.h.
Referenced by getDeltaT(), and CbmTrdUnpackMonitor::getDeltaT().
|
protectedinherited |
Variable which holds the time in ns of the last processed raw message.
Definition at line 401 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::FillHisto(), and CbmTrdUnpackMonitor::FillHistos().
|
private |
Map of definitions for each module under monitoring : std::get<0> : pad to FASP channel mapping std::get<1> : no of pad columns in the module std::get<2> : no of pad rows in the module.
Definition at line 120 of file CbmTrdUnpackFaspMonitor.h.
Referenced by addParam(), addParam(), createHisto(), fillHisto(), getDeltaT(), Init(), and MapMaskedChannels().
|
protectedinherited |
Vector with the unique module Ids.
Definition at line 374 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::Init().
|
protectedinherited |
Map with the number of columns of the modules. Performance helper to not go through the extraction from ParModDigi everytime.
Definition at line 383 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::getDeltaT(), CbmTrdUnpackMonitor::getRowAndCol(), and CbmTrdUnpackMonitor::Init().
|
protectedinherited |
Map with the number of rows of the modules. Performance helper to not go through the extraction from ParModDigi everytime.
Definition at line 380 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::getDeltaT(), CbmTrdUnpackMonitor::getRowAndCol(), and CbmTrdUnpackMonitor::Init().
|
protectedinherited |
Map with the orientations of the modules. Performance helper to not go through the extraction from ParModDigi everytime.
Definition at line 377 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::getRowAndCol(), and CbmTrdUnpackMonitor::Init().
|
protectedinherited |
Other histogram pointers stored in a map together with the module id.
Definition at line 352 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::FillHisto(), CbmTrdUnpackMonitor::FillHisto(), CbmTrdUnpackMonitor::Finish(), and CbmTrdUnpackMonitor::resetTimeplots().
|
protectedinherited |
File name for the output file.
Definition at line 370 of file CbmTrdUnpackMonitor.h.
Referenced by Finish(), CbmTrdUnpackMonitor::Finish(), and CbmTrdUnpackMonitor::SetWriteToFile().
|
protectedinherited |
Raw histogram pointers stored in a map together with the module id.
Definition at line 349 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), CbmTrdUnpackMonitor::FillHisto(), CbmTrdUnpackMonitor::FillHistos(), Finish(), CbmTrdUnpackMonitor::Finish(), and CbmTrdUnpackMonitor::resetTimeplots().
|
protectedinherited |
Definition at line 392 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::SetSpadicObject().
|
staticinherited |
Constant which defines the lenght of the time axis in seconds of plots which display a quantity over time.
Definition at line 96 of file CbmTrdUnpackMonitor.h.
Referenced by CbmTrdUnpackMonitor::adjustTimeplots(), CbmTrdUnpackMonitor::createHisto(), and CbmTrdUnpackMonitor::createHisto().