ATLAS Offline Software
Classes | List of all members
PileUpEventInfo Class Reference

This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts (the original and the bkg ones) More...

#include <PileUpEventInfo.h>

Inheritance diagram for PileUpEventInfo:
Collaboration diagram for PileUpEventInfo:

Classes

class  SubEvent
 a triple allowing access to a sub-event More...
 

Public Types

enum for event flags which indicate the subsystem

detector to which the flags belong

enum  EventFlagSubDet {
  Pixel, SCT, TRT, LAr,
  Tile, Muon, ForwardDet, Core,
  Background, Lumi, nDets
}
 
enum for event errors states
enum  EventFlagErrorState { NotSet, Warning, Error }
 
enum for bits in Background EventFlag word
enum  BackgroundEventFlag {
  MBTSTimeDiffHalo, MBTSTimeDiffCol, LArECTimeDiffHalo, LArECTimeDiffCol,
  PixMultiplicityHuge, PixSPNonEmpty, SCTMultiplicityHuge, SCTSPNonEmpty,
  CSCTimeDiffHalo, CSCTimeDiffCol, BCMTimeDiffHalo, BCMTimeDiffCol,
  MuonTimingCol, MuonTimingCosmic, MBTSBeamVeto, BCMBeamVeto,
  LUCIDBeamVeto, HaloMuonSegment, HaloClusterShape, HaloMuonOneSided,
  HaloMuonTwoSided, HaloTileClusterPattern, BeamGasPixel, CosmicStandAlone,
  CosmicStandAloneTight, CosmicCombined, CosmicCombinedTight, BkgdResvBit1,
  BkgdResvBit2, BkgdResvBit3, BkgdResvBit4, BkgdResvBit5,
  NBackgroundWords
}
 
enum for event flags which indicate the subsystem

detector to which the flags belong

enum  EventFlagSubDet {
  Pixel, SCT, TRT, LAr,
  Tile, Muon, ForwardDet, Core,
  Background, Lumi, nDets
}
 
enum for event errors states
enum  EventFlagErrorState { NotSet, Warning, Error }
 
enum for bits in Background EventFlag word
enum  BackgroundEventFlag {
  MBTSTimeDiffHalo, MBTSTimeDiffCol, LArECTimeDiffHalo, LArECTimeDiffCol,
  PixMultiplicityHuge, PixSPNonEmpty, SCTMultiplicityHuge, SCTSPNonEmpty,
  CSCTimeDiffHalo, CSCTimeDiffCol, BCMTimeDiffHalo, BCMTimeDiffCol,
  MuonTimingCol, MuonTimingCosmic, MBTSBeamVeto, BCMBeamVeto,
  LUCIDBeamVeto, HaloMuonSegment, HaloClusterShape, HaloMuonOneSided,
  HaloMuonTwoSided, HaloTileClusterPattern, BeamGasPixel, CosmicStandAlone,
  CosmicStandAloneTight, CosmicCombined, CosmicCombinedTight, BkgdResvBit1,
  BkgdResvBit2, BkgdResvBit3, BkgdResvBit4, BkgdResvBit5,
  NBackgroundWords
}
 
enum for event flags which indicate the subsystem

detector to which the flags belong

enum  EventFlagSubDet {
  Pixel, SCT, TRT, LAr,
  Tile, Muon, ForwardDet, Core,
  Background, Lumi, nDets
}
 
enum for event errors states
enum  EventFlagErrorState { NotSet, Warning, Error }
 
enum for bits in Background EventFlag word
enum  BackgroundEventFlag {
  MBTSTimeDiffHalo, MBTSTimeDiffCol, LArECTimeDiffHalo, LArECTimeDiffCol,
  PixMultiplicityHuge, PixSPNonEmpty, SCTMultiplicityHuge, SCTSPNonEmpty,
  CSCTimeDiffHalo, CSCTimeDiffCol, BCMTimeDiffHalo, BCMTimeDiffCol,
  MuonTimingCol, MuonTimingCosmic, MBTSBeamVeto, BCMBeamVeto,
  LUCIDBeamVeto, HaloMuonSegment, HaloClusterShape, HaloMuonOneSided,
  HaloMuonTwoSided, HaloTileClusterPattern, BeamGasPixel, CosmicStandAlone,
  CosmicStandAloneTight, CosmicCombined, CosmicCombinedTight, BkgdResvBit1,
  BkgdResvBit2, BkgdResvBit3, BkgdResvBit4, BkgdResvBit5,
  NBackgroundWords
}
 

Public Member Functions

Event information accessors
EventIDevent_ID ()
 the unique identification of the event. More...
 
const EventIDevent_ID () const
 
