ATLAS Offline Software
PileUpTypeHelper.h
Go to the documentation of this file.
1 #ifndef PILEUPTOOLS_PILEUPTYPEHELPER_H
2 #define PILEUPTOOLS_PILEUPTYPEHELPER_H
3 
6 #include <map>
7 
8 namespace {
10 
11  // A map translating between the AOD and xAOD pileup event types:
12  static std::map< xAOD::EventInfo::PileUpType,
14  if( ! pileupTypeMap.size() ) {
15 #define DECLARE_SE_TYPE( TYPE ) \
16  pileupTypeMap[ xAOD::EventInfo::TYPE ] = PileUpEventInfo::SubEvent::pileup_type::TYPE
17 
25 #undef DECLARE_SE_TYPE
26  }
27  // And now add a sub-event to the temporary list:
28  auto typeItr = pileupTypeMap.find( inType );
30  if( typeItr != pileupTypeMap.end() ) {
31  type = typeItr->second;
32  }
33  return type;
34  }
35 }
36 #endif //PILEUPTOOLS_PILEUPTYPEHELPER_H
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
PileUpEventInfo.h
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
xAOD::EventInfo_v1::PileUpType
PileUpType
Enumerator describing the types of pileup events.
Definition: EventInfo_v1.h:264
python.PileUpEventType.MinimumBias
int MinimumBias
Definition: PileUpEventType.py:4
DECLARE_SE_TYPE
#define DECLARE_SE_TYPE(TYPE)
python.PileUpEventType.HighPtMinimumBias
int HighPtMinimumBias
Definition: PileUpEventType.py:7
python.PileUpEventType.ZeroBias
int ZeroBias
Definition: PileUpEventType.py:8
python.PileUpEventType.Signal
int Signal
Definition: PileUpEventType.py:3
python.PileUpEventType.HaloGas
int HaloGas
Definition: PileUpEventType.py:6
EventInfo.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.PileUpEventType.Cavern
int Cavern
Definition: PileUpEventType.py:5
PileUpEventInfo::SubEvent::pileup_type
PileUpTimeEventIndex::PileUpType pileup_type
Definition: PileUpEventInfo.h:61