ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
top::Event Class Reference

Very simple class to hold event data after reading from a file. More...

#include <Event.h>

Collaboration diagram for top::Event:

Public Member Functions

 Event ()
 

Public Attributes

std::size_t m_hashValue
 systematic has value More...
 
unsigned int m_ttreeIndex
 TTree index. More...
 
bool m_isLoose
 is Loose Event? More...
 
bool m_saveEvent
 save the event? More...
 
const xAOD::EventInfom_info
 Pointer to the event info - nullptr if not loaded, but that's probably a bad idea. More...
 
xAOD::SystematicEvent constm_systematicEvent
 Pointer to the systematic event info - nullptr if not loaded, but that's probably a bad idea. More...
 
const xAOD::VertexContainerm_primaryVertices
 Primary Vertices. More...
 
xAOD::ElectronContainer m_electrons
 Container of electrons (can be sorted) More...
 
xAOD::ElectronContainer m_fwdElectrons
 Container of forward electrons (can be sorted) More...
 
xAOD::MuonContainer m_muons
 Container of muons (can be sorted) More...
 
xAOD::MuonContainer m_softmuons
 Container of soft muons (can be sorted) More...
 
xAOD::JetContainer m_jets
 Container of jets (can be sorted) More...
 
xAOD::JetContainer m_failJvt_jets
 Container of fail-JVT jets (can be sorted) More...
 
xAOD::JetContainer m_failFJvt_jets
 Container of fail-FJVT jets (can be sorted) More...
 
xAOD::PhotonContainer m_photons
 Container of photons (can be sorted) More...
 
xAOD::JetContainer m_largeJets
 Container of large jets (can be sorted) More...
 
xAOD::JetContainer m_RCJets
 Container of recluster jets (can be sorted) More...
 
std::unordered_map< std::string, std::shared_ptr< xAOD::JetContainer > > m_VarRCJets
 Containers of variable-R reclustered jets (can be sorted) More...
 
xAOD::JetContainer m_trackJets
 Container of track jets (can be sorted) More...
 
xAOD::TrackParticleContainer m_tracks
 Container of tracks (can be sorted) More...
 
xAOD::TauJetContainer m_tauJets
 Container of taujets (can be sorted) More...
 
const xAOD::MissingETm_met
 Pointer to MET if it is loaded. More...
 
const xAOD::TruthEventContainerm_truthEvent
 Truth event. More...
 
const xAOD::TruthParticleContainerm_truth
 Container of truth particles. More...
 
const xAOD::PartonHistorym_partonHistory
 Top Parton TopPartonHistory. More...
 
const xAOD::KLFitterResultContainerm_KLFitterResults
 KLFitter Results. More...
 
const xAOD::PseudoTopResultContainerm_PseudoTopResult
 Pseudo Top Results. More...
 
float m_jvtSF = 1.
 JVT and fJVT SFs - now needed here because they include jets that are good jets, but which are not in the top::Event::m_jets container. More...
 
float m_jvtSF_UP = 1.
 
float m_jvtSF_DOWN = 1.
 
float m_fjvtSF = 1.
 
float m_fjvtSF_UP = 1.
 
float m_fjvtSF_DOWN = 1.
 

Detailed Description

Very simple class to hold event data after reading from a file.

The idea of this is that we read from the xAOD and provide links here to all of the information the user might need. The code can add / remove objects and plot things from this.

The best way to ensure this is reset every event is probably to make a new one every event, that way it'll tidy-up after itself.

Definition at line 49 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

top::Event::Event ( )
inline

Definition at line 51 of file Event.h.

51  :
52  m_hashValue(0), // this will be set properly by TopEventMaker
53  m_ttreeIndex(99999), // this will be set properly by TopEventMaker
54  m_isLoose(false), // this will be set properly by TopEventMaker
55  m_saveEvent(false),
56  m_info(nullptr),
57  m_primaryVertices(nullptr),
71  m_met(nullptr),
72 
73  m_truthEvent(nullptr),
74  m_truth(nullptr),
75  m_partonHistory(nullptr),
76  m_KLFitterResults(nullptr),
77  m_PseudoTopResult(nullptr) {
78  }

Member Data Documentation

◆ m_electrons

xAOD::ElectronContainer top::Event::m_electrons

Container of electrons (can be sorted)

Definition at line 99 of file Event.h.

