AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::EventList Class Reference

Detailed Description

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 EventListstore () const
 
std::vector< Event >::reverse_iterator rbegin ()
 
std::vector< Event >::reverse_iterator rend ()
 
std::vector< Event >::iterator begin ()
 
std::vector< Event >::iterator end ()
 
Eventoperator[] (const size_t &pos)
 
real_tgetEvent (const size_t &index)
 
const real_tgetEvent (const size_t &index) const
 
std::vector< Event >::const_iterator begin () const
 
std::vector< Event >::const_iterator end () const
 
const Eventoperator[] (const size_t &pos) const
 
EventType eventType () const
 
const Eventat (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>
EventListtransform (functor &&fcn)
 
template<typename functor>
void filter (functor &&fcn)
 
template<typename functor>
unsigned count (functor &&fcn) const
 

Member Typedef Documentation

◆ value_type

Definition at line 39 of file EventList.h.

Constructor & Destructor Documentation

◆ EventList() [1/6]

AmpGen::EventList::EventList ( )
default

◆ EventList() [2/6]

AmpGen::EventList::EventList ( const EventType & type)

◆ EventList() [3/6]

template<class ... ARGS>
AmpGen::EventList::EventList ( const std::string & fname,
const EventType & evtType,
const ARGS &... args )
inline

Definition at line 42 of file EventList.h.

◆ EventList() [4/6]

template<class ... ARGS>
AmpGen::EventList::EventList ( const std::string & fname,
const ARGS &... args )
inline

Definition at line 46 of file EventList.h.

◆ EventList() [5/6]

template<class ... ARGS>
AmpGen::EventList::EventList ( const std::vector< std::string > & fname,
const EventType & evtType,
const ARGS &... args )
inline

Definition at line 50 of file EventList.h.

◆ EventList() [6/6]

template<class ... ARGS>
AmpGen::EventList::EventList ( TTree * tree,
const EventType & evtType,
const ARGS &... args )
inline

Definition at line 54 of file EventList.h.

Member Function Documentation

◆ add()

void AmpGen::EventList::add ( const EventList & evts)

◆ aligned_size()

size_t AmpGen::EventList::aligned_size ( ) const
inline

Definition at line 72 of file EventList.h.

◆ at()

const Event & AmpGen::EventList::at ( const size_t & pos) const
inline

Definition at line 70 of file EventList.h.

◆ begin() [1/2]

std::vector< Event >::iterator AmpGen::EventList::begin ( )
inline

Definition at line 61 of file EventList.h.

◆ begin() [2/2]

std::vector< Event >::const_iterator AmpGen::EventList::begin ( ) const
inline

Definition at line 66 of file EventList.h.

◆ block()

double * AmpGen::EventList::block ( const unsigned pos)
inline

Definition at line 75 of file EventList.h.

◆ clear()

void AmpGen::EventList::clear ( )

◆ count()

template<typename functor>
unsigned AmpGen::EventList::count ( functor && fcn) const
inline

Definition at line 155 of file EventList.h.

◆ emplace_back()

void AmpGen::EventList::emplace_back ( const Event & evt)

◆ end() [1/2]

std::vector< Event >::iterator AmpGen::EventList::end ( )
inline

Definition at line 62 of file EventList.h.

◆ end() [2/2]

std::vector< Event >::const_iterator AmpGen::EventList::end ( ) const
inline

Definition at line 67 of file EventList.h.

◆ erase()

void AmpGen::EventList::erase ( const std::vector< Event >::iterator & begin,
const std::vector< Event >::iterator & end )

◆ eventType()

EventType AmpGen::EventList::eventType ( ) const
inline

Definition at line 69 of file EventList.h.

◆ extend()

void AmpGen::EventList::extend ( const std::string & key,
unsigned pos )
inline

Definition at line 93 of file EventList.h.

◆ filter()

template<typename functor>
void AmpGen::EventList::filter ( functor && fcn)
inline

Definition at line 148 of file EventList.h.

◆ genPDF()

real_t AmpGen::EventList::genPDF ( const size_t & pos) const
inline

Definition at line 77 of file EventList.h.

◆ getEvent() [1/2]

real_t * AmpGen::EventList::getEvent ( const size_t & index)
inline

Definition at line 64 of file EventList.h.

◆ getEvent() [2/2]

const real_t * AmpGen::EventList::getEvent ( const size_t & index) const
inline

Definition at line 65 of file EventList.h.

◆ integral()

double AmpGen::EventList::integral ( ) const

◆ key()

unsigned AmpGen::EventList::key ( const std::string & key) const
inline

Definition at line 78 of file EventList.h.

◆ loadFromFile()

void AmpGen::EventList::loadFromFile ( const std::string & fname,
const ArgumentPack & args )

◆ loadFromTree()

void AmpGen::EventList::loadFromTree ( TTree * tree,
const ArgumentPack & args )

◆ makeDefaultProjections()

template<class... ARGS>
std::vector< TH1D * > AmpGen::EventList::makeDefaultProjections ( const ARGS &... args)
inline

Definition at line 115 of file EventList.h.

◆ makeProjection() [1/4]

template<typename... ARGS, typename = std::enable_if_t< ! std::is_same<zeroType<ARGS...>, ArgumentPack>::value >>
TH1D * AmpGen::EventList::makeProjection ( const Projection & projection,
const ARGS &... args ) const
inline

Definition at line 130 of file EventList.h.

◆ makeProjection() [2/4]

TH1D * AmpGen::EventList::makeProjection ( const Projection & projection,
const ArgumentPack & args = ArgumentPack() ) const

◆ makeProjection() [3/4]

template<typename... ARGS, typename = std::enable_if_t< ! std::is_same<zeroType<ARGS...>, ArgumentPack>::value >>
TH2D * AmpGen::EventList::makeProjection ( const Projection2D & projection,
const ARGS &... args )
inline

Definition at line 137 of file EventList.h.

◆ makeProjection() [4/4]

TH2D * AmpGen::EventList::makeProjection ( const Projection2D & projection,
const ArgumentPack & args = ArgumentPack() ) const

◆ makeProjections() [1/2]

template<typename... ARGS>
std::vector< TH1D * > AmpGen::EventList::makeProjections ( const std::vector< Projection > & projections,
const ARGS &... args )
inline

Definition at line 123 of file EventList.h.

◆ makeProjections() [2/2]

std::vector< TH1D * > AmpGen::EventList::makeProjections ( const std::vector< Projection > & projections,
const ArgumentPack & args )

◆ nBlocks()

size_t AmpGen::EventList::nBlocks ( ) const
inline

Definition at line 73 of file EventList.h.

◆ operator[]() [1/2]

Event & AmpGen::EventList::operator[] ( const size_t & pos)
inline

Definition at line 63 of file EventList.h.

◆ operator[]() [2/2]

const Event & AmpGen::EventList::operator[] ( const size_t & pos) const
inline

Definition at line 68 of file EventList.h.

◆ push_back()

void AmpGen::EventList::push_back ( const Event & evt)

◆ rbegin()

std::vector< Event >::reverse_iterator AmpGen::EventList::rbegin ( )
inline

Definition at line 59 of file EventList.h.

◆ rend()

std::vector< Event >::reverse_iterator AmpGen::EventList::rend ( )
inline

Definition at line 60 of file EventList.h.

◆ reserve()

void AmpGen::EventList::reserve ( const size_t & size)

◆ resize()

void AmpGen::EventList::resize ( const size_t & size)

◆ setEventType()

void AmpGen::EventList::setEventType ( const EventType & type)
inline

Definition at line 88 of file EventList.h.

◆ setGenPDF()

void AmpGen::EventList::setGenPDF ( const unsigned int & pos,
const double & g )
inline

Definition at line 103 of file EventList.h.

◆ setWeight()

void AmpGen::EventList::setWeight ( const unsigned int & pos,
const double & w,
const double & g = +1 )
inline

Definition at line 98 of file EventList.h.

◆ size()

size_t AmpGen::EventList::size ( ) const
inline

Definition at line 71 of file EventList.h.

◆ store()

const EventList & AmpGen::EventList::store ( ) const
inline

Definition at line 58 of file EventList.h.

◆ transform()

template<typename functor>
EventList & AmpGen::EventList::transform ( functor && fcn)
inline

Definition at line 142 of file EventList.h.

◆ tree()

TTree * AmpGen::EventList::tree ( const std::string & name,
const std::vector< std::string > & extraBranches = {} ) const

◆ weight()

real_t AmpGen::EventList::weight ( const size_t & pos) const
inline

Definition at line 76 of file EventList.h.


The documentation for this class was generated from the following file: