9 ,
const std::string& ntpName)
12 , _dL(fname,1,ntpName)
13 , _listExhausted(false)
16 , _doBootstrap(
"FromFileGenerator::doBootstrap",0)
18 cout <<
"FromFileGenerator::FromFileGenerator(" << fname <<
")" << endl;
19 std::cout <<
"Got Intergrator events " <<
_dL.
size() << std::endl;
31 ,
const std::string& opt
32 ,
const std::string& ntpName
35 , _opt( (
"" != opt ? opt : ( 0 == addThisWhenFileEmpty ?
"READ" :
"UPDATE") ) )
36 , _dL(fname, 1, ntpName, _opt)
37 , _listExhausted(false)
39 , _gen(addThisWhenFileEmpty)
40 , _doBootstrap(
"FromFileGenerator::doBootstrap",0)
42 cout <<
" FromFileGenerator::FromFileGenerator(" << fname
43 <<
", " << addThisWhenFileEmpty
44 <<
", " << opt <<
")" << endl;
46 std::cout <<
"Got Intergrator events " <<
_dL.
size() << std::endl;
61 if(0 == evtPtr)
return evtPtr;
69 cout <<
"FromFileGenerator::newEventFromGenerator():" 70 <<
" saving event to list" 71 <<
" opt = " <<
_opt << endl;
99 if(0 ==
_gen)
return true;
virtual void setMothers3Momentum(const TVector3 &mp3)
MINT::IEventGenerator< IDalitzEvent > * _gen
virtual bool exhausted() const =0
std::vector< int > _bootstrap_indices
virtual bool exhausted() const
FromFileGenerator(const std::string &fname="integrationEvents.root", const std::string &ntpName="DalitzEventList")
virtual bool Add(const DalitzEvent &evt)
bool mothers3MomentumIsSet() const
virtual MINT::counted_ptr< IDalitzEvent > newEventFromGenerator()
virtual unsigned int size() const
MINT::NamedParameter< int > _doBootstrap
virtual counted_ptr< RETURN_TYPE > newEvent()=0
DiskResidentEventList & getEventList()
virtual bool ensureFreshEvents()=0
virtual bool ensureFreshEvents()
virtual MINT::counted_ptr< IDalitzEvent > newDalitzEvent()
TVector3 mothers3Momentum() const
DalitzEvent getEvent(unsigned int i) const
virtual MINT::counted_ptr< IDalitzEvent > newEvent()
DiskResidentEventList _dL