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 70 of file TParsingDiagnostics.h.
Public Member Functions | |
TParsingDiagnostics () | |
TParsingDiagnostics (const TParsingDiagnostics &) | |
~TParsingDiagnostics () override | |
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) |
ULong64_t | PPGCycleLength () |
void | Print (Option_t *opt="") const override |
void | ReadPPG (TPPG *) |
void | WriteToFile (const char *) const |
Static Public Member Functions | |
static TParsingDiagnostics * | AddCurrent () |
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 |
time_t | fMaxDaqTimeStamp |
Int_t | fMaxNetworkPacketNumber |
time_t | fMinDaqTimeStamp |
Int_t | fMinNetworkPacketNumber |
std::unordered_map< Short_t, Long_t > | fNumberOfBadFragments |
std::unordered_map< Short_t, Long_t > | fNumberOfGoodFragments |
Long_t | fNumberOfNetworkPackets |
ULong64_t | fPPGCycleLength |
Friends | |
class | TSingleton< TParsingDiagnostics > |
#include <TParsingDiagnostics.h>
TParsingDiagnostics::TParsingDiagnostics | ( | ) |
Definition at line 69 of file TParsingDiagnostics.cxx.
TParsingDiagnostics::TParsingDiagnostics | ( | const TParsingDiagnostics & | ) |
Definition at line 75 of file TParsingDiagnostics.cxx.
|
override |
Definition at line 81 of file TParsingDiagnostics.cxx.
References fIdHist.
|
inlinestaticinherited |
Definition at line 137 of file TSingleton.h.
References CYAN, TSingleton< T >::fDir, TSingleton< T >::fSingleton, TSingleton< T >::Get(), and RESET_COLOR.
|
inline |
Definition at line 107 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 97 of file TParsingDiagnostics.cxx.
References fIdHist, fMaxDaqTimeStamp, fMaxNetworkPacketNumber, fMinDaqTimeStamp, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
Referenced by TParsingDiagnostics().
|
override |
Definition at line 86 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxNetworkPacketNumber, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
|
override |
Definition at line 178 of file TParsingDiagnostics.cxx.
References fChannelAddressData, and fIdHist.
|
inlinestaticinherited |
Definition at line 34 of file TSingleton.h.
References CYAN, TSingleton< T >::fDir, TSingleton< T >::fSingleton, RESET_COLOR, and TSingleton< T >::Set().
Referenced by THILDataParser::EagleEventToFragment(), TGRSIDataParser::EmmaTdcDataToFragment(), TGRSIDataParser::GriffinDataToFragment(), TGRSIDataParser::GriffinDataToPPGEvent(), TGRSIDataParser::GriffinDataToScalerEvent(), TGRSIDataParser::RFScalerToFragment(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), TILLDataParser::V2SingleFippsEventToFragment(), and TFragWriteLoop::Write().
|
inlinestaticinherited |
Definition at line 62 of file TSingleton.h.
References TSingleton< T >::fDir, TSingleton< T >::fSingleton, and TSingleton< T >::Get().
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 138 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 106 of file TParsingDiagnostics.h.
References fNumberOfGoodFragments.
|
inline |
Definition at line 119 of file TParsingDiagnostics.h.
References fNumberOfBadFragments.
|
inline |
Definition at line 112 of file TParsingDiagnostics.h.
References fNumberOfGoodFragments.
|
inline |
Definition at line 127 of file TParsingDiagnostics.h.
References fPPGCycleLength.
|
override |
Definition at line 111 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxDaqTimeStamp, fMaxNetworkPacketNumber, fMinDaqTimeStamp, fMinNetworkPacketNumber, fNumberOfBadFragments, fNumberOfGoodFragments, fNumberOfNetworkPackets, and fPPGCycleLength.
|
inlinestaticinherited |
Definition at line 166 of file TSingleton.h.
References TSingleton< T >::fDir, and TSingleton< T >::fSingleton.
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 169 of file TParsingDiagnostics.cxx.
References fPPGCycleLength, and TPPG::GetCycleLength().
Referenced by TFragWriteLoop::Write().
|
inlinestaticinherited |
Definition at line 129 of file TSingleton.h.
References TSingleton< T >::fSingleton.
void TParsingDiagnostics::WriteToFile | ( | const char * | fileName | ) | const |
Definition at line 211 of file TParsingDiagnostics.cxx.
References fChannelAddressData, fMaxDaqTimeStamp, fMinDaqTimeStamp, fNumberOfBadFragments, fNumberOfGoodFragments, TChannel::GetChannel(), and hex().
|
friend |
Definition at line 72 of file TParsingDiagnostics.h.
|
private |
unordered_map of data per channel address
Definition at line 85 of file TParsingDiagnostics.h.
Referenced by Copy(), Draw(), GoodFragment(), Print(), and WriteToFile().
|
private |
histogram of event survival
Definition at line 99 of file TParsingDiagnostics.h.
Referenced by Clear(), Draw(), TParsingDiagnostics(), and ~TParsingDiagnostics().
|
private |
maximum daq timestamp
Definition at line 88 of file TParsingDiagnostics.h.
Referenced by Clear(), GoodFragment(), Print(), and WriteToFile().
|
private |
maximum network packet id
Definition at line 91 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), and Print().
|
private |
minimum daq timestamp
Definition at line 87 of file TParsingDiagnostics.h.
Referenced by Clear(), GoodFragment(), Print(), and WriteToFile().
|
private |
minimum network packet id
Definition at line 90 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 82 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 81 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), NumberOfGoodFragments(), Print(), and WriteToFile().
|
private |
Definition at line 93 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), GoodFragment(), and Print().
|
private |
Definition at line 96 of file TParsingDiagnostics.h.
Referenced by Clear(), Copy(), PPGCycleLength(), Print(), and ReadPPG().