44 :
FairTask(
"FairEventBuilderManager", 0)
60 cout <<
"FairEventBuilderManager::Exec() begin" << endl;
66 cout <<
"++ CAN CREATE EVENTS THAT ARE SMALLER THAN " << maxEventTimeAllowed <<
" ns" << endl;
83 Double_t maxEventTimeAllowed = 10.e6;
86 cout <<
"***** " <<
fEventBuilders[ieb]->GetName() <<
" *****" << endl;
89 cout <<
" there are " <<
fPossibleEvents[ieb].size() <<
" possible events" << endl;
91 std::vector<std::pair<double, FairRecoEventHeader*>> tempBuilder =
fEventBuilders[ieb]->FindEvents();
93 cout <<
" event buffer " <<
fEventBuilders[ieb]->GetName() <<
" found " << tempBuilder.size() <<
" events"
96 for (UInt_t ipair = 0; ipair < tempBuilder.size(); ipair++) {
103 cout <<
" and now " <<
fPossibleEvents[ieb].size() <<
" possible events" << endl;
110 return maxEventTimeAllowed;
130 std::vector<std::pair<double, FairRecoEventHeader*>> tcArray;
133 cout <<
"*** FairEventBuilderManager. Registered " << eventBuilder->GetName() << endl;
136 void FairEventBuilderManager::SetParContainers()
141 Fatal(
"SetParContainers",
"No analysis run");
145 Fatal(
"SetParContainers",
"No runtime database");
155 Fatal(
"Init",
"No FairRootManager");
158 cout <<
"*** FairEventBuilderManager. " <<
fEventBuilders.size() <<
" event builders registered." << endl;
161 fEventBuilders[ieb]->SetIdentifier(TMath::Power(2, static_cast<Int_t>(ieb)));
170 void FairEventBuilderManager::Finish()
174 cout <<
"==================== " << fName.Data() <<
" : Summary ========================" << endl;
178 cout <<
"=====================================================================" << endl;
list of container factories
virtual void Exec(Option_t *opt)
virtual void AddEventBuilder(FairEventBuilder *eventBuilder)
virtual ~FairEventBuilderManager()
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
FairEventBuilderManager()
std::vector< std::vector< std::pair< double, FairRecoEventHeader * > > > fPossibleEvents
static FairRunAna * Instance()
FairRuntimeDb * GetRuntimeDb(void)
virtual Double_t FillEventVectors()
std::vector< FairEventBuilder * > fEventBuilders
virtual void CreateAndFillEvent(FairRecoEventHeader *recoEvent)
virtual void AnalyzeAndExtractEvents(Double_t maxEventTimeAllowed)=0