GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TSortingDiagnostics Class Reference

Detailed Description

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 TSortingDiagnosticsAddCurrent ()
 
static TSortingDiagnosticsGet (bool verbose=false)
 
static TSortingDiagnosticsGetAll ()
 
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 TSortingDiagnosticsfSingleton
 

Friends

class TSingleton< TSortingDiagnostics >
 
+ Inheritance diagram for TSortingDiagnostics:
+ Collaboration diagram for TSortingDiagnostics:

Constructor & Destructor Documentation

◆ TSortingDiagnostics()

TSortingDiagnostics::TSortingDiagnostics ( )

Definition at line 9 of file TSortingDiagnostics.cxx.

References Clear().

Member Function Documentation

◆ AddCurrent()

static TSortingDiagnostics * TSingleton< TSortingDiagnostics >::AddCurrent ( )
inlinestaticinherited

Definition at line 141 of file TSingleton.h.

◆ AddDetectorClass()

void TSortingDiagnostics::AddDetectorClass ( TChannel * channel)

◆ AddTime()

void TSortingDiagnostics::AddTime ( double val)
inline

Definition at line 58 of file TSortingDiagnostics.h.

References fPreviousTimes.

Referenced by TEventBuildingLoop::CheckTimeCondition().

◆ AddTimeStamp()

void TSortingDiagnostics::AddTimeStamp ( Long_t val)
inline

◆ Clear()

void TSortingDiagnostics::Clear ( Option_t * opt = "all")
override

◆ Copy()

void TSortingDiagnostics::Copy ( TObject & obj) const
override

◆ Draw()

void TSortingDiagnostics::Draw ( Option_t * opt = "")
override

Definition at line 140 of file TSortingDiagnostics.cxx.

◆ FragmentsOutOfOrder()

std::unordered_map< int64_t, std::pair< int64_t, int64_t > > TSortingDiagnostics::FragmentsOutOfOrder ( )
inline

Definition at line 66 of file TSortingDiagnostics.h.

References fFragmentsOutOfOrder.

◆ FragmentsOutOfTimeOrder()

std::unordered_map< double, std::pair< double, double > > TSortingDiagnostics::FragmentsOutOfTimeOrder ( )
inline

Definition at line 68 of file TSortingDiagnostics.h.

References fFragmentsOutOfTimeOrder.

◆ Get()

◆ GetAll()

static TSortingDiagnostics * TSingleton< TSortingDiagnostics >::GetAll ( )
inlinestaticinherited

Definition at line 66 of file TSingleton.h.

◆ MaxEntryDiff()

int64_t TSortingDiagnostics::MaxEntryDiff ( ) const
inline

Definition at line 69 of file TSortingDiagnostics.h.

References fMaxEntryDiff.

◆ MissingChannel()

void TSortingDiagnostics::MissingChannel ( const UInt_t & address)

Definition at line 64 of file TSortingDiagnostics.cxx.

References fMissingChannels.

Referenced by TUnpackedEvent::Build().

◆ NumberOfFragmentsOutOfOrder()

size_t TSortingDiagnostics::NumberOfFragmentsOutOfOrder ( ) const
inline

Definition at line 65 of file TSortingDiagnostics.h.

References fFragmentsOutOfOrder.

Referenced by Print(), and WriteToFile().

◆ NumberOfFragmentsOutOfTimeOrder()

size_t TSortingDiagnostics::NumberOfFragmentsOutOfTimeOrder ( ) const
inline

Definition at line 67 of file TSortingDiagnostics.h.

References fFragmentsOutOfTimeOrder.

Referenced by Print(), and WriteToFile().

◆ OutOfOrder()

void TSortingDiagnostics::OutOfOrder ( int64_t newFragTS,
int64_t oldFragTS,
int64_t newEntry )

◆ OutOfTimeOrder()

void TSortingDiagnostics::OutOfTimeOrder ( double newFragTime,
double oldFragTime,
int64_t newEntry )

◆ Print()

◆ PrintDirectory()

static void TSingleton< TSortingDiagnostics >::PrintDirectory ( )
inlinestaticinherited

Definition at line 171 of file TSingleton.h.

◆ RemovedHits()

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().

◆ Set()

static void TSingleton< TSortingDiagnostics >::Set ( TSortingDiagnostics * val)
inlinestaticinherited

Definition at line 133 of file TSingleton.h.

◆ WriteToFile()

void TSortingDiagnostics::WriteToFile ( const char * fileName) const

Friends And Related Symbol Documentation

◆ TSingleton< TSortingDiagnostics >

friend class TSingleton< TSortingDiagnostics >
friend

Definition at line 1 of file TSortingDiagnostics.h.

Member Data Documentation

◆ fDir

TDirectory * TSingleton< TSortingDiagnostics >::fDir
staticprivateinherited

Definition at line 187 of file TSingleton.h.

◆ fFragmentsOutOfOrder

std::unordered_map<int64_t, std::pair<int64_t, int64_t> > TSortingDiagnostics::fFragmentsOutOfOrder
private

◆ fFragmentsOutOfTimeOrder

std::unordered_map<double, std::pair<double, double> > TSortingDiagnostics::fFragmentsOutOfTimeOrder
private

◆ fHitsRemoved

std::unordered_map<TClass*, std::pair<int64_t, int64_t> > TSortingDiagnostics::fHitsRemoved
private

removed hits and total hits per detector class

Definition at line 52 of file TSortingDiagnostics.h.

Referenced by Print(), and RemovedHits().

◆ fMaxEntryDiff

int64_t TSortingDiagnostics::fMaxEntryDiff {0}
private

Definition at line 48 of file TSortingDiagnostics.h.

Referenced by MaxEntryDiff(), OutOfOrder(), OutOfTimeOrder(), Print(), and WriteToFile().

◆ fMissingChannels

std::unordered_map<UInt_t, int64_t> TSortingDiagnostics::fMissingChannels
private

counts of missing channels

Definition at line 49 of file TSortingDiagnostics.h.

Referenced by MissingChannel(), and Print().

◆ fMissingDetectorClasses

std::unordered_map<TClass*, int64_t> TSortingDiagnostics::fMissingDetectorClasses
private

counts of missing detector classes

Definition at line 50 of file TSortingDiagnostics.h.

Referenced by AddDetectorClass(), Clear(), Copy(), and Print().

◆ fPreviousTimes

std::vector<double> TSortingDiagnostics::fPreviousTimes
private

times of previous fragments, saved every 'BuildWindow' entries

Definition at line 47 of file TSortingDiagnostics.h.

Referenced by AddTime(), and OutOfTimeOrder().

◆ fPreviousTimeStamps

std::vector<Long_t> TSortingDiagnostics::fPreviousTimeStamps
private

timestamps of previous fragments, saved every 'BuildWindow' entries

Definition at line 46 of file TSortingDiagnostics.h.

Referenced by AddTimeStamp(), and OutOfOrder().

◆ fSingleton

TSortingDiagnostics * TSingleton< TSortingDiagnostics >::fSingleton
staticprivateinherited

Definition at line 186 of file TSingleton.h.