20 string newselector = recomodule;
21 vector<string>::iterator iter;
24 if ( *iter == newselector)
26 cout <<
"Event Selector " << newselector <<
" allready in list" << endl;
40 int iret =
Write(startNode);
48 if (what ==
"ALL" || what ==
"EVENTSELECTOR")
53 cout <<
ThisName <<
": Reco Module " << *iter <<
" select Events" << endl;
58 if (what ==
"ALL" || what ==
"EVENTSWRITTEN")
71 const unsigned index = *iter;
72 iret += (*retcodes)[index];
virtual int DoNotWriteEvent(std::vector< int > *retcodes) const
decides if event is to be written or not
std::vector< unsigned > recomoduleindex
vector of associated module indexes
virtual int AddEventSelector(const std::string &recomodule)
add an event selector to the outputmanager. event will get written only if all event selectors proces...
int WriteGeneric(PHCompositeNode *startNode)
Common method, called before calling virtual Write.
virtual size_t EventsWritten() const
get number of Events
virtual void Print(const std::string &what="ALL") const
print method (dump event selector)
Fun4AllOutputManager(const std::string &myname)
size_t nEvents
Number of Events.
virtual int Write(PHCompositeNode *)
write starting from given node
std::vector< std::string > EventSelectors
vector of event selectors modules