20 #include "FairEventHeader.h"
23 #include "FairRecoEventHeader.h"
25 #include "FairRootManager.h"
26 #include "FairRunAna.h"
27 #include "FairRuntimeDb.h"
29 #include "TClonesArray.h"
43 using std::setprecision;
85 cout << endl <<
"======== PndEventBuilderOnMCEvents::FindEvents(Event = " <<
fTNofEvents <<
" ) ====================" << endl;
93 std::vector<std::pair<double, FairRecoEventHeader*> > result;
94 std::pair<double,FairRecoEventHeader*> singleResult;
96 FairRecoEventHeader* recoEvent =
new FairRecoEventHeader();
97 recoEvent->SetEventTime(
fEventHeader->GetEventTime(),0.001);
98 recoEvent->SetIdentifier(GetIdentifier());
101 singleResult.first = recoEvent->GetEventTime();
102 singleResult.second = recoEvent;
104 result.push_back(singleResult);
122 std::vector<std::pair<double, FairRecoEventHeader*> >
PndEventBuilderOnMCEvents::Modify(std::pair<double, FairRecoEventHeader*> oldData, std::pair<double, FairRecoEventHeader*> newData)
124 std::vector<std::pair<double, FairRecoEventHeader*> > result;
125 result.push_back(newData);
164 FairRunAna*
run = FairRunAna::Instance();
165 if ( ! run ) Fatal(
"SetParContainers",
"No analysis run");
167 FairRuntimeDb* db = run->GetRuntimeDb();
168 if ( ! db ) Fatal(
"SetParContainers",
"No runtime database");
176 FairRootManager* ioman = FairRootManager::Instance();
177 if ( ! ioman ) Fatal(
"Init",
"No FairRootManager");
179 fEventHeader = (FairEventHeader*) ioman->GetObject(
"EventHeader.");
203 cout <<
"-------------------- " << GetBuilderName() <<
" : Summary -----------------------" << endl;
204 cout <<
" Events: " << setw(10) <<
fTNofEvents << endl;
206 cout <<
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . " << endl;
207 cout <<
" >>> EB >>> all time = " <<
fExecTime <<
"s" << endl;
208 cout <<
"---------------------------------------------------------------------" << endl;
virtual void StoreEventData(FairRecoEventHeader *recoEvent)
void EraseDataFromDataMap(FairTimeStamp *data)
std::vector< std::pair< double, FairRecoEventHeader * > > FindEvents()
void AddNewDataToTClonesArray(FairTimeStamp *data)
FairEventHeader * fEventHeader
virtual ~PndEventBuilderOnMCEvents()
void FillDataMap(FairTimeStamp *data, double activeTime)
virtual void SetParContainers()
PndEventBuilderOnMCEvents()
double FindTimeForData(FairTimeStamp *data)
std::vector< std::pair< double, FairRecoEventHeader * > > Modify(std::pair< double, FairRecoEventHeader * > oldData, std::pair< double, FairRecoEventHeader * > newData)