16 #ifndef __FAIRROOT__FairMixedSource__
17 #define __FAIRROOT__FairMixedSource__
41 FairMixedSource(TFile* f,
const char* Title =
"InputRootFile", UInt_t identifier = 0);
42 FairMixedSource(
const TString* RootFileName,
const char* Title =
"InputRootFile", UInt_t identifier = 0);
45 const char* Title =
"InputRootFile",
46 UInt_t identifier = 0);
118 void SetBeamTime(Double_t beamTime, Double_t gapTime);
154 std::list<TString> fFriendFileList;
155 std::list<TString> fInputChainList;
156 std::map<TString, TChain*> fFriendTypeList;
157 std::map<TString, std::list<TString>*> fCheckInputBranches;
158 std::list<TString> fInputLevel;
159 std::map<TString, std::multimap<TString, TArrayI>> fRunIdInfoAll;
161 TObjArray* fListFolder;
169 UInt_t fSourceIdentifier;
173 Bool_t IsInitialized;
188 Bool_t fEventTimeInMCHeader;
193 Bool_t fEvtHeaderIsNew;
196 UInt_t fCurrentEntryNo;
198 UInt_t fTimeforEntryNo;
200 UInt_t fNoOfBGEntries;
202 std::map<UInt_t, UInt_t> fCurrentEntry;
205 Double_t fEventTimeMin;
207 Double_t fEventTimeMax;
215 Double_t fEventMeanTime;
220 std::map<UInt_t, Double_t> fSignalBGN;
227 UInt_t fActualSignalIdentifier;
231 std::list<TString>* fSignalChainList;
233 TChain* fBackgroundChain;
234 std::map<UInt_t, TChain*> fSignalTypeList;
243 UInt_t fRunIdFromSG_identifier;
246 Bool_t SpecifyRunId();
void FillEventHeader(FairEventHeader *feh)
list of container factories
Bool_t OpenBackgroundChain()
FairMixedSource(TFile *f, const char *Title="InputRootFile", UInt_t identifier=0)
TFolder * GetBranchDescriptionFolder()
void ReadBKEvent(UInt_t i=0)
virtual Bool_t ActivateObjectAny(void **, const std::type_info &, const char *)
void SetEvtHeaderNew(Bool_t Status)
void UseRunIdfromSG(UInt_t identifier=1)
void AddBackgroundFile(TString name)
virtual Source_Type GetSourceType()
virtual Int_t CheckMaxEventNo(Int_t EvtEnd=0)
virtual Bool_t InitUnpackers()
virtual void SetParUnpackers()
const TFile * GetRootFile()
void SetFileHeader(FairFileHeader *f)
virtual Bool_t ReInitUnpackers()
void SetEventTimeInterval(Double_t min, Double_t max)
virtual ~FairMixedSource()
TChain * GetSignalChainNo(UInt_t i)
virtual Bool_t ActivateObject(TObject **obj, const char *BrName)
void ReadBranchEvent(const char *BrName)
ClassDef(FairMixedSource, 0)
void AddSignalFile(TString name, UInt_t identifier)
void SetBackgroundFile(TString name)
TObjArray * GetListOfFolders()
void BGWindowWidthNo(UInt_t background, UInt_t Signalid)
void SetSignalFile(TString name, UInt_t identifier)
void BGWindowWidthTime(Double_t background, UInt_t Signalid)
void SetBeamTime(Double_t beamTime, Double_t gapTime)
void SetEventMeanTime(Double_t mean)
Double_t GetDeltaEventTime()
Int_t ReadEvent(UInt_t i=0)
Bool_t CompareBranchList(TFile *fileHandle, TString inputLevel)