BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMetadataDecoder Class Reference

#include <BmnMetadataDecoder.h>

Inheritance diagram for BmnMetadataDecoder:
Collaboration diagram for BmnMetadataDecoder:

Public Member Functions

 BmnMetadataDecoder (vector< string > file={}, string outfile="", ULong_t period=8, BmnSetup setup=kBMNSETUP)
virtual ~BmnMetadataDecoder ()
void ClearDigiArrays ()
void ClearSpillDigiArrays ()
BmnStatus ProcessStatusBlocks ()
BmnStatus ProcessSpillTree ()
void GatherStatusBlocksFromDigis ()
void GatherStatusBlocksFromTars ()
BmnStatus InitDecoder ()
BmnStatus SaveData ()
BmnStatus DisposeDecoder ()
void SetRawTree (TTree *tree)
TTree * GetDigiTree ()
void SetRunId (UInt_t v)
void SetPeriodId (UInt_t v)
UInt_t GetRunId () const
UInt_t GetPeriodId () const
void SetBmnSetup (BmnSetup v)
BmnSetup GetBmnSetup () const
void SetMSCMapping (TString map)
void SetOutFileName (string filename)
void SetDecoderConfigFileName (string FileName)
void SetT0RawStorageFileName (string FileName)
BmnStatus SetDigiDirectory (string fDigiDir)
BmnStatus SetTarDirectory (string DirName)
void SetTarFileNames (vector< string > FileNames)
TString GetSubNameAfterRunId (TString name)
 BmnMetadataDecoder (vector< string > file={}, string outfile="", ULong_t period=8, BmnSetup setup=kBMNSETUP)
virtual ~BmnMetadataDecoder ()
void ClearDigiArrays ()
void ClearSpillDigiArrays ()
BmnStatus ProcessStatusBlocks ()
BmnStatus ProcessSpillTree ()
void GatherStatusBlocksFromDigis ()
void GatherStatusBlocksFromTars ()
BmnStatus InitDecoder ()
BmnStatus SaveData ()
BmnStatus DisposeDecoder ()
void SetRawTree (TTree *tree)
TTree * GetDigiTree ()
void SetRunId (UInt_t v)
void SetPeriodId (UInt_t v)
UInt_t GetRunId () const
UInt_t GetPeriodId () const
void SetBmnSetup (BmnSetup v)
BmnSetup GetBmnSetup () const
void SetMSCMapping (TString map)
void SetOutFileName (string filename)
void SetDecoderConfigFileName (string FileName)
void SetT0RawStorageFileName (string FileName)
BmnStatus SetDigiDirectory (string fDigiDir)
BmnStatus SetTarDirectory (string DirName)
void SetTarFileNames (vector< string > FileNames)
TString GetSubNameAfterRunId (TString name)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual void Print (Option_t *option="") const
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Static Public Member Functions

static BmnStatus ReadSpillStat (const string &FileName, const vector< string > &EvtTrNames={ "BT'", "MBT", "CCT1", "nFD"})
static BmnStatus ReadSpillStat (const string &FileName, const vector< string > &EvtTrNames={ "BT'", "MBT", "CCT1", "nFD"})
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)

Private Member Functions

void AddT0Raw2Headers (BmnT0Raw *el)
void GenerateBusyRanges (BmnMSCMatrix< uint8_t > *matrix, boost::dynamic_bitset<> &bitVecSpill, boost::dynamic_bitset<> &bitVecBusy)
BmnStatus LoadConfig ()
BmnStatus LoadT0Storage ()
void AddT0Raw2Headers (BmnT0Raw *el)
void GenerateBusyRanges (BmnMSCMatrix< uint8_t > *matrix, boost::dynamic_bitset<> &bitVecSpill, boost::dynamic_bitset<> &bitVecBusy)
BmnStatus LoadConfig ()
BmnStatus LoadT0Storage ()

Private Attributes

const TTimeStamp TimeZero = TTimeStamp(time_t(0), 0)
Double_t workTime_cpu = 0.0
Double_t workTime_real = 0.0
bool get_run_interval_from_file = true
bool get_filenames_from_db = false
pt::ptree conf
UInt_t fRunId
UInt_t fPeriodId
Long64_t fTime_s
Long64_t fTime_ns
SysPoint fRunStartTime
SysPoint fRunEndTime
TTree * fRawTree
TTree * fRawTreeSpillsT0
TTree * fDigiTree
TTree * fDigiTreeSpills
string fDecoderConfigFileName
string fT0RawStorageFileName
string fDigiDir
vector< string > fDigiFileNames
vector< string > fRawMetaFileNames
string fTarDir
vector< string > fTarFileNames
TString fMSCMapFileName
string fOutFileName
TString fDigiRunHdrName
TString fSubName
TString fRawRunHdrName
TString fMetadataName
TFile * fDigiFileOut
TFile * fCalibFile
unique_ptr< DigiRunHeader > digiRunHeader
TClonesArray * msc
TClonesArray * t0raw
TClonesArray * msc_copy
TClonesArray * t0_copy
BmnEventHeader * inEventHeader
BmnSpillHeader * spillHeader
NameChMap fTrcBitMap
 TRC bit map.