EventTypeevent_type ()
 the type of the event, e.g. simulation, testbeam, etc More...
 
const EventTypeevent_type () const
 
TriggerInfotrigger_info ()
 trigger information (ptr may be NULL) More...
 
const TriggerInfotrigger_info () const
 
unsigned int eventFlags (EventFlagSubDet subDet) const
 event flags for a particular sub-detector More...
 
bool isEventFlagBitSet (EventFlagSubDet subDet, unsigned char bit) const
 check for a event flag bit for a particular sub-detector More...
 
const std::vector< unsigned int > & eventFlags () const
 All event flags. More...
 
EventFlagErrorState errorState (EventFlagSubDet subDet) const
 return error state for a particular sub-detector More...
 
bool setEventFlags (EventFlagSubDet subDet, unsigned int flags)
 Set event flag for a particular sub detector - maximun size is 28 bits. More...
 
bool setEventFlagBit (EventFlagSubDet subDet, unsigned char bit, bool set=true)
 Set a bit for an event flag of a particular sub detector. More...
 
bool setErrorState (EventFlagSubDet subDet, EventFlagErrorState errorState)
 Set error state flag for a particular sub detector. More...
 
float actualInteractionsPerCrossing () const
 Access to number of interactions per crossing: More...
 
float averageInteractionsPerCrossing () const
 average interactions per crossing for all BCIDs - for out-of-time pile-up More...
 
Event information accessors
EventIDevent_ID ()
 the unique identification of the event. More...
 
EventTypeevent_type ()
 the type of the event, e.g. simulation, testbeam, etc More...
 
const EventTypeevent_type () const
 
TriggerInfotrigger_info ()
 trigger information (ptr may be NULL) More...
 
const TriggerInfotrigger_info () const
 
unsigned int eventFlags (EventFlagSubDet subDet) const
 event flags for a particular sub-detector More...
 
const std::vector< unsigned int > & eventFlags () const
 All event flags. More...
 
bool isEventFlagBitSet (EventFlagSubDet subDet, unsigned char bit) const
 check for a event flag bit for a particular sub-detector More...
 
EventFlagErrorState errorState (EventFlagSubDet subDet) const
 return error state for a particular sub-detector More...
 
bool setEventFlags (EventFlagSubDet subDet, unsigned int flags)
 Set event flag for a particular sub detector - maximun size is 28 bits. More...
 
bool setEventFlagBit (EventFlagSubDet subDet, unsigned char bit, bool set=true)
 Set a bit for an event flag of a particular sub detector. More...
 
bool setErrorState (EventFlagSubDet subDet, EventFlagErrorState errorState)
 Set error state flag for a particular sub detector. More...
 
float actualInteractionsPerCrossing () const
 Access to number of interactions per crossing: More...
 
float averageInteractionsPerCrossing () const
 average interactions per crossing for all BCIDs - for out-of-time pile-up More...
 
Event information accessors
EventIDevent_ID ()
 the unique identification of the event. More...
 
const EventIDevent_ID () const
 
EventTypeevent_type ()
 the type of the event, e.g. simulation, testbeam, etc More...
 
const EventTypeevent_type () const
 
TriggerInfotrigger_info ()
 trigger information (ptr may be NULL) More...
 
const TriggerInfotrigger_info () const
 
unsigned int eventFlags (EventFlagSubDet subDet) const
 event flags for a particular sub-detector More...
 
const std::vector< unsigned int > & eventFlags () const
 All event flags. More...
 
bool isEventFlagBitSet (EventFlagSubDet subDet, unsigned char bit) const
 check for a event flag bit for a particular sub-detector More...
 
EventFlagErrorState errorState (EventFlagSubDet subDet) const
 return error state for a particular sub-detector More...
 
bool setEventFlags (EventFlagSubDet subDet, unsigned int flags)
 Set event flag for a particular sub detector - maximun size is 28 bits. More...
 
bool setEventFlagBit (EventFlagSubDet subDet, unsigned char bit, bool set=true)
 Set a bit for an event flag of a particular sub detector. More...
 
bool setErrorState (EventFlagSubDet subDet, EventFlagErrorState errorState)
 Set error state flag for a particular sub detector. More...
 
float actualInteractionsPerCrossing () const
 Access to number of interactions per crossing: More...
 
float averageInteractionsPerCrossing () const
 average interactions per crossing for all BCIDs - for out-of-time pile-up More...
 

DataObject-like clid accessors

const CLIDclID () const
 
static const CLIDclassID ()
 

Event information setting

EventIDm_event_ID
 
EventTypem_event_type
 
TriggerInfom_trigger_info
 
std::vector< unsigned int > m_event_flags
 
