#include <MyEvent.h>
Public Member Functions | |
MyEvent (const int &run_nb, const int &event_nb, const double &ev_weight, const std::vector< MyParticle * > &rec_electron, const std::vector< MyParticle * > &rec_photon, const std::vector< MyParticle * > &rec_muon, const std::vector< MyParticle * > &rec_jet, const std::vector< MyParticle * > &rec_taujet, const std::vector< MyParticle * > &truth_particle, const std::vector< MyParticle * > &truth_jet, const MyMissingEtManager &met_manager, const MyTrigger &trigger, std::vector< MyParticle * > *track_jet=0, std::vector< MyParticle * > *tracks=0, std::vector< MyParticle * > *truth_track_jet=0, const std::vector< MyVertex * > *vertices=0, const std::vector< MyVertex * > *truth_vertices=0, const std::vector< MyParticle * > *trigger_muon=0) | |
virtual | ~MyEvent () |
int | run_number (void) const |
Destructor get the run number. | |
int | event_number (void) const |
get the event number | |
double | event_weight (void) const |
get the event weight | |
std::vector< MyParticle * > | reco_electrons (void) const |
std::vector< MyParticle * > | reco_photons (void) const |
std::vector< MyParticle * > | reco_muons (int alg_flag) const |
std::vector< MyParticle * > | reco_muons (std::string alg_string="default") const |
std::vector< MyParticle * > | reco_jets (void) const |
std::vector< MyParticle * > | reco_taujets (void) const |
std::vector< MyParticle * > | truth_particles (void) const |
std::vector< MyParticle * > | truth_jets (void) const |
MyMissingEtManager | met_manager (void) const |
get the MyMissingEtManager Object | |
MyTrigger | trigger (void) const |
get the MyTrigger Object | |
const std::vector< MyVertex * > * | primary_vertices (void) const |
get the primary vertices | |
const std::vector< MyVertex * > * | truth_vertices (void) const |
get the truth vertices | |
std::vector< MyParticle * > * | track_jets (void) const |
get a pointer to the track jets | |
std::vector< MyParticle * > * | tracks (void) const |
get a pointer to the tracks | |
std::vector< MyParticle * > * | truth_track_jets (void) const |
get a pointer to the truth track jets | |
const std::vector< MyParticle * > * | trigger_muon (void) const |
get a pointer to the trigger muon vectors | |
void | Print (std::string option="") const |
print the event, i.e. call Print method of all objects beloning to the event | |
Private Member Functions | |
void | init (const int &run_nb, const int &event_nb, const double &ev_weight, const std::vector< MyParticle * > &rec_electron, const std::vector< MyParticle * > &rec_photon, const std::vector< MyParticle * > &rec_muon, const std::vector< MyParticle * > &rec_jet, const std::vector< MyParticle * > &rec_taujet, const std::vector< MyParticle * > &truth_particle, const std::vector< MyParticle * > &truth_jet, const MyMissingEtManager &met_manager, const MyTrigger &trigger, std::vector< MyParticle * > *track_jet, std::vector< MyParticle * > *tracks, std::vector< MyParticle * > *truth_track_jet, const std::vector< MyVertex * > *vertices, const std::vector< MyVertex * > *truth_vertices, const std::vector< MyParticle * > *trigger_muon) |
Private Attributes | |
int | m_run_nb |
int | m_event_nb |
double | m_event_weight |
std::vector< MyParticle * > | m_rec_electron |
std::vector< MyParticle * > | m_rec_photon |
std::vector< MyParticle * > | m_rec_muon |
std::vector< MyParticle * > | m_rec_jet |
std::vector< MyParticle * > | m_rec_taujet |
std::vector< MyParticle * > | m_truth_particle |
std::vector< MyParticle * > | m_truth_jet |
const std::vector< MyVertex * > * | m_vertices |
const std::vector< MyVertex * > * | m_truth_vertices |
std::vector< MyParticle * > * | m_track_jet |
std::vector< MyParticle * > * | m_tracks |
std::vector< MyParticle * > * | m_truth_track_jet |
const std::vector< MyParticle * > * | m_trigger_muon |
MyMissingEtManager | m_met_manager |
MyTrigger | m_trigger |
MyDatasetInfo * | m_dataset_info |
Definition at line 48 of file MyEvent.h.
MyEvent::MyEvent | ( | const int & | run_nb, | |
const int & | event_nb, | |||
const double & | ev_weight, | |||
const std::vector< MyParticle * > & | rec_electron, | |||
const std::vector< MyParticle * > & | rec_photon, | |||
const std::vector< MyParticle * > & | rec_muon, | |||
const std::vector< MyParticle * > & | rec_jet, | |||
const std::vector< MyParticle * > & | rec_taujet, | |||
const std::vector< MyParticle * > & | truth_particle, | |||
const std::vector< MyParticle * > & | truth_jet, | |||
const MyMissingEtManager & | met_manager, | |||
const MyTrigger & | trigger, | |||
std::vector< MyParticle * > * | track_jet = 0 , |
|||
std::vector< MyParticle * > * | tracks = 0 , |
|||
std::vector< MyParticle * > * | truth_track_jet = 0 , |
|||
const std::vector< MyVertex * > * | vertices = 0 , |
|||
const std::vector< MyVertex * > * | truth_vertices = 0 , |
|||
const std::vector< MyParticle * > * | trigger_muon = 0 | |||
) | [inline] |
Constructor run_nb: run number, event_nb: event number, ev_weight: weight of the event, rec_electron: container with the reconstructed electrons in the current event, rec_photon: container with the reconstructed photons in the current event, rec_muon: container with the reconstructed muons in the current event, rec_jet: container with the reconstructed jets in the current event, truth_particles: container with the truth particles in the current event, truth_jet: container with the true jets in the current event missinget: MyMissingEt object with all variables track_jet: container with track jets (a pointer is used to allow for the backward compatibility of the class) tracks: container with all tracks (a pointer is used to allow for the backward compatibility of the class) truth_track_jet: container with truth track jets (a pointer is used to allow for the backward compatibility of the class) vertices: primary vertices. truth_vertices: truth vertices trigger_muon: array with the three vectors of muon trigger {lvl1, lvl2, ef}
std::vector< MyParticle * > MyEvent::reco_electrons | ( | void | ) | const [inline] |
get the electrons reconstructed in the current event
Definition at line 101 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::reco_photons | ( | void | ) | const [inline] |
get the photons reconstructed in the current event
Definition at line 112 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::reco_muons | ( | int | alg_flag | ) | const [inline] |
get the muons reconstructed in the current event with alg_flag ( 1 -> atlfast, 2 -> muid, 3 -> staco, 0 -> non of the upper, -1 -> all)
Definition at line 132 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::reco_muons | ( | std::string | alg_string = "default" |
) | const [inline] |
get the muons reconstructed in the current event with algorithm 'alg_string': atlfast, muid, staco (default), all
Definition at line 152 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::reco_jets | ( | void | ) | const [inline] |
get the jets reconstructed in the current event
Definition at line 199 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::reco_taujets | ( | void | ) | const [inline] |
get the jets reconstructed in the current event
Definition at line 211 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::truth_particles | ( | void | ) | const [inline] |
get the truth particles found in the current event
Definition at line 223 of file MyEvent.ixx.
std::vector< MyParticle * > MyEvent::truth_jets | ( | void | ) | const [inline] |
get the jets found in the current event
Definition at line 235 of file MyEvent.ixx.