![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
This class gathers various diagnostics calculated during the sorting from a raw file to a fragment tree and analysis tree and provides convenient methods of printing and/or visualizing them.
Definition at line 69 of file TParsingDiagnostics.h.
Public Member Functions | |
| TParsingDiagnostics () | |
| TParsingDiagnostics (const TParsingDiagnostics &) | |
| TParsingDiagnostics (TParsingDiagnostics &&) noexcept=default | |
| ~TParsingDiagnostics () | |
| void | BadFragment (Short_t detType) |
| void | Clear (Option_t *opt="all") override |
| void | Copy (TObject &) const override |
| void | Draw (Option_t *opt="") override |
| void | GoodFragment (const std::shared_ptr< const TFragment > &) |
| void | GoodFragment (Short_t detType) |
| Long_t | NumberOfBadFragments (Short_t detType) |
| Long_t | NumberOfGoodFragments (Short_t detType) |
| TParsingDiagnostics & | operator= (const TParsingDiagnostics &)=default |
| TParsingDiagnostics & | operator= (TParsingDiagnostics &&) noexcept=default |
| ULong64_t | PPGCycleLength () const |
| void | Print (Option_t *opt="") const override |
| void | ReadPPG (TPPG *) |
| void | WriteToFile (const char *) const |
Static Public Member Functions | |
| static TParsingDiagnostics * | AddCurrent () |
| static void | Delete () |
| static TParsingDiagnostics * | Get (bool verbose=false) |
| static TParsingDiagnostics * | GetAll () |
| static void | PrintDirectory () |
| static void | Set (TParsingDiagnostics *val) |
Private Attributes | |
| std::unordered_map< UInt_t, TParsingDiagnosticsData > | fChannelAddressData |
| TH1F * | fIdHist {nullptr} |
| time_t | fMaxDaqTimeStamp {0} |
| Int_t | fMaxNetworkPacketNumber {0} |
| time_t | fMinDaqTimeStamp {0} |
| Int_t | fMinNetworkPacketNumber {0x7fffffff} |
| std::unordered_map< Short_t, Long_t > | fNumberOfBadFragments |
| std::unordered_map< Short_t, Long_t > | fNumberOfGoodFragments |
| Long_t | fNumberOfNetworkPackets {0} |
| ULong64_t | fPPGCycleLength {0} |
Static Private Attributes | |
| static TDirectory * | fDir |
| static TParsingDiagnostics * | fSingleton |
Friends | |
| class | TSingleton< TParsingDiagnostics > |
Inheritance diagram for TParsingDiagnostics:
Collaboration diagram for TParsingDiagnostics:| TParsingDiagnostics::TParsingDiagnostics | ( | ) |
Definition at line 46 of file TParsingDiagnostics.cxx.
References Clear().
| TParsingDiagnostics::TParsingDiagnostics | ( | const TParsingDiagnostics & | ) |
Definition at line 51 of file TParsingDiagnostics.cxx.
References Clear().
|
defaultnoexcept |
| TParsingDiagnostics::~TParsingDiagnostics | ( | ) |
Definition at line 56 of file TParsingDiagnostics.cxx.
References fIdHist.
|
inlinestaticinherited |
Definition at line 141 of file TSingleton.h.
|
inline |
Definition at line 111 of file TParsingDiagnostics.h.
References fNumberOfBadFragments.
Referenced by TGRSIDataParser::EmmaTdcDataToFragment(), TGRSIDataParser::GriffinDataToFragment(), TGRSIDataParser::GriffinDataToPPGEvent(), TGRSIDataParser::GriffinDataToScalerEvent(), TGRSIDataParser::RFScalerToFragment(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
override |
Definition at line 72 of file TParsingDiagnostics.cxx.
References fIdHist, fMaxDaqTimeStamp, fMaxNetworkPacketNumber, fMinDaqTimeStamp, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
Referenced by TParsingDiagnostics(), and TParsingDiagnostics().
|
override |
Definition at line 61 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxNetworkPacketNumber, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
|
inlinestaticinherited |
Definition at line 175 of file TSingleton.h.
Referenced by TGRSIint::Terminate().
|
override |
Definition at line 149 of file TParsingDiagnostics.cxx.
References fChannelAddressData, and fIdHist.
|
inlinestaticinherited |
Definition at line 33 of file TSingleton.h.
Referenced by THILDataParser::EagleEventToFragment(), TGRSIDataParser::EmmaTdcDataToFragment(), TGRSIDataParser::GriffinDataToFragment(), TGRSIDataParser::GriffinDataToPPGEvent(), TGRSIDataParser::GriffinDataToScalerEvent(), TGRSIDataParser::RFScalerToFragment(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), TILLDataParser::V2SingleFippsEventToFragment(), TAnalysisWriteLoop::Write(), TFragDiagnosticsLoop::Write(), and TFragWriteLoop::Write().
|
inlinestaticinherited |
Definition at line 66 of file TSingleton.h.
| void TParsingDiagnostics::GoodFragment | ( | const std::shared_ptr< const TFragment > & | frag | ) |
increment the counter of good fragments for this detector type and check if any trigger ids have been lost
Definition at line 113 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxDaqTimeStamp, fMaxNetworkPacketNumber, fMinDaqTimeStamp, fMinNetworkPacketNumber, fNumberOfGoodFragments, and fNumberOfNetworkPackets.
Referenced by THILDataParser::EagleEventToFragment(), TGRSIDataParser::GriffinDataToFragment(), TGRSIDataParser::GriffinDataToPPGEvent(), TGRSIDataParser::GriffinDataToScalerEvent(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
inline |
Definition at line 107 of file TParsingDiagnostics.h.
References fNumberOfGoodFragments.
|
inline |
Definition at line 123 of file TParsingDiagnostics.h.
References fNumberOfBadFragments.
|
inline |
Definition at line 116 of file TParsingDiagnostics.h.
References fNumberOfGoodFragments.
|
default |
|
defaultnoexcept |
|
inline |
Definition at line 131 of file TParsingDiagnostics.h.
References fPPGCycleLength.
|
override |
Definition at line 86 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxDaqTimeStamp, fMaxNetworkPacketNumber, fMinDaqTimeStamp, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
|
inlinestaticinherited |
Definition at line 170 of file TSingleton.h.
| void TParsingDiagnostics::ReadPPG | ( | TPPG * | ppg | ) |
store different TPPG diagnostics like cycle length, length of each state, offset, how often each state was found
Definition at line 140 of file TParsingDiagnostics.cxx.
References fPPGCycleLength, and TPPG::GetCycleLength().
Referenced by TFragDiagnosticsLoop::Write(), and TFragWriteLoop::Write().
|
inlinestaticinherited |
Definition at line 133 of file TSingleton.h.
| void TParsingDiagnostics::WriteToFile | ( | const char * | fileName | ) | const |
Definition at line 182 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxDaqTimeStamp, fMinDaqTimeStamp, fNumberOfBadFragments, fNumberOfGoodFragments, TChannel::GetChannel(), and hex().
|
friend |
Definition at line 62 of file TParsingDiagnostics.h.
|
private |
unordered_map of data per channel address
Definition at line 87 of file TParsingDiagnostics.h.
Referenced by Copy(), Draw(), GoodFragment(), Print(), and WriteToFile().
|
staticprivateinherited |
Definition at line 192 of file TSingleton.h.
|
private |
histogram of event survival
Definition at line 100 of file TParsingDiagnostics.h.
Referenced by ~TParsingDiagnostics(), Clear(), and Draw().
|
private |
maximum daq timestamp
Definition at line 90 of file TParsingDiagnostics.h.
Referenced by Clear(), GoodFragment(), Print(), and WriteToFile().
|
private |
maximum network packet id
Definition at line 93 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), and Print().
|
private |
minimum daq timestamp
Definition at line 89 of file TParsingDiagnostics.h.
Referenced by Clear(), GoodFragment(), Print(), and WriteToFile().
|
private |
minimum network packet id
Definition at line 92 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), and Print().
|
private |
unordered_map of number of bad fragments per detector type
Definition at line 84 of file TParsingDiagnostics.h.
Referenced by BadFragment(), Clear(), Copy(), NumberOfBadFragments(), Print(), and WriteToFile().
|
private |
unordered_map of number of good fragments per detector type
Definition at line 83 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), GoodFragment(), NumberOfGoodFragments(), Print(), and WriteToFile().
|
private |
Definition at line 95 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), and Print().
|
private |
Definition at line 98 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), PPGCycleLength(), Print(), and ReadPPG().
|
staticprivateinherited |
Definition at line 191 of file TSingleton.h.