void setTriggerInfo (TriggerInfo *)
 Add TriggerInfo to existing object. More...
 
void setActualInteractionsPerCrossing (float interactions)
 Setting the number of interactions per crossing: More...
 
void setAverageInteractionsPerCrossing (float interactions)
 average interactions per crossing for all BCIDs - for out-of-time pile-up More...
 
enum  {
  EF_BITS = 0x0FFFFFFF, EF_ERROR_BITS = 0xF0000000, EF_ERROR_SHIFT = 28, ACTUAL_INTERACTS_BITS = 0x0000FFFF,
  AVE_INTERACTS_BITS = 0xFFFF0000, AVE_INTERACTS_SHIFT = 16
}
 
void setEventID (EventID *pid)
 
void setEventType (EventType *)
 

structors (same as EventInfo)

typedef SubEvent::time_type time_type
 
typedef SubEvent::index_type index_type
 
 PileUpEventInfo ()
 
 PileUpEventInfo (EventID *id, EventType *type)
 
 PileUpEventInfo (EventID *id, EventType *type, TriggerInfo *trig_info)
 
virtual ~PileUpEventInfo ()
 
void addSubEvt (time_type t, PileUpTimeEventIndex::PileUpType puType, const EventInfo *pse, StoreGateSvc *psg)
 setter for the subEvt collection t=0(ns) for the original event More...
 
void addSubEvt (time_type t, PileUpTimeEventIndex::PileUpType puType, std::unique_ptr< EventInfo > pse, StoreGateSvc *psg)
 
void addSubEvt (time_type t, unsigned int BCID, PileUpTimeEventIndex::PileUpType puType, const EventInfo &rse, StoreGateSvc *psg)
 setter for the subEvt collection t=0(ns) for the original event More...
 
void addSubEvt (time_type t, unsigned int BCID, PileUpTimeEventIndex::PileUpType puType, std::unique_ptr< EventInfo > &pse, StoreGateSvc *psg)
 

accessors to the subEvt collection

std::list< SubEventm_subEvents
 
SubEvent::iterator beginSubEvt ()
 
SubEvent::iterator endSubEvt ()
 
SubEvent::const_iterator beginSubEvt () const
 
SubEvent::const_iterator endSubEvt () const
 

Detailed Description

This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts (the original and the bkg ones)

Definition at line 37 of file PileUpEventInfo.h.

Member Typedef Documentation

◆ index_type

typedef SubEvent::index_type PileUpEventInfo::index_type

Definition at line 102 of file PileUpEventInfo.h.

◆ time_type

typedef SubEvent::time_type PileUpEventInfo::time_type

Definition at line 101 of file PileUpEventInfo.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
privateinherited
Enumerator
EF_BITS 
EF_ERROR_BITS 
EF_ERROR_SHIFT 
ACTUAL_INTERACTS_BITS 
AVE_INTERACTS_BITS 
AVE_INTERACTS_SHIFT 

Definition at line 193 of file EventInfo/EventInfo/EventInfo.h.

193  {
194  EF_BITS = 0x0FFFFFFF,
195  EF_ERROR_BITS = 0xF0000000,
196  EF_ERROR_SHIFT = 28,
197  ACTUAL_INTERACTS_BITS = 0x0000FFFF,
198  AVE_INTERACTS_BITS = 0xFFFF0000,
200  };

◆ BackgroundEventFlag

Enumerator
MBTSTimeDiffHalo 
MBTSTimeDiffCol 
LArECTimeDiffHalo 
LArECTimeDiffCol 
PixMultiplicityHuge 
PixSPNonEmpty 
SCTMultiplicityHuge 
SCTSPNonEmpty 
CSCTimeDiffHalo 
CSCTimeDiffCol 
BCMTimeDiffHalo 
BCMTimeDiffCol 
MuonTimingCol 
MuonTimingCosmic 
MBTSBeamVeto 
BCMBeamVeto 
LUCIDBeamVeto 
HaloMuonSegment 
HaloClusterShape 
HaloMuonOneSided 
HaloMuonTwoSided 
HaloTileClusterPattern 
BeamGasPixel 
CosmicStandAlone 
CosmicStandAloneTight 
CosmicCombined 
CosmicCombinedTight 
BkgdResvBit1 
BkgdResvBit2 
BkgdResvBit3 
BkgdResvBit4 
BkgdResvBit5 
NBackgroundWords 

Definition at line 69 of file EventInfo/EventInfo/EventInfo.h.

◆ EventFlagErrorState

Enumerator
NotSet 
Warning 
Error 

Definition at line 59 of file EventInfo/EventInfo/EventInfo.h.

59  {
61  };