Name2SerCh fScalersMap
 MSC map.
T0ChMap fRawT0Map
 Raw T0 module map (from Sergeev txt).
BmnMetadataRaw metadata
BmnSetup fBmnSetup
TString fPeriodSetupExt
unique_ptr< BmnTrigRaw2Digit > fTrigMapper
map< SysPoint, BmnSpillInfo > fSpillMap
SerCh2Name scalers2name_map
map< std::pair< uint32_t, uint16_t >, uint16_t > scalers2index_map
map< uint16_t, uint16_t > trcIdx2scalerIdx
NameChMap scalers_name2index_map
vector< string > scalers_index2name_map
unique_ptr< TFile > fT0RawStorageFile
unique_ptr< TTree > fT0RawStorageTree
unique_ptr< std::map< TTimeStamp, int64_t > > fT0RawStorageTsMap
TClonesArray * fT0RawStorageArr

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

Definition at line 32 of file BmnMetadataDecoder.h.

Constructor & Destructor Documentation

◆ BmnMetadataDecoder() [1/2]

BmnMetadataDecoder::BmnMetadataDecoder ( vector< string > file = {},
string outfile = "",
ULong_t period = 8,
BmnSetup setup = kBMNSETUP )

Definition at line 37 of file BmnMetadataDecoder.cxx.

References fBmnSetup, fCalibFile, fDigiFileNames, fDigiFileOut, fDigiRunHdrName, fDigiTree, fMetadataName, fOutFileName, fPeriodId, fPeriodSetupExt, fRawRunHdrName, fRawTree, fRunEndTime, fRunId, fRunStartTime, fT0RawStorageArr, fT0RawStorageTsMap, fTime_ns, fTime_s, inEventHeader, kBMNSETUP, min(), msc, msc_copy, TTree::SetMaxTreeSize(), spillHeader, t0_copy, and t0raw.

Referenced by LoadT0Storage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~BmnMetadataDecoder() [1/2]

BmnMetadataDecoder::~BmnMetadataDecoder ( )
virtual

Definition at line 71 of file BmnMetadataDecoder.cxx.

References DisposeDecoder().

Here is the call graph for this function:

◆ BmnMetadataDecoder() [2/2]

BmnMetadataDecoder::BmnMetadataDecoder ( vector< string > file = {},
string outfile = "",
ULong_t period = 8,
BmnSetup setup = kBMNSETUP )

◆ ~BmnMetadataDecoder() [2/2]

virtual BmnMetadataDecoder::~BmnMetadataDecoder ( )
virtual

Member Function Documentation

◆ AddT0Raw2Headers() [1/2]

void BmnMetadataDecoder::AddT0Raw2Headers ( BmnT0Raw * el)
private

Definition at line 889 of file BmnMetadataDecoder.cxx.

References TTimeStamp::AsString(), BmnT0Raw::Counters(), digiRunHeader, BmnT0Raw::GetTS(), i, kT0_BIN_BLOCK_WORDS, and spillHeader.

Referenced by ProcessSpillTree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddT0Raw2Headers() [2/2]

void BmnMetadataDecoder::AddT0Raw2Headers ( BmnT0Raw * el)
private

◆ ClearDigiArrays() [1/2]

void BmnMetadataDecoder::ClearDigiArrays ( )

Definition at line 1028 of file BmnMetadataDecoder.cxx.

References fTrigMapper, and inEventHeader.

◆ ClearDigiArrays() [2/2]

void BmnMetadataDecoder::ClearDigiArrays ( )

◆ ClearSpillDigiArrays() [1/2]

void BmnMetadataDecoder::ClearSpillDigiArrays ( )

Definition at line 1035 of file BmnMetadataDecoder.cxx.

References msc_copy, spillHeader, and t0_copy.

Referenced by ProcessSpillTree().

Here is the caller graph for this function:

◆ ClearSpillDigiArrays() [2/2]

void BmnMetadataDecoder::ClearSpillDigiArrays ( )

