Public Member Functions | Friends

ForIA::Event Class Reference

Event class. Holds event info and physics objects. More...

#include <Event.hh>

List of all members.

Public Member Functions

 Event (DataConverter *converter)
unsigned long runNumber () const
 The event run number.
unsigned long eventNumber () const
 The event number.
unsigned int lumiBlock () const
 The lumi block from which the event is taken.
bool goodRun () const
bool goodLumiBlock () const
double weight () const
 The event weight (always 1 for data, may differ for MC)
const ClusterVectorclusters () const
DetectorErrorsConstPtr detectorErrors () const
const JetVector & jets (const JetKey &jetKey) const
const JetVector & jets () const
 Deprecated defaults to getting the anti-kt 06 topo jets.
void matchTracksToJets (const JetKey &key) const
 Match tracks to jets corresponding to a given key.
void matchVerticesToTracks () const
 Match vertices to tracks that are associated to them.
const TrackVector & tracks () const
const VertexVector & vertices () const
const TriggerConfigurationtriggerConfiguration () const
TriggerDecisionPtr triggerDecision () const
 return A pointer to a TriggerDecision object
const TruthParticleVector & truthParticles () const
const TruthJetVectortruthJets () const
const VertexVector & truthVertices () const
L1TriggerBitPtr l1Trigger () const
L2SpacePointsConstPtr l2SpacePoints () const
EtMissPtr met () const
void clear ()
 Re-set this event. Clears all data.

Friends

class DataConverter
std::ostream & operator<< (std::ostream &out, const Event &evt)

Detailed Description

Event class. Holds event info and physics objects.

Event class

Not only does an Event have its own properties like event, run and lumi block number, it also provides access to all objects that may be present in an event. Such objects include tracks, vertices, trigger info, jets...

Definition at line 40 of file Event.hh.


Constructor & Destructor Documentation

ForIA::Event::Event ( DataConverter converter )

Constructor. Must be passed a pointer to a DataConverter, which provides the other event objects

Parameters:
converterPointer to a DataConverter

Definition at line 12 of file Event.cxx.


Member Function Documentation

void ForIA::Event::clear (  )

Re-set this event. Clears all data.

Definition at line 247 of file Event.cxx.

const ClusterVector & ForIA::Event::clusters (  ) const
Returns:
A ClusterVector of clusters in this event

Definition at line 60 of file Event.cxx.

DetectorErrorsConstPtr ForIA::Event::detectorErrors (  ) const
Returns:
DetectorErrors object

Definition at line 68 of file Event.cxx.

unsigned long ForIA::Event::eventNumber (  ) const

The event number.

Definition at line 27 of file Event.cxx.

bool ForIA::Event::goodLumiBlock (  ) const
Returns:
true if the lumi block from which this event was taken satisfies the good runs list

Definition at line 47 of file Event.cxx.

bool ForIA::Event::goodRun (  ) const
Returns:
true if the run from which this event was taken satisfies the good runs list

Definition at line 42 of file Event.cxx.

const JetVector & ForIA::Event::jets ( const JetKey jetKey ) const
Parameters:
jetKeykey describing the jet to return (alg, rparam, calibration)
Returns:
A JetVector of jets in this event

Definition at line 76 of file Event.cxx.

const JetVector & ForIA::Event::jets (  ) const

Deprecated defaults to getting the anti-kt 06 topo jets.

Definition at line 171 of file Event.cxx.

L1TriggerBitPtr ForIA::Event::l1Trigger (  ) const
Returns:
A pointer to an L1TriggerBit of L1 trigger info for this event

Definition at line 232 of file Event.cxx.

L2SpacePointsConstPtr ForIA::Event::l2SpacePoints (  ) const
Returns:
Object holding info about the L2 SCT space point hits

Definition at line 240 of file Event.cxx.

unsigned int ForIA::Event::lumiBlock (  ) const

The lumi block from which the event is taken.

Definition at line 32 of file Event.cxx.

void ForIA::Event::matchTracksToJets ( const JetKey key ) const

Match tracks to jets corresponding to a given key.

Definition at line 102 of file Event.cxx.

void ForIA::Event::matchVerticesToTracks (  ) const

Match vertices to tracks that are associated to them.

Definition at line 141 of file Event.cxx.

EtMissPtr ForIA::Event::met (  ) const
Returns:
Pointer to an EtMiss object

Definition at line 177 of file Event.cxx.

unsigned long ForIA::Event::runNumber (  ) const

The event run number.

Definition at line 22 of file Event.cxx.

const TrackVector & ForIA::Event::tracks (  ) const
Returns:
A TrackVector of tracks in this event

Definition at line 52 of file Event.cxx.

const TriggerConfiguration & ForIA::Event::triggerConfiguration (  ) const
Returns:
The trigger configuration meta data object for this event

Definition at line 192 of file Event.cxx.

TriggerDecisionPtr ForIA::Event::triggerDecision (  ) const

return A pointer to a TriggerDecision object

Definition at line 200 of file Event.cxx.

const TruthJetVector & ForIA::Event::truthJets (  ) const
Returns:
A TruthJetVector of truth jets in this event (MC only!)

Definition at line 216 of file Event.cxx.

const TruthParticleVector & ForIA::Event::truthParticles (  ) const
Returns:
A TruthParticleVector of truth particles in this event (MC only!)

Definition at line 208 of file Event.cxx.

const VertexVector & ForIA::Event::truthVertices (  ) const
Returns:
A VertexVector of truth vertices in this event (MC only!)

Definition at line 224 of file Event.cxx.

const VertexVector & ForIA::Event::vertices (  ) const
Returns:
A VertexVector of vertices in this event

Definition at line 185 of file Event.cxx.

double ForIA::Event::weight (  ) const

The event weight (always 1 for data, may differ for MC)

Definition at line 37 of file Event.cxx.


Friends And Related Function Documentation

friend class DataConverter [friend]

Definition at line 117 of file Event.hh.

std::ostream& operator<< ( std::ostream &  out,
const Event evt 
) [friend]

Stream the event number, run number and lumi block in a vaguely sensible format

Parameters:
outThe output stream to which the event is streamed
evtThe Event to stream

Definition at line 271 of file Event.cxx.


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