◆ EventFlagSubDet

Enumerator
Pixel 
SCT 
TRT 
LAr 
Tile 
Muon 
ForwardDet 
Core 
Background 
Lumi 
nDets 

Definition at line 53 of file EventInfo/EventInfo/EventInfo.h.

53  {
55  };

Constructor & Destructor Documentation

◆ PileUpEventInfo() [1/3]

PileUpEventInfo::PileUpEventInfo ( )

Definition at line 18 of file PileUpEventInfo.cxx.

18  :
19  EventInfo()
20 {}

◆ PileUpEventInfo() [2/3]

PileUpEventInfo::PileUpEventInfo ( EventID id,
EventType type 
)

Definition at line 22 of file PileUpEventInfo.cxx.

22  :
23  EventInfo(id, type)
24 {}

◆ PileUpEventInfo() [3/3]

PileUpEventInfo::PileUpEventInfo ( EventID id,
EventType type,
TriggerInfo trig_info 
)

Definition at line 26 of file PileUpEventInfo.cxx.

27  :
28  EventInfo(id, type, trig_info)
29 {}

◆ ~PileUpEventInfo()

PileUpEventInfo::~PileUpEventInfo ( )
virtual

Definition at line 31 of file PileUpEventInfo.cxx.

32 {}

Member Function Documentation

◆ actualInteractionsPerCrossing()

float EventInfo::actualInteractionsPerCrossing ( ) const
inlineinherited

Access to number of interactions per crossing:

actual interactions per crossing for the current BCID - for in-time pile-up

average interactions per crossing for the current (or actual) BCID - for in-time pile-up

Definition at line 269 of file EventInfo/EventInfo/EventInfo.h.

269  {
270  float result = -999.99f;
271 
272  if (Lumi < m_event_flags.size()) {
273  unsigned int interactions = m_event_flags[Lumi];
274  result = (float) (interactions & ACTUAL_INTERACTS_BITS);
275  result *= 0.01;
276  }
277  return result;
278 }

◆ addSubEvt() [1/4]

void PileUpEventInfo::addSubEvt ( time_type  t,
PileUpTimeEventIndex::PileUpType  puType,
const EventInfo pse,
StoreGateSvc psg 
)
inline

setter for the subEvt collection t=0(ns) for the original event

Definition at line 104 of file PileUpEventInfo.h.

105  {
106  m_subEvents.emplace_back(t, m_subEvents.size(), puType, pse, psg);
107  }

◆ addSubEvt() [2/4]

void PileUpEventInfo::addSubEvt ( time_type  t,
PileUpTimeEventIndex::PileUpType  puType,
std::unique_ptr< EventInfo pse,
StoreGateSvc psg 
)
inline

Definition at line 109 of file PileUpEventInfo.h.

110  {
111  m_subEvents.emplace_back(t, m_subEvents.size(), puType, std::move(pse), psg);
112  }

◆ addSubEvt() [3/4]

void PileUpEventInfo::addSubEvt ( time_type  t,
unsigned int  BCID,
PileUpTimeEventIndex::PileUpType  puType,
const EventInfo rse,
StoreGateSvc psg 
)
inline

setter for the subEvt collection t=0(ns) for the original event

Definition at line 115 of file PileUpEventInfo.h.

117  {
118  m_subEvents.emplace_back(t, BCID, m_subEvents.size(), puType, rse, psg);
119  }

◆ addSubEvt() [4/4]

void PileUpEventInfo::addSubEvt ( time_type  t,
unsigned int  BCID,
PileUpTimeEventIndex::PileUpType  puType,
std::unique_ptr< EventInfo > &  pse,
StoreGateSvc psg 
)
inline

Definition at line 121 of file PileUpEventInfo.h.

123  {
124  m_subEvents.emplace_back(t, BCID, m_subEvents.size(), puType, std::move(pse), psg);
125  }

◆ averageInteractionsPerCrossing()

float EventInfo::averageInteractionsPerCrossing ( ) const
inlineinherited

average interactions per crossing for all BCIDs - for out-of-time pile-up

Definition at line 282 of file EventInfo/EventInfo/EventInfo.h.

282  {
283  float result = -999.99f;
284 
285  if (Lumi < m_event_flags.size()) {
286  unsigned int interactions = m_event_flags[Lumi];
287  result = (float) ((interactions & AVE_INTERACTS_BITS) >> AVE_INTERACTS_SHIFT);
288  result *= 0.01;
289  }
290  return result;
291 }

◆ beginSubEvt() [1/2]

SubEvent::iterator PileUpEventInfo::beginSubEvt ( )
inline

Definition at line 131 of file PileUpEventInfo.h.