◆ DisposeDecoder() [1/2]

BmnStatus BmnMetadataDecoder::DisposeDecoder ( )

Definition at line 1084 of file BmnMetadataDecoder.cxx.

References inEventHeader, kBMNSUCCESS, msc_copy, spillHeader, and t0_copy.

Referenced by ~BmnMetadataDecoder().

Here is the caller graph for this function:

◆ DisposeDecoder() [2/2]

BmnStatus BmnMetadataDecoder::DisposeDecoder ( )

◆ GatherStatusBlocksFromDigis() [1/2]

void BmnMetadataDecoder::GatherStatusBlocksFromDigis ( )

Definition at line 156 of file BmnMetadataDecoder.cxx.

References digiRunHeader, fBmnSetup, fDigiFileNames, fDigiRunHdrName, fMetadataName, fPeriodId, fRawT0Map, fRunEndTime, fRunStartTime, fScalersMap, fTrcBitMap, fTrigMapper, get_run_interval_from_file, kBMNSETUP, metadata, TFile::Open(), scalers2index_map, scalers2name_map, scalers_index2name_map, scalers_name2index_map, BmnFunctionSet::TimePoint2String(), and trcIdx2scalerIdx.

Referenced by ProcessStatusBlocks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GatherStatusBlocksFromDigis() [2/2]

void BmnMetadataDecoder::GatherStatusBlocksFromDigis ( )

◆ GatherStatusBlocksFromTars() [1/2]

void BmnMetadataDecoder::GatherStatusBlocksFromTars ( )

Definition at line 256 of file BmnMetadataDecoder.cxx.

◆ GatherStatusBlocksFromTars() [2/2]

void BmnMetadataDecoder::GatherStatusBlocksFromTars ( )

◆ GenerateBusyRanges() [1/2]

void BmnMetadataDecoder::GenerateBusyRanges ( BmnMSCMatrix< uint8_t > * matrix,
boost::dynamic_bitset<> & bitVecSpill,
boost::dynamic_bitset<> & bitVecBusy )
private

Definition at line 856 of file BmnMetadataDecoder.cxx.

References BmnMSCMatrix< IntType >::BusyRangeVec(), BmnMSCMatrix< IntType >::GetNRecords(), BmnMSCMatrix< IntType >::GetTime(), and BmnMSCMatrix< IntType >::SpillRangeVec().

Referenced by ProcessSpillTree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateBusyRanges() [2/2]

void BmnMetadataDecoder::GenerateBusyRanges ( BmnMSCMatrix< uint8_t > * matrix,
boost::dynamic_bitset<> & bitVecSpill,
boost::dynamic_bitset<> & bitVecBusy )
private

◆ GetBmnSetup() [1/2]

BmnSetup BmnMetadataDecoder::GetBmnSetup ( ) const
inline

Definition at line 62 of file BmnMetadataDecoder.h.

References fBmnSetup.

◆ GetBmnSetup() [2/2]

BmnSetup BmnMetadataDecoder::GetBmnSetup ( ) const
inline

Definition at line 62 of file BmnMetadataDecoder.h.

References fBmnSetup.

◆ GetDigiTree() [1/2]

TTree * BmnMetadataDecoder::GetDigiTree ( )
inline

Definition at line 50 of file BmnMetadataDecoder.h.

References fDigiTree.

◆ GetDigiTree() [2/2]

TTree * BmnMetadataDecoder::GetDigiTree ( )
inline

Definition at line 50 of file BmnMetadataDecoder.h.

References fDigiTree.

◆ GetPeriodId() [1/2]

UInt_t BmnMetadataDecoder::GetPeriodId ( ) const
inline

Definition at line 58 of file BmnMetadataDecoder.h.

References fPeriodId.

◆ GetPeriodId() [2/2]

UInt_t BmnMetadataDecoder::GetPeriodId ( ) const
inline

Definition at line 58 of file BmnMetadataDecoder.h.

References fPeriodId.

◆ GetRunId() [1/2]

UInt_t BmnMetadataDecoder::GetRunId ( ) const
inline

Definition at line 56 of file BmnMetadataDecoder.h.

References fRunId.

◆ GetRunId() [2/2]

UInt_t BmnMetadataDecoder::GetRunId ( ) const
inline

Definition at line 56 of file BmnMetadataDecoder.h.

References fRunId.

◆ GetSubNameAfterRunId() [1/2]

TString BmnMetadataDecoder::GetSubNameAfterRunId ( TString name)

Definition at line 1104 of file BmnMetadataDecoder.cxx.

