ana::IEventObjects Class Reference

The interface class for accessing the correct event objects. More...

#include <IEventObjects.h>

Inheritance diagram for ana::IEventObjects:
ana::EventObjects ana::OptimizedObjects

List of all members.

Public Member Functions

virtual ~IEventObjects ()
 standard virtual destructor for base class
template<class T >
Tget (ObjectType type) const
 the object or object container for the given object type or NULL if it hasn't been filled (yet).
xAOD::IParticleContainergetParticles (ObjectType type)
 the object container as a xAOD::IParticleContainer
virtual void * getVoid (ObjectType type) const =0
 get the object or object container for the given object type or NULL if it hasn't been filled (yet).
virtual StatusCode addCopy (ObjectType type, const std::string &name)=0
 add a shallow copy of the input container with the given name
virtual StatusCode addNew (ObjectType type)=0
 add a new container of the given type
virtual float eventWeight () const =0
 the event weight
xAOD::EventInfoeventinfo () const
 the eventinfo object
EventSelectTypeeventSelect () const
 the eventinfo object
xAOD::MuonContainermuons () const
 the muon container
xAOD::TauJetContainertaus () const
 the tau container
xAOD::ElectronContainerelectrons () const
 the electron container
xAOD::PhotonContainerphotons () const
 the photon container
xAOD::JetContainerjets () const
 the jet container
xAOD::JetContainerfat_jets () const
 the fat jet container
xAOD::MissingETContainermet () const
 the met container
xAOD::MissingETContainermet2 () const
 the met container

Detailed Description

The interface class for accessing the correct event objects.

This is in essence a wrapper around StoreGate or TEvent/TStore, using ObjectType to stand in for the name (and also implying the type).


Constructor & Destructor Documentation

virtual ana::IEventObjects::~IEventObjects (  )  [virtual]

standard virtual destructor for base class

Guarantee
no-fail

Member Function Documentation

virtual StatusCode ana::IEventObjects::addCopy ( ObjectType  type,
const std::string &  name 
) [pure virtual]

add a shallow copy of the input container with the given name

Guarantee
basic
Failures
object already initialized
input object not found
shallow copy failures

Implemented in ana::EventObjects, and ana::OptimizedObjects.

virtual StatusCode ana::IEventObjects::addNew ( ObjectType  type  )  [pure virtual]

add a new container of the given type

Guarantee
basic
Failures
object already initialized
object creation failures

Implemented in ana::EventObjects, and ana::OptimizedObjects.

xAOD::ElectronContainer * ana::IEventObjects::electrons (  )  const [inline]

the electron container

Guarantee
no-fail
xAOD::EventInfo * ana::IEventObjects::eventinfo (  )  const [inline]

the eventinfo object

Guarantee
no-fail
EventSelectType * ana::IEventObjects::eventSelect (  )  const [inline]

the eventinfo object

Guarantee
no-fail
virtual float ana::IEventObjects::eventWeight (  )  const [pure virtual]

the event weight

this is a dummy for now and the mechanism might change at some point

Implemented in ana::EventObjects, and ana::OptimizedObjects.

xAOD::JetContainer * ana::IEventObjects::fat_jets (  )  const [inline]

the fat jet container

Guarantee
no-fail
template<class T >
T * ana::IEventObjects::get ( ObjectType  type  )  const [inline]

the object or object container for the given object type or NULL if it hasn't been filled (yet).

Guarantee
no-fail
xAOD::IParticleContainer * ana::IEventObjects::getParticles ( ObjectType  type  ) 

the object container as a xAOD::IParticleContainer

Guarantee
strong
Failures
object type not of IParticle type
virtual void* ana::IEventObjects::getVoid ( ObjectType  type  )  const [pure virtual]

get the object or object container for the given object type or NULL if it hasn't been filled (yet).

Guarantee
no-fail this has to be cast exactly to the type defined by ObjecTypeInfo::asXAOD. it is much easier to go with the get function instead.

Implemented in ana::EventObjects, and ana::OptimizedObjects.

xAOD::JetContainer * ana::IEventObjects::jets (  )  const [inline]

the jet container

Guarantee
no-fail
xAOD::MissingETContainer * ana::IEventObjects::met (  )  const [inline]

the met container

Guarantee
no-fail
xAOD::MissingETContainer * ana::IEventObjects::met2 (  )  const [inline]

the met container

Guarantee
no-fail
xAOD::MuonContainer * ana::IEventObjects::muons (  )  const [inline]

the muon container

Guarantee
no-fail
xAOD::PhotonContainer * ana::IEventObjects::photons (  )  const [inline]

the photon container

Guarantee
no-fail
xAOD::TauJetContainer * ana::IEventObjects::taus (  )  const [inline]

the tau container

Guarantee
no-fail

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1