1#ifndef TSORTINGDIAGNOSTICS_H
2#define TSORTINGDIAGNOSTICS_H
22#include <unordered_map>
52 std::unordered_map<TClass*, std::pair<int64_t, int64_t>>
fHitsRemoved;
56 void OutOfTimeOrder(
double newFragTime,
double oldFragTime, int64_t newEntry);
57 void OutOfOrder(int64_t newFragTS, int64_t oldFragTS, int64_t newEntry);
62 void RemovedHits(TClass* detClass, int64_t removed, int64_t total);
74 void Copy(TObject&)
const override;
75 void Clear(Option_t* opt =
"all")
override;
76 void Print(Option_t* opt =
"")
const override;
77 void Draw(Option_t* opt =
"")
override;
void OutOfTimeOrder(double newFragTime, double oldFragTime, int64_t newEntry)
std::unordered_map< double, std::pair< double, double > > FragmentsOutOfTimeOrder()
void Copy(TObject &) const override
std::unordered_map< UInt_t, int64_t > fMissingChannels
counts of missing channels
void RemovedHits(TClass *detClass, int64_t removed, int64_t total)
void Draw(Option_t *opt="") override
void Clear(Option_t *opt="all") override
std::vector< double > fPreviousTimes
times of previous fragments, saved every 'BuildWindow' entries
std::unordered_map< TClass *, int64_t > fMissingDetectorClasses
counts of missing detector classes
std::unordered_map< int64_t, std::pair< int64_t, int64_t > > fFragmentsOutOfOrder
void AddTimeStamp(Long_t val)
void MissingChannel(const UInt_t &address)
int64_t MaxEntryDiff() const
std::unordered_map< double, std::pair< double, double > > fFragmentsOutOfTimeOrder
void OutOfOrder(int64_t newFragTS, int64_t oldFragTS, int64_t newEntry)
void Print(Option_t *opt="") const override
void WriteToFile(const char *) const
std::unordered_map< int64_t, std::pair< int64_t, int64_t > > FragmentsOutOfOrder()
size_t NumberOfFragmentsOutOfOrder() const
std::unordered_map< TClass *, std::pair< int64_t, int64_t > > fHitsRemoved
removed hits and total hits per detector class
size_t NumberOfFragmentsOutOfTimeOrder() const
void AddDetectorClass(TChannel *)
std::vector< Long_t > fPreviousTimeStamps
timestamps of previous fragments, saved every 'BuildWindow' entries