References TPRegexp::MatchB(), and TPRegexp::Substitute().

Here is the call graph for this function:

◆ GetSubNameAfterRunId() [2/2]

TString BmnMetadataDecoder::GetSubNameAfterRunId ( TString name)

◆ InitDecoder() [1/2]

BmnStatus BmnMetadataDecoder::InitDecoder ( )

Definition at line 1021 of file BmnMetadataDecoder.cxx.

References kBMNSUCCESS, and LoadConfig().

Here is the call graph for this function:

◆ InitDecoder() [2/2]

BmnStatus BmnMetadataDecoder::InitDecoder ( )

◆ LoadConfig() [1/2]

BmnStatus BmnMetadataDecoder::LoadConfig ( )
private

Definition at line 1121 of file BmnMetadataDecoder.cxx.

References conf, fDecoderConfigFileName, and kBMNSUCCESS.

Referenced by InitDecoder().

Here is the caller graph for this function:

◆ LoadConfig() [2/2]

BmnStatus BmnMetadataDecoder::LoadConfig ( )
private

◆ LoadT0Storage() [1/2]

BmnStatus BmnMetadataDecoder::LoadT0Storage ( )
private

Definition at line 1130 of file BmnMetadataDecoder.cxx.

References fT0RawStorageArr, fT0RawStorageFile, fT0RawStorageFileName, fT0RawStorageTree, fT0RawStorageTsMap, kBMNERROR, and kBMNSUCCESS.

Referenced by ProcessSpillTree().

Here is the caller graph for this function:

◆ LoadT0Storage() [2/2]

BmnStatus BmnMetadataDecoder::LoadT0Storage ( )
private

References BmnMetadataDecoder().

Here is the call graph for this function:

◆ ProcessSpillTree() [1/2]

BmnStatus BmnMetadataDecoder::ProcessSpillTree ( )

Start reading

General time map (high memory usage)

Local time map (longer calculation, less memory use)

Definition at line 258 of file BmnMetadataDecoder.cxx.

References TChain::Add(), AddT0Raw2Headers(), TTimeStamp::AsString(), TObjArray::At(), TObject::Class(), ClearSpillDigiArrays(), TStopwatch::CpuTime(), digiRunHeader, fDigiFileNames, fDigiFileOut, fDigiTreeSpills, ROOT::RDF::RInterface< typename Proxied, typename DataSource >::Filter(), fOutFileName, fPeriodId, fRawT0Map, fRunEndTime, fRunStartTime, fScalersMap, fSpillMap, fT0RawStorageArr, fT0RawStorageTree, fT0RawStorageTsMap, fTrcBitMap, GenerateBusyRanges(), BmnMSCZSDigit< IntType >::GetChannel(), BmnMSCMatrix< IntType >::GetCount(), TChain::GetEntries(), TObjArray::GetEntries(), TChain::GetEntry(), BmnEventHeader::GetEventId(), BmnEventHeader::GetEventTimeTP(), BmnMSCZSDigit< IntType >::GetExtCond(), BmnEventHeader::GetInputSignalsAR(), BmnMSCMatrix< IntType >::GetIsBusy(), BmnMSCMatrix< IntType >::GetIsSpill(), TChain::GetListOfBranches(), BmnMSCZSDigit< IntType >::GetMissingHits(), BmnMSCZSDigit< IntType >::GetNVals(), BmnMSCDigit< IntType >::GetSerial(), BmnMSCZSDigit< IntType >::GetSerial(), BmnMSCDigit< IntType >::GetTime(), BmnMSCZSDigit< IntType >::GetTime(), BmnT0Raw::GetTime(), BmnMSCZSDigit< IntType >::GetTimes(), BmnT0Raw::GetTimeSinceLastEv(), BmnT0Raw::GetTimeSinceLastEvNs(), BmnMSCDigit< IntType >::GetValue(), BmnMSCZSDigit< IntType >::GetValues(), i, inEventHeader, BmnMSCDigit< IntType >::IsBusy(), BmnMSCDigit< IntType >::IsSpill(), kBMNSUCCESS, LoadT0Storage(), metadata, msc, msc_copy, MSC_EC_BUSY, MSC_EC_SPILL, MSC_N_COUNTERS, TStopwatch::RealTime(), scalers2index_map, scalers_index2name_map, scalers_name2index_map, TChain::SetBranchAddress(), BmnMSCMatrix< IntType >::SetCount(), BmnMSCMatrix< IntType >::SetMissingHits(), BmnMSCMatrix< IntType >::SetTime(), spillHeader, TStopwatch::Start(), BmnSpillInfo::start_ts, TStopwatch::Stop(), BmnSpillInfo::stop_ts, t0_copy, t0raw, TObject::TClonesArray, BmnFunctionSet::TimePoint2String(), BmnFunctionSet::TimePoint2TS(), BmnFunctionSet::TimeStamp2TP(), and trcIdx2scalerIdx.