◆ m_failFJvt_jets

xAOD::JetContainer top::Event::m_failFJvt_jets

Container of fail-FJVT jets (can be sorted)

Definition at line 117 of file Event.h.

◆ m_failJvt_jets

xAOD::JetContainer top::Event::m_failJvt_jets

Container of fail-JVT jets (can be sorted)

Definition at line 114 of file Event.h.

◆ m_fjvtSF

float top::Event::m_fjvtSF = 1.

Definition at line 163 of file Event.h.

◆ m_fjvtSF_DOWN

float top::Event::m_fjvtSF_DOWN = 1.

Definition at line 165 of file Event.h.

◆ m_fjvtSF_UP

float top::Event::m_fjvtSF_UP = 1.

Definition at line 164 of file Event.h.

◆ m_fwdElectrons

xAOD::ElectronContainer top::Event::m_fwdElectrons

Container of forward electrons (can be sorted)

Definition at line 102 of file Event.h.

◆ m_hashValue

std::size_t top::Event::m_hashValue

systematic has value

Definition at line 81 of file Event.h.

◆ m_info

const xAOD::EventInfo* top::Event::m_info

Pointer to the event info - nullptr if not loaded, but that's probably a bad idea.

Definition at line 90 of file Event.h.

◆ m_isLoose

bool top::Event::m_isLoose

is Loose Event?

Definition at line 85 of file Event.h.

◆ m_jets

xAOD::JetContainer top::Event::m_jets

Container of jets (can be sorted)

Definition at line 111 of file Event.h.

◆ m_jvtSF

float top::Event::m_jvtSF = 1.

JVT and fJVT SFs - now needed here because they include jets that are good jets, but which are not in the top::Event::m_jets container.

Definition at line 160 of file Event.h.

◆ m_jvtSF_DOWN

float top::Event::m_jvtSF_DOWN = 1.

Definition at line 162 of file Event.h.

◆ m_jvtSF_UP

float top::Event::m_jvtSF_UP = 1.

Definition at line 161 of file Event.h.

◆ m_KLFitterResults

const xAOD::KLFitterResultContainer* top::Event::m_KLFitterResults
mutable

KLFitter Results.

Definition at line 153 of file Event.h.

◆ m_largeJets

xAOD::JetContainer top::Event::m_largeJets

Container of large jets (can be sorted)

Definition at line 123 of file Event.h.

◆ m_met

const xAOD::MissingET* top::Event::m_met

Pointer to MET if it is loaded.

Definition at line 141 of file Event.h.

◆ m_muons

xAOD::MuonContainer top::Event::m_muons

Container of muons (can be sorted)

Definition at line 105 of file Event.h.

◆ m_partonHistory

const xAOD::PartonHistory* top::Event::m_partonHistory

Top Parton TopPartonHistory.

Definition at line 150 of file Event.h.

◆ m_photons

xAOD::PhotonContainer top::Event::m_photons

Container of photons (can be sorted)

Definition at line 120 of file Event.h.

◆ m_primaryVertices

const xAOD::VertexContainer* top::Event::m_primaryVertices

Primary Vertices.

Definition at line 96 of file Event.h.

◆ m_PseudoTopResult

const xAOD::PseudoTopResultContainer* top::Event::m_PseudoTopResult
mutable

Pseudo Top Results.

Definition at line 156 of file Event.h.

◆ m_RCJets

xAOD::JetContainer top::Event::m_RCJets

Container of recluster jets (can be sorted)

Definition at line 126 of file Event.h.

◆ m_saveEvent

bool top::Event::m_saveEvent

save the event?

Definition at line 87 of file Event.h.

◆ m_softmuons

xAOD::MuonContainer top::Event::m_softmuons

Container of soft muons (can be sorted)

Definition at line 108 of file Event.h.

◆ m_systematicEvent

xAOD::SystematicEvent const* top::Event::m_systematicEvent

Pointer to the systematic event info - nullptr if not loaded, but that's probably a bad idea.

Definition at line 93 of file Event.h.

◆ m_tauJets

xAOD::TauJetContainer top::Event::m_tauJets

Container of taujets (can be sorted)

Definition at line 138 of file Event.h.

◆ m_trackJets

xAOD::JetContainer top::Event::m_trackJets

Container of track jets (can be sorted)

Definition at line 132 of file Event.h.

