manchester::MEventInfo Class Reference

Class for storing information about the event. More...

#include <MEventInfo.h>

Collaboration diagram for manchester::MEventInfo:

Collaboration graph
[legend]
List of all members.

Public Types

 Pixel
 SCT
 TRT
 LAr
 Tile
 Muon
 ForwardDet
 Core
 NotSet
 Warning
 Error
enum for event flags which indicate the subsystem
detector to which the flags belong

enum  EventFlagSubDet {
  Pixel, SCT, TRT, LAr,
  Tile, Muon, ForwardDet, Core
}
enum for event errors states
enum  EventFlagErrorState { NotSet, Warning, Error }

Public Member Functions

 MEventInfo (double w=1., unsigned int rn=0, unsigned int en=0, unsigned int lb=0, unsigned int bcid=0)
 Constructor for ROOT and for setting the MC weight.
 MEventInfo (const MEventInfo &aei)
 Copy constructor.
unsigned int RunNumber () const
 Get the run number.
unsigned int EventNumber () const
 Get the event number.
unsigned int LumiBlock () const
 Get the luminosity block number.
unsigned int BCID () const
 Get the beam crossing ID.
Float_t AverageInteractionsPerCrossing () const
 average interactions per crossing for all BCIDs - for out-of-time pile-up
std::string DataPeriod () const
 Figure out which data period this event is from.
double MCEventWeight () const
 Get the Event Weight for the Monte Carlo.
void SetMCEventWeight (double mcWeight)
 Set the Monte Carlo Event Weight.
int HforType () const
void SetHforType (int type)
std::vector< double > MCEventWeightaTGC () const
 Get the Event Weight for the Monte Carlo.
void SetMCEventWeightaTGC (std::vector< double > mcWeight)
 Set the Monte Carlo Event Weight.
EventFlagErrorState errorState (EventFlagSubDet subDet) const
 test for error state for a particular sub-detector
std::string Type () const
 So we know what type of object this is at run time.
MEventInfooperator= (const MEventInfo &p)
 Assignment operator.
std::ostream & PrintContent (std::ostream &os) const
 Can be used directly or via operator<<.

Detailed Description

Class for storing information about the event.

Stores information about the event such as the run and event number.


Member Function Documentation

unsigned int MEventInfo::EventNumber (  )  const

Get the event number.

Returns the event number.

int MEventInfo::HforType (  )  const

Get result of HFOR tool.
Convention: -1 = not set 0 = isBB 1 = isCC 2 = isC 3 = isLightFlavor 4 = kill

unsigned int MEventInfo::RunNumber (  )  const

Get the run number.

Returns the run number.

std::string MEventInfo::Type (  )  const

So we know what type of object this is at run time.

Return a string representing the type of object.


The documentation for this class was generated from the following files:
Generated on Thu Jun 30 11:40:25 2011 for manTreeSFrame by  doxygen 1.4.7