Here is the call graph for this function:

◆ ProcessSpillTree() [2/2]

BmnStatus BmnMetadataDecoder::ProcessSpillTree ( )

◆ ProcessStatusBlocks() [1/2]

BmnStatus BmnMetadataDecoder::ProcessStatusBlocks ( )

Definition at line 905 of file BmnMetadataDecoder.cxx.

References BmnSpillInfo::counters, SpillStatus::counters_cnt, fSpillMap, fTrcBitMap, GatherStatusBlocksFromDigis(), i, kBMNERROR, kBMNSUCCESS, metadata, SpillCntrs< counters_count >::ResizeTo(), BmnSpillInfo::start_ts, BmnSpillInfo::stop_ts, BmnFunctionSet::TimePoint2String(), and BmnSpillInfo::vec_spill_status.

Here is the call graph for this function:

◆ ProcessStatusBlocks() [2/2]

BmnStatus BmnMetadataDecoder::ProcessStatusBlocks ( )

◆ ReadSpillStat() [1/2]

BmnStatus BmnMetadataDecoder::ReadSpillStat ( const string & FileName,
const vector< string > & EvtTrNames = { "BT'", "MBT", "CCT1", "nFD"} )
static

canvas for trig counters per spill

canvas for evt counter vs supression factor for spill

Definition at line 1160 of file BmnMetadataDecoder.cxx.

References TTimeStamp::AsString(), can(), BmnSpillInfo::counters, BmnSpillHeader::EventTriggerCnt(), DigiRunHeader::EventTriggerCnt(), BmnMSCMatrix< IntType >::GetCntInRange(), TTree::GetEntries(), TTree::GetEntry(), BmnSpillHeader::GetFirstEventTime(), BmnSpillHeader::GetFirstEventTS(), BmnSpillHeader::GetLastEventTime(), BmnSpillHeader::GetLastEventTS(), BmnSpillHeader::GetNEvents(), DigiRunHeader::GetNEvents(), DigiRunHeader::GetPeriodId(), DigiRunHeader::GetRawT0Counter(), DigiRunHeader::GetRunEndTime(), DigiRunHeader::GetRunId(), DigiRunHeader::GetRunStartTime(), BmnSpillHeader::GetStartTS(), BmnSpillHeader::GetStopTS(), DigiRunHeader::GetTrcBitMap(), DigiRunHeader::GetTrigConfig(), i, kBMNERROR, kBMNSUCCESS, metadata, msc, DigiRunHeader::PrintScalers(), BmnSpillHeader::RawT0Counters(), BmnSpillHeader::Scalers(), TTree::SetBranchAddress(), TTree::SetBranchStatus(), BmnSpillInfo::start_ts, BmnSpillInfo::stop_ts, DigiRunHeader::T0Map(), t0raw, TObject::TClonesArray, BmnFunctionSet::TimePoint2String(), and BmnTrigConfig::TrigChannelConfig().

Referenced by readSpillStat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadSpillStat() [2/2]

BmnStatus BmnMetadataDecoder::ReadSpillStat ( const string & FileName,
const vector< string > & EvtTrNames = { "BT'", "MBT", "CCT1", "nFD"} )
static

◆ SaveData() [1/2]

BmnStatus BmnMetadataDecoder::SaveData ( )

Definition at line 1045 of file BmnMetadataDecoder.cxx.

References TStopwatch::CpuTime(), DBGERR, digiRunHeader, fDigiFileOut, fDigiRunHdrName, fMetadataName, kBMNSUCCESS, metadata, TStopwatch::RealTime(), TStopwatch::Start(), TStopwatch::Stop(), and BmnSpillInfo::vec_spill_status.

Here is the call graph for this function:

◆ SaveData() [2/2]

BmnStatus BmnMetadataDecoder::SaveData ( )

◆ SetBmnSetup() [1/2]

void BmnMetadataDecoder::SetBmnSetup ( BmnSetup v)
inline

Definition at line 60 of file BmnMetadataDecoder.h.

References fBmnSetup, and v.

◆ SetBmnSetup() [2/2]

void BmnMetadataDecoder::SetBmnSetup ( BmnSetup v)
inline

