1 #ifndef ERDigibuilder_H 2 #define ERDigibuilder_H 15 #include "FairSource.h" 17 #include "SetupConfiguration.h" 27 virtual Bool_t Init();
28 virtual Int_t ReadEvent(UInt_t=0);
31 virtual Source_Type GetSourceType() {
return kFILE; }
32 virtual void SetParUnpackers() {}
33 virtual Bool_t InitUnpackers();
34 virtual Bool_t ReInitUnpackers() {
return kTRUE; }
35 void AddUnpack(
ERUnpack* unpack){ unpacks_[unpack->DetectorName()].reset(unpack); }
36 void AddFile(
const TString& path);
37 void SetUserCut(
const TCut& cut,
bool hold_events_count =
true);
39 bool LoadEvent(uint event_number);
41 static uint EventNumber();
42 bool UserCutIsDefined()
const;
44 static void CheckEventHeader();
45 void ConnectEventCommon();
46 TChain input_chain_of_events_;
47 std::map<TString, std::unique_ptr<ERUnpack>> unpacks_;
51 EventCommon* common_part_of_event_ =
nullptr;
53 bool hold_events_count_ =
true;
54 TH1I* events_for_processing_ =
nullptr;
SetupConfiguration * setup_configuration_