1#ifndef BMNMSCRAW2DIGIT_H
2#define BMNMSCRAW2DIGIT_H
12#include <TClonesArray.h>
52 TTree* spillTree =
nullptr,
53 TTree* digiSpillTree =
nullptr);
79 fRawSpillTree->GetEntry(iSpill);
86 Bool_t isValidSpillLog;
89 map<TDatime, vector<Int_t>> spill_map;
90 UInt_t iSpillMap = 0u;
101 TString fMapFileName;
103 unordered_map<UInt_t, vector<uint64_t>> fBoardSums;
105 TTree* fRawSpillTree =
nullptr;
106 TTree* fDigSpillTree =
nullptr;
110 ULong64_t fBTnBusy = 0u;
111 ULong64_t fAccepted = 0u;
112 ULong64_t fProtection = 0u;
114 Double_t fBTAccepted = 0.0;
BmnStatus SumEvent7(TClonesArray *msc, BmnEventHeader *hdr, BmnSpillHeader *sh, UInt_t &nPedEvBySpill)
BmnStatus ParseTxtSpillLog(TString LogName, TString SchemeName)
BmnStatus SumEvent(TClonesArray *msc, BmnEventHeader *hdr, BmnSpillHeader *sh, UInt_t &nPedEvBySpill)
virtual ~BmnMscRaw2Digit()
BmnStatus SumEventTemp(TClonesArray *msc)
void FillRunHeader(DigiRunHeader *rh)
void SetRawSpillTree(TTree *tree)
BmnMscRaw2Digit(Int_t period, Int_t run, TString mappingFile, TTree *spillTree=nullptr, TTree *digiSpillTree=nullptr)
TTree * GetDigSpillTree()
TTree * GetRawSpillTree()
BmnStatus ReadChannelMap(TString mappingFile)
void SetDigSpillTree(TTree *tree)
Define enumerations used in tracking.
UShort_t BTnBusy
(BeamTrigger & !Busy)
UShort_t BT
BeamTrigger index.
UShort_t TrignBusy
Trigger * !Busy.
UShort_t TriggerProtection
UShort_t BC1BP
BC1 (before protection)
UShort_t BC1H
BC1 (high threshold)