Definition at line 60 of file BmnMetadataDecoder.h.

References fBmnSetup, and v.

◆ SetDecoderConfigFileName() [1/2]

void BmnMetadataDecoder::SetDecoderConfigFileName ( string FileName)
inline

Definition at line 68 of file BmnMetadataDecoder.h.

References fDecoderConfigFileName.

◆ SetDecoderConfigFileName() [2/2]

void BmnMetadataDecoder::SetDecoderConfigFileName ( string FileName)
inline

Definition at line 68 of file BmnMetadataDecoder.h.

References fDecoderConfigFileName.

◆ SetDigiDirectory() [1/2]

BmnStatus BmnMetadataDecoder::SetDigiDirectory ( string fDigiDir)

Definition at line 76 of file BmnMetadataDecoder.cxx.

References TString::Data(), fDigiDir, fDigiFileNames, fPeriodId, fRunId, get_filenames_from_db, UniRawFile::GetFilePath(), UniRun::GetRawFiles(), UniRun::GetRun(), kBMNERROR, kBMNSUCCESS, TString::kNPOS, TString::Last(), and TString::Length().

Here is the call graph for this function:

◆ SetDigiDirectory() [2/2]

BmnStatus BmnMetadataDecoder::SetDigiDirectory ( string fDigiDir)

References fDigiDir.

◆ SetMSCMapping() [1/2]

void BmnMetadataDecoder::SetMSCMapping ( TString map)
inline

Definition at line 64 of file BmnMetadataDecoder.h.

References fMSCMapFileName.

◆ SetMSCMapping() [2/2]

void BmnMetadataDecoder::SetMSCMapping ( TString map)
inline

Definition at line 64 of file BmnMetadataDecoder.h.

References fMSCMapFileName.

◆ SetOutFileName() [1/2]

void BmnMetadataDecoder::SetOutFileName ( string filename)
inline

Definition at line 66 of file BmnMetadataDecoder.h.

References fOutFileName.

◆ SetOutFileName() [2/2]

void BmnMetadataDecoder::SetOutFileName ( string filename)
inline

Definition at line 66 of file BmnMetadataDecoder.h.

References fOutFileName.

◆ SetPeriodId() [1/2]

void BmnMetadataDecoder::SetPeriodId ( UInt_t v)
inline

Definition at line 54 of file BmnMetadataDecoder.h.

References fPeriodId, and v.

◆ SetPeriodId() [2/2]

void BmnMetadataDecoder::SetPeriodId ( UInt_t v)
inline

Definition at line 54 of file BmnMetadataDecoder.h.

References fPeriodId, and v.

◆ SetRawTree() [1/2]

void BmnMetadataDecoder::SetRawTree ( TTree * tree)
inline

Definition at line 48 of file BmnMetadataDecoder.h.

References fRawTree.

◆ SetRawTree() [2/2]

void BmnMetadataDecoder::SetRawTree ( TTree * tree)
inline

Definition at line 48 of file BmnMetadataDecoder.h.

References fRawTree.

◆ SetRunId() [1/2]

void BmnMetadataDecoder::SetRunId ( UInt_t v)
inline

Definition at line 52 of file BmnMetadataDecoder.h.

References fRunId, and v.

◆ SetRunId() [2/2]

void BmnMetadataDecoder::SetRunId ( UInt_t v)
inline

Definition at line 52 of file BmnMetadataDecoder.h.

References fRunId, and v.

◆ SetT0RawStorageFileName() [1/2]

void BmnMetadataDecoder::SetT0RawStorageFileName ( string FileName)
inline

Definition at line 70 of file BmnMetadataDecoder.h.

References fT0RawStorageFileName.

◆ SetT0RawStorageFileName() [2/2]

void BmnMetadataDecoder::SetT0RawStorageFileName ( string FileName)
inline

Definition at line 70 of file BmnMetadataDecoder.h.

References fT0RawStorageFileName.

◆ SetTarDirectory() [1/2]

BmnStatus BmnMetadataDecoder::SetTarDirectory ( string DirName)

Definition at line 132 of file BmnMetadataDecoder.cxx.

References fRunId, fTarDir, fTarFileNames, kBMNERROR, kBMNSUCCESS, and TPRegexp::MatchB().

Here is the call graph for this function:

◆ SetTarDirectory() [2/2]

BmnStatus BmnMetadataDecoder::SetTarDirectory ( string DirName)

◆ SetTarFileNames() [1/2]

void BmnMetadataDecoder::SetTarFileNames ( vector< string > FileNames)
inline

Definition at line 76 of file BmnMetadataDecoder.h.

