#include <MEventInfo.h>
Collaboration diagram for manchester::MEventInfo:
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. | |
MEventInfo & | operator= (const MEventInfo &p) |
Assignment operator. | |
std::ostream & | PrintContent (std::ostream &os) const |
Can be used directly or via operator<<. |
Stores information about the event such as the run and event number.
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.