![]() |
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 31 of file TSortingDiagnostics.h.
Public Member Functions | |
TSortingDiagnostics () | |
void | AddDetectorClass (TChannel *) |
void | AddTime (double val) |
void | AddTimeStamp (Long_t val) |
void | Clear (Option_t *opt="all") override |
void | Copy (TObject &) const override |
void | Draw (Option_t *opt="") override |
std::unordered_map< int64_t, std::pair< int64_t, int64_t > > | FragmentsOutOfOrder () |
std::unordered_map< double, std::pair< double, double > > | FragmentsOutOfTimeOrder () |
int64_t | MaxEntryDiff () const |
void | MissingChannel (const UInt_t &address) |
size_t | NumberOfFragmentsOutOfOrder () const |
size_t | NumberOfFragmentsOutOfTimeOrder () const |
void | OutOfOrder (int64_t newFragTS, int64_t oldFragTS, int64_t newEntry) |
void | OutOfTimeOrder (double newFragTime, double oldFragTime, int64_t newEntry) |
void | Print (Option_t *opt="") const override |
void | RemovedHits (TClass *detClass, int64_t removed, int64_t total) |
void | WriteToFile (const char *) const |
Static Public Member Functions | |
static TSortingDiagnostics * | AddCurrent () |
static TSortingDiagnostics * | Get (bool verbose=false) |
static TSortingDiagnostics * | GetAll () |
static void | PrintDirectory () |
static void | Set (TSortingDiagnostics *val) |
Private Attributes | |
std::unordered_map< int64_t, std::pair< int64_t, int64_t > > | fFragmentsOutOfOrder |
std::unordered_map< double, std::pair< double, double > > | fFragmentsOutOfTimeOrder |
std::unordered_map< TClass *, std::pair< int64_t, int64_t > > | fHitsRemoved |
int64_t | fMaxEntryDiff {0} |
std::unordered_map< UInt_t, int64_t > | fMissingChannels |
std::unordered_map< TClass *, int64_t > | fMissingDetectorClasses |
std::vector< double > | fPreviousTimes |
std::vector< Long_t > | fPreviousTimeStamps |
Static Private Attributes | |
static TDirectory * | fDir |
static TSortingDiagnostics * | fSingleton |
Friends | |
class | TSingleton< TSortingDiagnostics > |
TSortingDiagnostics::TSortingDiagnostics | ( | ) |
Definition at line 9 of file TSortingDiagnostics.cxx.
References Clear().
|
inlinestaticinherited |
Definition at line 141 of file TSingleton.h.
void TSortingDiagnostics::AddDetectorClass | ( | TChannel * | channel | ) |
Definition at line 73 of file TSortingDiagnostics.cxx.
References fMissingDetectorClasses, TChannel::GetClassType(), and TChannel::Print().
Referenced by TUnpackedEvent::Build().
|
inline |
Definition at line 58 of file TSortingDiagnostics.h.
References fPreviousTimes.
Referenced by TEventBuildingLoop::CheckTimeCondition().
|
inline |
Definition at line 59 of file TSortingDiagnostics.h.
References fPreviousTimeStamps.
Referenced by TEventBuildingLoop::CheckTimestampCondition(), and TEventBuildingLoop::CheckTriggerIdCondition().
|
override |
Definition at line 21 of file TSortingDiagnostics.cxx.
References fFragmentsOutOfOrder, fFragmentsOutOfTimeOrder, and fMissingDetectorClasses.
Referenced by TSortingDiagnostics().
|
override |
Definition at line 14 of file TSortingDiagnostics.cxx.
References fFragmentsOutOfOrder, fFragmentsOutOfTimeOrder, and fMissingDetectorClasses.
|
override |
Definition at line 140 of file TSortingDiagnostics.cxx.
|
inline |
Definition at line 66 of file TSortingDiagnostics.h.
References fFragmentsOutOfOrder.
|
inline |
Definition at line 68 of file TSortingDiagnostics.h.
References fFragmentsOutOfTimeOrder.
|
inlinestaticinherited |
Definition at line 33 of file TSingleton.h.
Referenced by TUnpackedEvent::Build(), TTigress::BuildHits(), TEventBuildingLoop::CheckTimeCondition(), TEventBuildingLoop::CheckTimestampCondition(), TEventBuildingLoop::CheckTriggerIdCondition(), TGRSIint::Terminate(), and TAnalysisWriteLoop::Write().
|
inlinestaticinherited |
Definition at line 66 of file TSingleton.h.
|
inline |
Definition at line 69 of file TSortingDiagnostics.h.
References fMaxEntryDiff.
void TSortingDiagnostics::MissingChannel | ( | const UInt_t & | address | ) |
Definition at line 64 of file TSortingDiagnostics.cxx.
References fMissingChannels.
Referenced by TUnpackedEvent::Build().
|
inline |
Definition at line 65 of file TSortingDiagnostics.h.
References fFragmentsOutOfOrder.
Referenced by Print(), and WriteToFile().
|
inline |
Definition at line 67 of file TSortingDiagnostics.h.
References fFragmentsOutOfTimeOrder.
Referenced by Print(), and WriteToFile().
void TSortingDiagnostics::OutOfOrder | ( | int64_t | newFragTS, |
int64_t | oldFragTS, | ||
int64_t | newEntry ) |
Definition at line 46 of file TSortingDiagnostics.cxx.
References fFragmentsOutOfOrder, fMaxEntryDiff, fPreviousTimeStamps, TGRSIOptions::Get(), and TGRSIOptions::SortDepth().
Referenced by TEventBuildingLoop::CheckTimestampCondition(), and TEventBuildingLoop::CheckTriggerIdCondition().
void TSortingDiagnostics::OutOfTimeOrder | ( | double | newFragTime, |
double | oldFragTime, | ||
int64_t | newEntry ) |
Definition at line 28 of file TSortingDiagnostics.cxx.
References fFragmentsOutOfTimeOrder, fMaxEntryDiff, fPreviousTimes, TGRSIOptions::Get(), and TGRSIOptions::SortDepth().
Referenced by TEventBuildingLoop::CheckTimeCondition().
|
override |
Definition at line 84 of file TSortingDiagnostics.cxx.
References DGREEN, DRED, fFragmentsOutOfOrder, fFragmentsOutOfTimeOrder, fHitsRemoved, fMaxEntryDiff, fMissingChannels, fMissingDetectorClasses, hex(), NumberOfFragmentsOutOfOrder(), NumberOfFragmentsOutOfTimeOrder(), and RESET_COLOR.
Referenced by TGRSIint::Terminate().
|
inlinestaticinherited |
Definition at line 171 of file TSingleton.h.
void TSortingDiagnostics::RemovedHits | ( | TClass * | detClass, |
int64_t | removed, | ||
int64_t | total ) |
Definition at line 154 of file TSortingDiagnostics.cxx.
References fHitsRemoved.
Referenced by TTigress::BuildHits().
|
inlinestaticinherited |
Definition at line 133 of file TSingleton.h.
void TSortingDiagnostics::WriteToFile | ( | const char * | fileName | ) | const |
Definition at line 144 of file TSortingDiagnostics.cxx.
References fMaxEntryDiff, NumberOfFragmentsOutOfOrder(), and NumberOfFragmentsOutOfTimeOrder().
|
friend |
Definition at line 1 of file TSortingDiagnostics.h.
|
staticprivateinherited |
Definition at line 187 of file TSingleton.h.
|
private |
Definition at line 44 of file TSortingDiagnostics.h.
Referenced by Clear(), Copy(), FragmentsOutOfOrder(), NumberOfFragmentsOutOfOrder(), OutOfOrder(), and Print().
|
private |
Definition at line 45 of file TSortingDiagnostics.h.
Referenced by Clear(), Copy(), FragmentsOutOfTimeOrder(), NumberOfFragmentsOutOfTimeOrder(), OutOfTimeOrder(), and Print().
|
private |
removed hits and total hits per detector class
Definition at line 52 of file TSortingDiagnostics.h.
Referenced by Print(), and RemovedHits().
|
private |
Definition at line 48 of file TSortingDiagnostics.h.
Referenced by MaxEntryDiff(), OutOfOrder(), OutOfTimeOrder(), Print(), and WriteToFile().
|
private |
counts of missing channels
Definition at line 49 of file TSortingDiagnostics.h.
Referenced by MissingChannel(), and Print().
|
private |
counts of missing detector classes
Definition at line 50 of file TSortingDiagnostics.h.
Referenced by AddDetectorClass(), Clear(), Copy(), and Print().
|
private |
times of previous fragments, saved every 'BuildWindow' entries
Definition at line 47 of file TSortingDiagnostics.h.
Referenced by AddTime(), and OutOfTimeOrder().
|
private |
timestamps of previous fragments, saved every 'BuildWindow' entries
Definition at line 46 of file TSortingDiagnostics.h.
Referenced by AddTimeStamp(), and OutOfOrder().
|
staticprivateinherited |
Definition at line 186 of file TSingleton.h.