References fTarFileNames.

◆ SetTarFileNames() [2/2]

void BmnMetadataDecoder::SetTarFileNames ( vector< string > FileNames)
inline

Definition at line 76 of file BmnMetadataDecoder.h.

References fTarFileNames.

Member Data Documentation

◆ conf

pt::ptree BmnMetadataDecoder::conf
private

Definition at line 91 of file BmnMetadataDecoder.h.

Referenced by LoadConfig().

◆ digiRunHeader

unique_ptr< DigiRunHeader > BmnMetadataDecoder::digiRunHeader
private

◆ fBmnSetup

BmnSetup BmnMetadataDecoder::fBmnSetup
private

◆ fCalibFile

TFile * BmnMetadataDecoder::fCalibFile
private

Definition at line 122 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder().

◆ fDecoderConfigFileName

string BmnMetadataDecoder::fDecoderConfigFileName
private

Definition at line 107 of file BmnMetadataDecoder.h.

Referenced by LoadConfig(), and SetDecoderConfigFileName().

◆ fDigiDir

string BmnMetadataDecoder::fDigiDir
private

Definition at line 109 of file BmnMetadataDecoder.h.

Referenced by SetDigiDirectory().

◆ fDigiFileNames

vector< string > BmnMetadataDecoder::fDigiFileNames
private

◆ fDigiFileOut

TFile * BmnMetadataDecoder::fDigiFileOut
private

Definition at line 121 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), ProcessSpillTree(), and SaveData().

◆ fDigiRunHdrName

TString BmnMetadataDecoder::fDigiRunHdrName
private

Definition at line 116 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), GatherStatusBlocksFromDigis(), and SaveData().

◆ fDigiTree

TTree * BmnMetadataDecoder::fDigiTree
private

Definition at line 105 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), and GetDigiTree().

◆ fDigiTreeSpills

TTree * BmnMetadataDecoder::fDigiTreeSpills
private

Definition at line 106 of file BmnMetadataDecoder.h.

Referenced by ProcessSpillTree().

◆ fMetadataName

TString BmnMetadataDecoder::fMetadataName
private

Definition at line 119 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), GatherStatusBlocksFromDigis(), and SaveData().

◆ fMSCMapFileName

TString BmnMetadataDecoder::fMSCMapFileName
private

Definition at line 114 of file BmnMetadataDecoder.h.

Referenced by SetMSCMapping().

◆ fOutFileName

string BmnMetadataDecoder::fOutFileName
private

Definition at line 115 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), ProcessSpillTree(), and SetOutFileName().

◆ fPeriodId

UInt_t BmnMetadataDecoder::fPeriodId
private

◆ fPeriodSetupExt

TString BmnMetadataDecoder::fPeriodSetupExt
private

Definition at line 147 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder().

◆ fRawMetaFileNames

vector< string > BmnMetadataDecoder::fRawMetaFileNames
private

Definition at line 111 of file BmnMetadataDecoder.h.

◆ fRawRunHdrName

TString BmnMetadataDecoder::fRawRunHdrName
private

Definition at line 118 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder().

◆ fRawT0Map

T0ChMap BmnMetadataDecoder::fRawT0Map
private

Definition at line 143 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ fRawTree

TTree * BmnMetadataDecoder::fRawTree
private

Definition at line 102 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), and SetRawTree().

◆ fRawTreeSpillsT0

TTree * BmnMetadataDecoder::fRawTreeSpillsT0
private

Definition at line 104 of file BmnMetadataDecoder.h.

◆ fRunEndTime

SysPoint BmnMetadataDecoder::fRunEndTime
private

◆ fRunId

UInt_t BmnMetadataDecoder::fRunId
private

◆ fRunStartTime

SysPoint BmnMetadataDecoder::fRunStartTime
private

◆ fScalersMap

Name2SerCh BmnMetadataDecoder::fScalersMap
private

Definition at line 141 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ fSpillMap

map< SysPoint, BmnSpillInfo > BmnMetadataDecoder::fSpillMap
private

Definition at line 150 of file BmnMetadataDecoder.h.

Referenced by ProcessSpillTree(), and ProcessStatusBlocks().

◆ fSubName

TString BmnMetadataDecoder::fSubName
private

Definition at line 117 of file BmnMetadataDecoder.h.

◆ fT0RawStorageArr

TClonesArray * BmnMetadataDecoder::fT0RawStorageArr
private

Definition at line 163 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), LoadT0Storage(), and ProcessSpillTree().

◆ fT0RawStorageFile

