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

Detailed Description

Encapsulates the final state particles of a single event, or candidate in the language of proton-proton collisions. Typically will store (i) the event kinematics, i.e. four-momenta, (ii). the weight of the given event/candidate, (iii). The probability that the event was generated with, in the case of a simulated event

Definition at line 18 of file Event.h.

Public Member Functions

 Event ()=default
 
 Event (const unsigned &N)
 
 Event (const real_t *data, const unsigned &N)
 
void set (const unsigned &i, const std::vector< real_t > &p)
 
void set (const unsigned &i, const real_t *p)
 
void set (const real_t *evt)
 
void set (const unsigned &i, const real_t &p)
 
void swap (const unsigned int &i, const unsigned int &j)
 
unsigned size () const
 
real_tpWeight ()
 
real_tpGenPdf ()
 
const real_taddress (const unsigned &ref=0) const
 
real_taddress (const unsigned &ref=0)
 
real_t weight () const
 
real_t genPdf () const
 
real_t operator[] (const unsigned &i) const
 
real_toperator[] (const unsigned &i)
 
 operator const real_t * () const
 
 operator real_t * ()
 
void setWeight (const real_t &weight)
 
void setGenPdf (const real_t &genPdf)
 
void extendEvent (const real_t &value)
 
void print () const
 
void setIndex (const unsigned &index)
 
unsigned index () const
 
real_t s (const unsigned &index) const
 
real_t s (const unsigned &index1, const unsigned &index2) const
 
real_t s (const unsigned &index1, const unsigned &index2, const unsigned &index3) const
 
real_t s (const std::vector< unsigned > &indices) const
 
void reorder (const std::vector< unsigned > &addresses)
 
const std::vector< real_t > & data () const
 

Constructor & Destructor Documentation

◆ Event() [1/3]

AmpGen::Event::Event ( )
default

◆ Event() [2/3]

AmpGen::Event::Event ( const unsigned & N)

◆ Event() [3/3]

AmpGen::Event::Event ( const real_t * data,
const unsigned & N )

Member Function Documentation

◆ address() [1/2]

real_t * AmpGen::Event::address ( const unsigned & ref = 0)
inline

Definition at line 35 of file Event.h.

◆ address() [2/2]

const real_t * AmpGen::Event::address ( const unsigned & ref = 0) const
inline

Definition at line 34 of file Event.h.

◆ data()

const std::vector< real_t > & AmpGen::Event::data ( ) const
inline

Definition at line 57 of file Event.h.

◆ extendEvent()

void AmpGen::Event::extendEvent ( const real_t & value)
inline

Definition at line 46 of file Event.h.

◆ genPdf()

real_t AmpGen::Event::genPdf ( ) const
inline

Definition at line 38 of file Event.h.

◆ index()

unsigned AmpGen::Event::index ( ) const
inline

Definition at line 51 of file Event.h.

◆ operator const real_t *()

AmpGen::Event::operator const real_t * ( ) const
inline

Definition at line 41 of file Event.h.

◆ operator real_t *()

AmpGen::Event::operator real_t * ( )
inline

Definition at line 42 of file Event.h.

◆ operator[]() [1/2]

real_t & AmpGen::Event::operator[] ( const unsigned & i)
inline

Definition at line 40 of file Event.h.

◆ operator[]() [2/2]

real_t AmpGen::Event::operator[] ( const unsigned & i) const
inline

Definition at line 39 of file Event.h.

◆ pGenPdf()

real_t * AmpGen::Event::pGenPdf ( )
inline

Definition at line 33 of file Event.h.

◆ print()

void AmpGen::Event::print ( ) const

◆ pWeight()

real_t * AmpGen::Event::pWeight ( )
inline

Definition at line 32 of file Event.h.

◆ reorder()

void AmpGen::Event::reorder ( const std::vector< unsigned > & addresses)

◆ s() [1/4]

real_t AmpGen::Event::s ( const std::vector< unsigned > & indices) const

◆ s() [2/4]

real_t AmpGen::Event::s ( const unsigned & index) const

◆ s() [3/4]

real_t AmpGen::Event::s ( const unsigned & index1,
const unsigned & index2 ) const

◆ s() [4/4]

real_t AmpGen::Event::s ( const unsigned & index1,
const unsigned & index2,
const unsigned & index3 ) const

◆ set() [1/4]

void AmpGen::Event::set ( const real_t * evt)

◆ set() [2/4]

void AmpGen::Event::set ( const unsigned & i,
const real_t & p )

◆ set() [3/4]

void AmpGen::Event::set ( const unsigned & i,
const real_t * p )

◆ set() [4/4]

void AmpGen::Event::set ( const unsigned & i,
const std::vector< real_t > & p )

◆ setGenPdf()

void AmpGen::Event::setGenPdf ( const real_t & genPdf)
inline

Definition at line 45 of file Event.h.

◆ setIndex()

void AmpGen::Event::setIndex ( const unsigned & index)
inline

Definition at line 50 of file Event.h.

◆ setWeight()

void AmpGen::Event::setWeight ( const real_t & weight)
inline

Definition at line 44 of file Event.h.

◆ size()

unsigned AmpGen::Event::size ( ) const
inline

Definition at line 30 of file Event.h.

◆ swap()

void AmpGen::Event::swap ( const unsigned int & i,
const unsigned int & j )

◆ weight()

real_t AmpGen::Event::weight ( ) const
inline

Definition at line 37 of file Event.h.


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