ATLAS Offline Software
Control
PileUpTools
PileUpTools
PileUpTypeHelper.h
Go to the documentation of this file.
1
#ifndef PILEUPTOOLS_PILEUPTYPEHELPER_H
2
#define PILEUPTOOLS_PILEUPTYPEHELPER_H
3
4
#include "
EventInfo/PileUpEventInfo.h
"
5
#include "
xAODEventInfo/EventInfo.h
"
6
#include <map>
7
8
namespace
{
9
PileUpEventInfo::SubEvent::pileup_type
pileupTypeMapper(
xAOD::EventInfo::PileUpType
inType) {
10
11
// A map translating between the AOD and xAOD pileup event types:
12
static
std::map<
xAOD::EventInfo::PileUpType
,
13
PileUpEventInfo::SubEvent::pileup_type
> pileupTypeMap;
14
if
( ! pileupTypeMap.size() ) {
15
#define DECLARE_SE_TYPE( TYPE ) \
16
pileupTypeMap[ xAOD::EventInfo::TYPE ] = PileUpEventInfo::SubEvent::pileup_type::TYPE
17
18
DECLARE_SE_TYPE
(
Unknown
);
19
DECLARE_SE_TYPE
(
Signal
);
20
DECLARE_SE_TYPE
(
MinimumBias
);
21
DECLARE_SE_TYPE
(
Cavern
);
22
DECLARE_SE_TYPE
(
HaloGas
);
23
DECLARE_SE_TYPE
(
HighPtMinimumBias
);
24
DECLARE_SE_TYPE
(
ZeroBias
);
25
#undef DECLARE_SE_TYPE
26
}
27
// And now add a sub-event to the temporary list:
28
auto
typeItr = pileupTypeMap.find( inType );
29
PileUpEventInfo::SubEvent::pileup_type
type
=
PileUpEventInfo::SubEvent::pileup_type::Unknown
;
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
Generated on Tue Jul 2 2024 21:24:17 for ATLAS Offline Software by
1.8.18