unique_ptr< TFile > BmnMetadataDecoder::fT0RawStorageFile
private

Definition at line 160 of file BmnMetadataDecoder.h.

Referenced by LoadT0Storage().

◆ fT0RawStorageFileName

string BmnMetadataDecoder::fT0RawStorageFileName
private

Definition at line 108 of file BmnMetadataDecoder.h.

Referenced by LoadT0Storage(), and SetT0RawStorageFileName().

◆ fT0RawStorageTree

unique_ptr< TTree > BmnMetadataDecoder::fT0RawStorageTree
private

Definition at line 161 of file BmnMetadataDecoder.h.

Referenced by LoadT0Storage(), and ProcessSpillTree().

◆ fT0RawStorageTsMap

unique_ptr< std::map< TTimeStamp, int64_t > > BmnMetadataDecoder::fT0RawStorageTsMap
private

Definition at line 162 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), LoadT0Storage(), and ProcessSpillTree().

◆ fTarDir

string BmnMetadataDecoder::fTarDir
private

Definition at line 112 of file BmnMetadataDecoder.h.

Referenced by SetTarDirectory().

◆ fTarFileNames

vector< string > BmnMetadataDecoder::fTarFileNames
private

Definition at line 113 of file BmnMetadataDecoder.h.

Referenced by SetTarDirectory(), and SetTarFileNames().

◆ fTime_ns

Long64_t BmnMetadataDecoder::fTime_ns
private

Definition at line 97 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder().

◆ fTime_s

Long64_t BmnMetadataDecoder::fTime_s
private

Definition at line 96 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder().

◆ fTrcBitMap

NameChMap BmnMetadataDecoder::fTrcBitMap
private

◆ fTrigMapper

unique_ptr< BmnTrigRaw2Digit > BmnMetadataDecoder::fTrigMapper
private

Definition at line 148 of file BmnMetadataDecoder.h.

Referenced by ClearDigiArrays(), and GatherStatusBlocksFromDigis().

◆ get_filenames_from_db

bool BmnMetadataDecoder::get_filenames_from_db = false
private

Definition at line 89 of file BmnMetadataDecoder.h.

Referenced by SetDigiDirectory().

◆ get_run_interval_from_file

bool BmnMetadataDecoder::get_run_interval_from_file = true
private

Definition at line 88 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis().

◆ inEventHeader

BmnEventHeader * BmnMetadataDecoder::inEventHeader
private

◆ metadata

BmnMetadataRaw BmnMetadataDecoder::metadata
private

◆ msc

TClonesArray * BmnMetadataDecoder::msc
private

Definition at line 127 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), ProcessSpillTree(), and ReadSpillStat().

◆ msc_copy

TClonesArray * BmnMetadataDecoder::msc_copy
private

◆ scalers2index_map

map< std::pair< uint32_t, uint16_t >, uint16_t > BmnMetadataDecoder::scalers2index_map
private

Definition at line 154 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ scalers2name_map

SerCh2Name BmnMetadataDecoder::scalers2name_map
private

Definition at line 152 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis().

◆ scalers_index2name_map

vector< string > BmnMetadataDecoder::scalers_index2name_map
private

Definition at line 158 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ scalers_name2index_map

NameChMap BmnMetadataDecoder::scalers_name2index_map
private

Definition at line 157 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ spillHeader

BmnSpillHeader * BmnMetadataDecoder::spillHeader
private

◆ t0_copy

TClonesArray * BmnMetadataDecoder::t0_copy
private

◆ t0raw

TClonesArray * BmnMetadataDecoder::t0raw
private

Definition at line 128 of file BmnMetadataDecoder.h.

Referenced by BmnMetadataDecoder(), ProcessSpillTree(), and ReadSpillStat().

◆ TimeZero

const TTimeStamp BmnMetadataDecoder::TimeZero = TTimeStamp(time_t(0), 0)
private

Definition at line 85 of file BmnMetadataDecoder.h.

◆ trcIdx2scalerIdx

map< uint16_t, uint16_t > BmnMetadataDecoder::trcIdx2scalerIdx
private

Definition at line 155 of file BmnMetadataDecoder.h.

Referenced by GatherStatusBlocksFromDigis(), and ProcessSpillTree().

◆ workTime_cpu

Double_t BmnMetadataDecoder::workTime_cpu = 0.0
private

Definition at line 86 of file BmnMetadataDecoder.h.

◆ workTime_real

Double_t BmnMetadataDecoder::workTime_real = 0.0
private

Definition at line 87 of file BmnMetadataDecoder.h.


The documentation for this class was generated from the following files: