ana::OptimizedObjects Class Reference

#include <OptimizedObjects.h>

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

List of all members.

Public Member Functions

void testInvariant () const
 test the invariant of this object
 OptimizedObjects (OptimizedStore *val_master, const CP::SystematicSet &val_systematics)
 standard constructor
StatusCode prepare () const
 do everything we need to do to prepare for a new event, i.e. make all the shallow copies
bool passSelection () const
 check whether we currently pass the selection
virtual void * getVoid (ObjectType type) const override
 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) override
 add a shallow copy of the input container with the given name
virtual StatusCode addNew (ObjectType type) override
 add a new container of the given type
virtual float eventWeight () const override
 the event weight
const CP::SystematicSetsystematics () const
 the systematics for these objects
void fillEventData (const CP::SystematicSet &sys, EventData &eventData) const
 fill the given EventData structure for the given systematic

Friends

class OptimizedStore

Detailed Description

An EventObjects container for specific systematic and object types at a specific point in the processing chain.

Used in the optimized tool scheduler.


Constructor & Destructor Documentation

ana::OptimizedObjects::OptimizedObjects ( OptimizedStore val_master,
const CP::SystematicSet val_systematics 
)

standard constructor

Guarantee
strong
Failures
out of memory I

Member Function Documentation

StatusCode ana::OptimizedObjects::addCopy ( ObjectType  type,
const std::string &  name 
) [override, 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

Implements ana::IEventObjects.

StatusCode ana::OptimizedObjects::addNew ( ObjectType  type  )  [override, virtual]

add a new container of the given type

Guarantee
basic
Failures
object already initialized
object creation failures

Implements ana::IEventObjects.

float ana::OptimizedObjects::eventWeight (  )  const [override, virtual]

the event weight

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

Implements ana::IEventObjects.

void ana::OptimizedObjects::fillEventData ( const CP::SystematicSet sys,
EventData eventData 
) const

fill the given EventData structure for the given systematic

Guarantee
basic
Failures
out of memory II
void * ana::OptimizedObjects::getVoid ( ObjectType  type  )  const [override, 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.

Implements ana::IEventObjects.

bool ana::OptimizedObjects::passSelection (  )  const

check whether we currently pass the selection

Guarantee
strong
Failures
xAOD access error
StatusCode ana::OptimizedObjects::prepare (  )  const

do everything we need to do to prepare for a new event, i.e. make all the shallow copies

Guarantee
basic
Failures
xAOD copy failures
const CP::SystematicSet & ana::OptimizedObjects::systematics (  )  const

the systematics for these objects

Guarantee
no-fail
void ana::OptimizedObjects::testInvariant (  )  const

test the invariant of this object

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 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1