◆ m_tracks

xAOD::TrackParticleContainer top::Event::m_tracks

Container of tracks (can be sorted)

Definition at line 135 of file Event.h.

◆ m_truth

const xAOD::TruthParticleContainer* top::Event::m_truth

Container of truth particles.

Definition at line 147 of file Event.h.

◆ m_truthEvent

const xAOD::TruthEventContainer* top::Event::m_truthEvent

Truth event.

Definition at line 144 of file Event.h.

◆ m_ttreeIndex

unsigned int top::Event::m_ttreeIndex

TTree index.

Definition at line 83 of file Event.h.

◆ m_VarRCJets

std::unordered_map< std::string, std::shared_ptr<xAOD::JetContainer> > top::Event::m_VarRCJets
mutable

Containers of variable-R reclustered jets (can be sorted)

Definition at line 129 of file Event.h.


The documentation for this class was generated from the following file:
top::Event::m_info
const xAOD::EventInfo * m_info
Pointer to the event info - nullptr if not loaded, but that's probably a bad idea.
Definition: Event.h:90
top::Event::m_isLoose
bool m_isLoose
is Loose Event?
Definition: Event.h:85
top::Event::m_truth
const xAOD::TruthParticleContainer * m_truth
Container of truth particles.
Definition: Event.h:147
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
top::Event::m_failJvt_jets
xAOD::JetContainer m_failJvt_jets
Container of fail-JVT jets (can be sorted)
Definition: Event.h:114
top::Event::m_largeJets
xAOD::JetContainer m_largeJets
Container of large jets (can be sorted)
Definition: Event.h:123
top::Event::m_photons
xAOD::PhotonContainer m_photons
Container of photons (can be sorted)
Definition: Event.h:120
top::Event::m_jets
xAOD::JetContainer m_jets
Container of jets (can be sorted)
Definition: Event.h:111
top::Event::m_primaryVertices
const xAOD::VertexContainer * m_primaryVertices
Primary Vertices.
Definition: Event.h:96
top::Event::m_met
const xAOD::MissingET * m_met
Pointer to MET if it is loaded.
Definition: Event.h:141
top::Event::m_hashValue
std::size_t m_hashValue
systematic has value
Definition: Event.h:81
top::Event::m_KLFitterResults
const xAOD::KLFitterResultContainer * m_KLFitterResults
KLFitter Results.
Definition: Event.h:153
top::Event::m_muons
xAOD::MuonContainer m_muons
Container of muons (can be sorted)
Definition: Event.h:105
top::Event::m_RCJets
xAOD::JetContainer m_RCJets
Container of recluster jets (can be sorted)
Definition: Event.h:126
top::Event::m_electrons
xAOD::ElectronContainer m_electrons
Container of electrons (can be sorted)
Definition: Event.h:99
top::Event::m_failFJvt_jets
xAOD::JetContainer m_failFJvt_jets
Container of fail-FJVT jets (can be sorted)
Definition: Event.h:117
top::Event::m_partonHistory
const xAOD::PartonHistory * m_partonHistory
Top Parton TopPartonHistory.
Definition: Event.h:150
top::Event::m_tracks
xAOD::TrackParticleContainer m_tracks
Container of tracks (can be sorted)
Definition: Event.h:135
top::Event::m_PseudoTopResult
const xAOD::PseudoTopResultContainer * m_PseudoTopResult
Pseudo Top Results.
Definition: Event.h:156
top::Event::m_trackJets
xAOD::JetContainer m_trackJets
Container of track jets (can be sorted)
Definition: Event.h:132
top::Event::m_ttreeIndex
unsigned int m_ttreeIndex
TTree index.
Definition: Event.h:83
top::Event::m_truthEvent
const xAOD::TruthEventContainer * m_truthEvent
Truth event.
Definition: Event.h:144
top::Event::m_tauJets
xAOD::TauJetContainer m_tauJets
Container of taujets (can be sorted)
Definition: Event.h:138
top::Event::m_fwdElectrons
xAOD::ElectronContainer m_fwdElectrons
Container of forward electrons (can be sorted)
Definition: Event.h:102
top::Event::m_softmuons
xAOD::MuonContainer m_softmuons
Container of soft muons (can be sorted)
Definition: Event.h:108
top::Event::m_saveEvent
bool m_saveEvent
save the event?
Definition: Event.h:87