131 {return m_subEvents.begin();}

◆ beginSubEvt() [2/2]

SubEvent::const_iterator PileUpEventInfo::beginSubEvt ( ) const
inline

Definition at line 133 of file PileUpEventInfo.h.

133 {return m_subEvents.begin();}

◆ classID()

const CLID & EventInfo::classID ( )
inlinestaticinherited

Definition at line 302 of file EventInfo/EventInfo/EventInfo.h.

302  {
304 }

◆ clID()

const CLID & EventInfo::clID ( ) const
inlineinherited

Definition at line 294 of file EventInfo/EventInfo/EventInfo.h.

294  {
295  return classID();
296 }

◆ endSubEvt() [1/2]

SubEvent::iterator PileUpEventInfo::endSubEvt ( )
inline

Definition at line 132 of file PileUpEventInfo.h.

132 {return m_subEvents.end();}

◆ endSubEvt() [2/2]

SubEvent::const_iterator PileUpEventInfo::endSubEvt ( ) const
inline

Definition at line 134 of file PileUpEventInfo.h.

134 {return m_subEvents.end();}

◆ errorState()

EventInfo::EventFlagErrorState EventInfo::errorState ( EventFlagSubDet  subDet) const
inlineinherited

return error state for a particular sub-detector

test for error state for a particular sub-detector

Definition at line 260 of file EventInfo/EventInfo/EventInfo.h.

260  {
261  if ((unsigned) subDet < m_event_flags.size()) {
263  }
264  return NotSet;
265 }

◆ event_ID() [1/2]

EventID * EventInfo::event_ID ( )
inlineinherited

the unique identification of the event.

Definition at line 210 of file EventInfo/EventInfo/EventInfo.h.

210  {
211  return(m_event_ID);
212 }

◆ event_ID() [2/2]

const EventID * EventInfo::event_ID ( ) const
inlineinherited

Definition at line 215 of file EventInfo/EventInfo/EventInfo.h.

215  {
216  return(m_event_ID);
217 }

◆ event_type() [1/2]

EventType * EventInfo::event_type ( )
inlineinherited

the type of the event, e.g. simulation, testbeam, etc

Definition at line 220 of file EventInfo/EventInfo/EventInfo.h.

220  {
221  return(m_event_type);
222 }

◆ event_type() [2/2]

const EventType * EventInfo::event_type ( ) const
inlineinherited

Definition at line 225 of file EventInfo/EventInfo/EventInfo.h.

225  {
226  return(m_event_type);
227 }

◆ eventFlags() [1/2]

const std::vector< unsigned int > & EventInfo::eventFlags ( ) const
inlineinherited

All event flags.

Definition at line 254 of file EventInfo/EventInfo/EventInfo.h.

254  {
255  return m_event_flags;
256 }

◆ eventFlags() [2/2]

unsigned int EventInfo::eventFlags ( EventFlagSubDet  subDet) const
inlineinherited

event flags for a particular sub-detector

Definition at line 240 of file EventInfo/EventInfo/EventInfo.h.

240  {
241  if ((unsigned) subDet < m_event_flags.size()) return(EF_BITS & m_event_flags[subDet]);
242 
243  return(0xFFFFFFFF);
244 }

◆ isEventFlagBitSet()

bool EventInfo::isEventFlagBitSet ( EventFlagSubDet  subDet,
unsigned char  bit 
) const
inlineinherited

check for a event flag bit for a particular sub-detector

Definition at line 247 of file EventInfo/EventInfo/EventInfo.h.

247  {
248  if (subDet < m_event_flags.size() && bit < EF_ERROR_SHIFT) return((1u << bit) & m_event_flags[subDet]);
249 
250  return(false);
251 }

◆ setActualInteractionsPerCrossing()

void EventInfo::setActualInteractionsPerCrossing ( float  interactions)
inherited

Setting the number of interactions per crossing:

actual interactions per crossing for the current BCID - for in-time pile-up

Definition at line 185 of file EventInfo.cxx.

185  {
186  // pack interaction into 16 bits saving the precision to the 0.01
187  // level
188  unsigned int ivalue = (unsigned int) (interactions * 100.f);
189 
190  if (ivalue > ACTUAL_INTERACTS_BITS) {
191  std::cout <<
192  "EventInfo::setActualInteractionsPerCrossing *** ERROR ***: trying to store too large of value: interactions/ivalue/max value: "
193  << interactions << " " << ivalue << " " << ACTUAL_INTERACTS_BITS << std::endl;
194  }
195  ivalue &= ACTUAL_INTERACTS_BITS;
196  // If event_flags has been cleared on input, reset size AND INCLUDE lumi
197  if (m_event_flags.size() < nDets) m_event_flags.resize(nDets, 0);
198  m_event_flags[Lumi] |= ivalue; // store lower 16 bits
199 }

◆ setAverageInteractionsPerCrossing()

void EventInfo::setAverageInteractionsPerCrossing ( float  interactions)
inherited

average interactions per crossing for all BCIDs - for out-of-time pile-up

Definition at line 202 of file EventInfo.cxx.

202  {
203  // pack interaction into 16 bits saving the precision to the 0.01
204  // level
205  unsigned int ivalue = (unsigned int) (interactions * 100.f);
206 
207  if (ivalue > ACTUAL_INTERACTS_BITS) {
208  std::cout <<
209  "EventInfo::setAverageInteractionsPerCrossing *** ERROR ***: trying to store too large of value: interactions/ivalue/max value: "
210  << interactions << " " << ivalue << " " << ACTUAL_INTERACTS_BITS << std::endl;
211  }
212  ivalue = (ivalue << AVE_INTERACTS_SHIFT) & AVE_INTERACTS_BITS;
213  // If event_flags has been cleared on input, reset size AND INCLUDE lumi
214  if (m_event_flags.size() < nDets) m_event_flags.resize(nDets, 0);
215  m_event_flags[Lumi] |= ivalue; // store upper 16 bits
216 }

◆ setErrorState()

bool EventInfo::setErrorState ( EventFlagSubDet  subDet,
EventFlagErrorState  errorState 
)
inherited

Set error state flag for a particular sub detector.

Returns true is successfully inserted (i.e. valid subDet).

Definition at line 168 of file EventInfo.cxx.

168  {
169  // If event_flags has been cleared on input, reset size to just
170  // before lumi
171  if (m_event_flags.size() < (unsigned int) Lumi) m_event_flags.resize(Lumi, 0);
172  // check that subdet index is in range and that we have a valid error state
173  if ((unsigned) subDet < m_event_flags.size() &&
174  (errorState == NotSet || errorState == Warning || errorState == Error)) {
175  // Combine potentially-existing flags with new error states
176  m_event_flags[subDet] =
177  (unsigned int) ((EF_BITS & m_event_flags[subDet]) | ((unsigned int) errorState << EF_ERROR_SHIFT));
178  return(true);
179  }
180  return(false);
181 }

◆ setEventFlagBit()

bool EventInfo::setEventFlagBit ( EventFlagSubDet  subDet,
unsigned char  bit,
bool  set = true 
)
inherited

Set a bit for an event flag of a particular sub detector.

bit range is 0 - 27. Returns true is successfully inserted (i.e. valid subDet and bit value). Use 'set = false' to unset the bit, default it true.

Definition at line 149 of file EventInfo.cxx.

149  {
150  // If event_flags has been cleared on input, reset size to just
151  // before lumi
152  if (m_event_flags.size() < (unsigned int) Lumi) m_event_flags.resize(Lumi, 0);
153  if ((unsigned) subDet < m_event_flags.size() && bit < EF_ERROR_SHIFT) {
154  if (set) {
155  m_event_flags[subDet] = (EF_ERROR_BITS & m_event_flags[subDet]) |
156  ((1u << bit) | m_event_flags[subDet]);
157  } else {
158  unsigned int mask = EF_BITS ^ (1u << bit);
159  m_event_flags[subDet] = (EF_ERROR_BITS & m_event_flags[subDet]) |
160  (mask & m_event_flags[subDet]);
161  }
162  return(true);
163  }
164  return(false);
165 }

◆ setEventFlags()

bool EventInfo::setEventFlags ( EventFlagSubDet  subDet,
unsigned int  flags 
)
inherited

Set event flag for a particular sub detector - maximun size is 28 bits.

The bits beyond this will be ignored. Returns true is successfully inserted (i.e. valid subDet).

Definition at line 136 of file EventInfo.cxx.

136  {
137  // If event_flags has been cleared on input, reset size to just
138  // before lumi
139  if (m_event_flags.size() < (unsigned int) Lumi) m_event_flags.resize(Lumi, 0);
140  if ((unsigned) subDet < m_event_flags.size()) {
141  // Combine potentially-existing error states with new flags
142  m_event_flags[subDet] = (EF_ERROR_BITS & m_event_flags[subDet]) | (EF_BITS & flags);
143  return(true);
144  }
145  return(false);
146 }

◆ setEventID()

void EventInfo::setEventID ( EventID pid)
protectedinherited

Definition at line 118 of file EventInfo.cxx.

118  {
119  delete m_event_ID;
120  m_event_ID = pid;
121 }

◆ setEventType()

void EventInfo::setEventType ( EventType pType)
protectedinherited

Definition at line 124 of file EventInfo.cxx.

124  {
125  delete m_event_type;
126  m_event_type = pType;
127 }

◆ setTriggerInfo()

void EventInfo::setTriggerInfo ( TriggerInfo pTrig)
inherited

Add TriggerInfo to existing object.

Definition at line 130 of file EventInfo.cxx.

130  {
131  delete m_trigger_info;
132  m_trigger_info = pTrig;
133 }

◆ trigger_info() [1/2]

TriggerInfo * EventInfo::trigger_info ( )
inlineinherited

trigger information (ptr may be NULL)

Definition at line 230 of file EventInfo/EventInfo/EventInfo.h.

230  {
231  return(m_trigger_info);
232 }

◆ trigger_info() [2/2]

const TriggerInfo * EventInfo::trigger_info ( ) const
inlineinherited

Definition at line 235 of file EventInfo/EventInfo/EventInfo.h.

235  {
236  return(m_trigger_info);
237 }

Member Data Documentation

◆ m_event_flags

std::vector<unsigned int> EventInfo::m_event_flags
privateinherited

Definition at line 204 of file EventInfo/EventInfo/EventInfo.h.

◆ m_event_ID

EventID* EventInfo::m_event_ID
privateinherited

Definition at line 201 of file EventInfo/EventInfo/EventInfo.h.

◆ m_event_type

EventType* EventInfo::m_event_type
privateinherited

Definition at line 202 of file EventInfo/EventInfo/EventInfo.h.

◆ m_subEvents

std::list<SubEvent> PileUpEventInfo::m_subEvents
private

Definition at line 137 of file PileUpEventInfo.h.

◆ m_trigger_info

TriggerInfo* EventInfo::m_trigger_info
privateinherited

Definition at line 203 of file EventInfo/EventInfo/EventInfo.h.


