#include <FromFileGenerator.h>
Definition at line 16 of file FromFileGenerator.h.
◆ FromFileGenerator() [1/2]
FromFileGenerator::FromFileGenerator |
( |
const std::string & |
fname = "integrationEvents.root" , |
|
|
const std::string & |
ntpName = "DalitzEventList" |
|
) |
| |
Definition at line 8 of file FromFileGenerator.cpp.
12 ,
_dL(fname,1,ntpName)
18 cout <<
"FromFileGenerator::FromFileGenerator(" << fname <<
")" << endl;
19 std::cout <<
"Got Intergrator events " <<
_dL.
size() << std::endl;
MINT::IEventGenerator< IDalitzEvent > * _gen
std::vector< int > _bootstrap_indices
virtual unsigned int size() const
MINT::NamedParameter< int > _doBootstrap
BaseGenerator(TRandom *rnd=gRandom)
DiskResidentEventList _dL
◆ FromFileGenerator() [2/2]
FromFileGenerator::FromFileGenerator |
( |
const std::string & |
fname, |
|
|
MINT::IEventGenerator< IDalitzEvent > * |
addThisWhenFileEmpty, |
|
|
const std::string & |
opt = "" , |
|
|
const std::string & |
ntpName = "DalitzEventList" |
|
) |
| |
Definition at line 28 of file FromFileGenerator.cpp.
35 ,
_opt( (
"" != opt ? opt : ( 0 == addThisWhenFileEmpty ?
"READ" :
"UPDATE") ) )
39 ,
_gen(addThisWhenFileEmpty)
42 cout <<
" FromFileGenerator::FromFileGenerator(" << fname
43 <<
", " << addThisWhenFileEmpty
44 <<
", " << opt <<
")" << endl;
46 std::cout <<
"Got Intergrator events " <<
_dL.
size() << std::endl;
MINT::IEventGenerator< IDalitzEvent > * _gen
std::vector< int > _bootstrap_indices
virtual unsigned int size() const
MINT::NamedParameter< int > _doBootstrap
BaseGenerator(TRandom *rnd=gRandom)
DiskResidentEventList _dL
◆ ~FromFileGenerator()
virtual FromFileGenerator::~FromFileGenerator |
( |
| ) |
|
|
inlinevirtual |
◆ closeFile()
bool FromFileGenerator::closeFile |
( |
| ) |
|
|
virtual |
◆ ensureFreshEvents()
bool FromFileGenerator::ensureFreshEvents |
( |
| ) |
|
|
virtual |
◆ exhausted()
bool FromFileGenerator::exhausted |
( |
| ) |
const |
|
virtual |
◆ getEventList() [1/2]
◆ getEventList() [2/2]
◆ newDalitzEvent()
Definition at line 78 of file FromFileGenerator.cpp.
std::vector< int > _bootstrap_indices
bool mothers3MomentumIsSet() const
virtual MINT::counted_ptr< IDalitzEvent > newEventFromGenerator()
virtual unsigned int size() const
MINT::NamedParameter< int > _doBootstrap
TVector3 mothers3Momentum() const
DalitzEvent getEvent(unsigned int i) const
DiskResidentEventList _dL
◆ newEvent()
◆ newEventFromGenerator()
Definition at line 55 of file FromFileGenerator.cpp.
61 if(0 == evtPtr)
return evtPtr;
69 cout <<
"FromFileGenerator::newEventFromGenerator():" 70 <<
" saving event to list" 71 <<
" opt = " <<
_opt << endl;
MINT::IEventGenerator< IDalitzEvent > * _gen
virtual bool Add(const DalitzEvent &evt)
bool mothers3MomentumIsSet() const
virtual counted_ptr< RETURN_TYPE > newEvent()=0
TVector3 mothers3Momentum() const
DiskResidentEventList _dL
◆ saveFile()
bool FromFileGenerator::saveFile |
( |
| ) |
|
|
virtual |
◆ _bootstrap_indices
std::vector<int> FromFileGenerator::_bootstrap_indices |
|
protected |
◆ _dL
◆ _doBootstrap
◆ _gen
◆ _listExhausted
bool FromFileGenerator::_listExhausted |
|
protected |
◆ _listIndex
unsigned int FromFileGenerator::_listIndex |
|
protected |
◆ _opt
std::string FromFileGenerator::_opt |
|
protected |
The documentation for this class was generated from the following files: