![]() |
AmpGen 2.1
|
Definition at line 31 of file EventList.h.
Public Types | |
typedef Event | value_type |
Public Member Functions | |
EventList ()=default | |
EventList (const EventType &type) | |
template<class ... ARGS> | |
EventList (const std::string &fname, const EventType &evtType, const ARGS &... args) | |
template<class ... ARGS> | |
EventList (const std::string &fname, const ARGS &... args) | |
template<class ... ARGS> | |
EventList (const std::vector< std::string > &fname, const EventType &evtType, const ARGS &... args) | |
template<class ... ARGS> | |
EventList (TTree *tree, const EventType &evtType, const ARGS &... args) | |
const EventList & | store () const |
std::vector< Event >::reverse_iterator | rbegin () |
std::vector< Event >::reverse_iterator | rend () |
std::vector< Event >::iterator | begin () |
std::vector< Event >::iterator | end () |
Event & | operator[] (const size_t &pos) |
real_t * | getEvent (const size_t &index) |
const real_t * | getEvent (const size_t &index) const |
std::vector< Event >::const_iterator | begin () const |
std::vector< Event >::const_iterator | end () const |
const Event & | operator[] (const size_t &pos) const |
EventType | eventType () const |
const Event & | at (const size_t &pos) const |
size_t | size () const |
size_t | aligned_size () const |
size_t | nBlocks () const |
double | integral () const |
double * | block (const unsigned pos) |
real_t | weight (const size_t &pos) const |
real_t | genPDF (const size_t &pos) const |
unsigned | key (const std::string &key) const |
void | reserve (const size_t &size) |
void | resize (const size_t &size) |
void | push_back (const Event &evt) |
void | emplace_back (const Event &evt) |
void | setEventType (const EventType &type) |
void | add (const EventList &evts) |
void | loadFromTree (TTree *tree, const ArgumentPack &args) |
void | loadFromFile (const std::string &fname, const ArgumentPack &args) |
void | clear () |
void | extend (const std::string &key, unsigned pos) |
void | setWeight (const unsigned int &pos, const double &w, const double &g=+1) |
void | setGenPDF (const unsigned int &pos, const double &g) |
void | erase (const std::vector< Event >::iterator &begin, const std::vector< Event >::iterator &end) |
TTree * | tree (const std::string &name, const std::vector< std::string > &extraBranches={}) const |
TH1D * | makeProjection (const Projection &projection, const ArgumentPack &args=ArgumentPack()) const |
TH2D * | makeProjection (const Projection2D &projection, const ArgumentPack &args=ArgumentPack()) const |
std::vector< TH1D * > | makeProjections (const std::vector< Projection > &projections, const ArgumentPack &args) |
template<class... ARGS> | |
std::vector< TH1D * > | makeDefaultProjections (const ARGS &... args) |
template<typename... ARGS> | |
std::vector< TH1D * > | makeProjections (const std::vector< Projection > &projections, const ARGS &... args) |
template<typename... ARGS, typename = std::enable_if_t< ! std::is_same<zeroType<ARGS...>, ArgumentPack>::value >> | |
TH1D * | makeProjection (const Projection &projection, const ARGS &... args) const |
template<typename... ARGS, typename = std::enable_if_t< ! std::is_same<zeroType<ARGS...>, ArgumentPack>::value >> | |
TH2D * | makeProjection (const Projection2D &projection, const ARGS &... args) |
template<typename functor> | |
EventList & | transform (functor &&fcn) |
template<typename functor> | |
void | filter (functor &&fcn) |
template<typename functor> | |
unsigned | count (functor &&fcn) const |
typedef Event AmpGen::EventList::value_type |
Definition at line 39 of file EventList.h.
|
default |
AmpGen::EventList::EventList | ( | const EventType & | type | ) |
|
inline |
Definition at line 42 of file EventList.h.
|
inline |
Definition at line 46 of file EventList.h.
|
inline |
Definition at line 50 of file EventList.h.
|
inline |
Definition at line 54 of file EventList.h.
void AmpGen::EventList::add | ( | const EventList & | evts | ) |
|
inline |
Definition at line 72 of file EventList.h.
|
inline |
Definition at line 70 of file EventList.h.
|
inline |
Definition at line 61 of file EventList.h.
|
inline |
Definition at line 66 of file EventList.h.
|
inline |
Definition at line 75 of file EventList.h.
void AmpGen::EventList::clear | ( | ) |
|
inline |
Definition at line 155 of file EventList.h.
void AmpGen::EventList::emplace_back | ( | const Event & | evt | ) |
|
inline |
Definition at line 62 of file EventList.h.
|
inline |
Definition at line 67 of file EventList.h.
void AmpGen::EventList::erase | ( | const std::vector< Event >::iterator & | begin, |
const std::vector< Event >::iterator & | end ) |
|
inline |
Definition at line 69 of file EventList.h.
|
inline |
Definition at line 93 of file EventList.h.
|
inline |
Definition at line 148 of file EventList.h.
|
inline |
Definition at line 77 of file EventList.h.
|
inline |
Definition at line 64 of file EventList.h.
|
inline |
Definition at line 65 of file EventList.h.
double AmpGen::EventList::integral | ( | ) | const |
|
inline |
Definition at line 78 of file EventList.h.
void AmpGen::EventList::loadFromFile | ( | const std::string & | fname, |
const ArgumentPack & | args ) |
void AmpGen::EventList::loadFromTree | ( | TTree * | tree, |
const ArgumentPack & | args ) |
|
inline |
Definition at line 115 of file EventList.h.
|
inline |
Definition at line 130 of file EventList.h.
TH1D * AmpGen::EventList::makeProjection | ( | const Projection & | projection, |
const ArgumentPack & | args = ArgumentPack() ) const |
|
inline |
Definition at line 137 of file EventList.h.
TH2D * AmpGen::EventList::makeProjection | ( | const Projection2D & | projection, |
const ArgumentPack & | args = ArgumentPack() ) const |
|
inline |
Definition at line 123 of file EventList.h.
std::vector< TH1D * > AmpGen::EventList::makeProjections | ( | const std::vector< Projection > & | projections, |
const ArgumentPack & | args ) |
|
inline |
Definition at line 73 of file EventList.h.
|
inline |
Definition at line 63 of file EventList.h.
|
inline |
Definition at line 68 of file EventList.h.
void AmpGen::EventList::push_back | ( | const Event & | evt | ) |
|
inline |
Definition at line 59 of file EventList.h.
|
inline |
Definition at line 60 of file EventList.h.
void AmpGen::EventList::reserve | ( | const size_t & | size | ) |
void AmpGen::EventList::resize | ( | const size_t & | size | ) |
|
inline |
Definition at line 88 of file EventList.h.
|
inline |
Definition at line 103 of file EventList.h.
|
inline |
Definition at line 98 of file EventList.h.
|
inline |
Definition at line 71 of file EventList.h.
|
inline |
Definition at line 58 of file EventList.h.
|
inline |
Definition at line 142 of file EventList.h.
TTree * AmpGen::EventList::tree | ( | const std::string & | name, |
const std::vector< std::string > & | extraBranches = {} ) const |
|
inline |
Definition at line 76 of file EventList.h.