The documentation for this class was generated from the following files:
EventInfo::Error
@ Error
Definition: EventInfo/EventInfo/EventInfo.h:60
EventInfo::BCMBeamVeto
@ BCMBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:78
EventInfo::MBTSBeamVeto
@ MBTSBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:77
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
get_generator_info.result
result
Definition: get_generator_info.py:21
EventInfo::Warning
@ Warning
Definition: EventInfo/EventInfo/EventInfo.h:60
EventInfo::CosmicCombinedTight
@ CosmicCombinedTight
Definition: EventInfo/EventInfo/EventInfo.h:85
EventInfo::HaloTileClusterPattern
@ HaloTileClusterPattern
Definition: EventInfo/EventInfo/EventInfo.h:82
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
EventInfo::m_event_flags
std::vector< unsigned int > m_event_flags
Definition: EventInfo/EventInfo/EventInfo.h:204
EventInfo::PixSPNonEmpty
@ PixSPNonEmpty
Definition: EventInfo/EventInfo/EventInfo.h:72
EventInfo::CSCTimeDiffHalo
@ CSCTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:74
AthenaPoolTestRead.flags
flags
Definition: AthenaPoolTestRead.py:8
EventInfo::MBTSTimeDiffCol
@ MBTSTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:70
EventInfo::Tile
@ Tile
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::BkgdResvBit5
@ BkgdResvBit5
Definition: EventInfo/EventInfo/EventInfo.h:88
EventInfo::SCTSPNonEmpty
@ SCTSPNonEmpty
Definition: EventInfo/EventInfo/EventInfo.h:73
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
EventInfo::NBackgroundWords
@ NBackgroundWords
Definition: EventInfo/EventInfo/EventInfo.h:89
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
EventInfo::EF_ERROR_SHIFT
@ EF_ERROR_SHIFT
Definition: EventInfo/EventInfo/EventInfo.h:196
EventInfo::SCT
@ SCT
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::errorState
EventFlagErrorState errorState(EventFlagSubDet subDet) const
return error state for a particular sub-detector
Definition: EventInfo/EventInfo/EventInfo.h:260
EventInfo::classID
static const CLID & classID()
Definition: EventInfo/EventInfo/EventInfo.h:302
EventInfo::TRT
@ TRT
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::PixMultiplicityHuge
@ PixMultiplicityHuge
Definition: EventInfo/EventInfo/EventInfo.h:72
EventInfo::ForwardDet
@ ForwardDet
Definition: EventInfo/EventInfo/EventInfo.h:54
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
EventInfo::nDets
@ nDets
Definition: EventInfo/EventInfo/EventInfo.h:54
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
EventInfo::EventFlagErrorState
EventFlagErrorState
Definition: EventInfo/EventInfo/EventInfo.h:59
EventInfo::BkgdResvBit4
@ BkgdResvBit4
Definition: EventInfo/EventInfo/EventInfo.h:87
EventInfo::HaloMuonOneSided
@ HaloMuonOneSided
Definition: EventInfo/EventInfo/EventInfo.h:81
python.LArBadChannelDBAlg.xFFFFFFFF
xFFFFFFFF
Definition: LArBadChannelDBAlg.py:73
EventInfo::NotSet
@ NotSet
Definition: EventInfo/EventInfo/EventInfo.h:60
EventInfo::LUCIDBeamVeto
@ LUCIDBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:79
PileUpEventInfo::m_subEvents
std::list< SubEvent > m_subEvents
Definition: PileUpEventInfo.h:137
EventInfo::SCTMultiplicityHuge
@ SCTMultiplicityHuge
Definition: EventInfo/EventInfo/EventInfo.h:73
EventInfo::Core
@ Core
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::ACTUAL_INTERACTS_BITS
@ ACTUAL_INTERACTS_BITS
Definition: EventInfo/EventInfo/EventInfo.h:197
EventInfo::BCMTimeDiffHalo
@ BCMTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:75
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
EventInfo::BkgdResvBit1
@ BkgdResvBit1
Definition: EventInfo/EventInfo/EventInfo.h:86
EventInfo::HaloClusterShape
@ HaloClusterShape
Definition: EventInfo/EventInfo/EventInfo.h:80
EventInfo::BkgdResvBit3
@ BkgdResvBit3
Definition: EventInfo/EventInfo/EventInfo.h:87
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:224
EventInfo::CosmicCombined
@ CosmicCombined
Definition: EventInfo/EventInfo/EventInfo.h:85
EventInfo::BeamGasPixel
@ BeamGasPixel
Definition: EventInfo/EventInfo/EventInfo.h:83
EventInfo::EventInfo
EventInfo()
Definition: EventInfo.cxx:20
EventInfo::CSCTimeDiffCol
@ CSCTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:74
EventInfo::m_event_type
EventType * m_event_type
Definition: EventInfo/EventInfo/EventInfo.h:202
EventInfo::AVE_INTERACTS_SHIFT
@ AVE_INTERACTS_SHIFT
Definition: EventInfo/EventInfo/EventInfo.h:199
EventInfo::BkgdResvBit2
@ BkgdResvBit2
Definition: EventInfo/EventInfo/EventInfo.h:86
EventInfo::HaloMuonTwoSided
@ HaloMuonTwoSided
Definition: EventInfo/EventInfo/EventInfo.h:81
EventInfo::m_event_ID
EventID * m_event_ID
Definition: EventInfo/EventInfo/EventInfo.h:201
EventInfo::MuonTimingCosmic
@ MuonTimingCosmic
Definition: EventInfo/EventInfo/EventInfo.h:76
EventInfo::Muon
@ Muon
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::Lumi
@ Lumi
Definition: EventInfo/EventInfo/EventInfo.h:54
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
EventInfo::EF_ERROR_BITS
@ EF_ERROR_BITS
Definition: EventInfo/EventInfo/EventInfo.h:195
EventInfo::LArECTimeDiffHalo
@ LArECTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:71
EventInfo::CosmicStandAloneTight
@ CosmicStandAloneTight
Definition: EventInfo/EventInfo/EventInfo.h:84
EventInfo::LAr
@ LAr
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::MuonTimingCol
@ MuonTimingCol
Definition: EventInfo/EventInfo/EventInfo.h:76
EventInfo::EF_BITS
@ EF_BITS
Definition: EventInfo/EventInfo/EventInfo.h:194
EventInfo::m_trigger_info
TriggerInfo * m_trigger_info
Definition: EventInfo/EventInfo/EventInfo.h:203
EventInfo::Pixel
@ Pixel
Definition: EventInfo/EventInfo/EventInfo.h:54
EventInfo::HaloMuonSegment
@ HaloMuonSegment
Definition: EventInfo/EventInfo/EventInfo.h:80
EventInfo::AVE_INTERACTS_BITS
@ AVE_INTERACTS_BITS
Definition: EventInfo/EventInfo/EventInfo.h:198
EventInfo::BCMTimeDiffCol
@ BCMTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:75
EventInfo::LArECTimeDiffCol
@ LArECTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:71
readCCLHist.float
float
Definition: readCCLHist.py:83
EventInfo::CosmicStandAlone
@ CosmicStandAlone
Definition: EventInfo/EventInfo/EventInfo.h:84
EventInfo::MBTSTimeDiffHalo
@ MBTSTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:70
EventInfo::Background
@ Background
Definition: EventInfo/EventInfo/EventInfo.h:54