ATLAS Offline Software
Loading...
Searching...
No Matches
Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODPRIMITIVES_ISOLATIONCORRECTION_H
8#define XAODPRIMITIVES_ISOLATIONCORRECTION_H
9#include <bitset>
10#include <vector>
11
12namespace xAOD {
13
14 namespace Iso {
15
21
24
27
30
33
36
39
42
43 }; // enum IsolationCaloCorrection
44
45 static inline const char* toCString(IsolationCaloCorrection corr)
46 {
47 switch (corr)
48 {
49 case noneCaloCorrection: return "none";
50 case coreMuon: return "coreMuon";
51 case core57cells: return "core57cells";
52 case coreCone: return "coreCone";
53 case coreConeSC: return "coreConeSC";
54 case ptCorrection: return "pt";
55 case pileupCorrection: return "pileup";
57 default: return "[Unknown IsolationCaloCorrection]";
58 }
59 }
60
64
67
70
73
76
77 }; // enum IsolationTrackCorrection
78
79 static inline const char* toCString(IsolationTrackCorrection corr)
80 {
81 switch (corr)
82 {
83 case noneTrackCorrection: return "none";
84 case coreTrackPtr: return "coreTrackPtr";
85 case coreTrackCone: return "coreTrackCone";
86 case coreTrackPt: return "coreTrackPt";
87 default: return "[Unknown IsolationTrackCorrection]";
88 }
89 }
90
102
103 static inline const char* toCString(IsolationCorrectionParameter corr)
104 {
105 switch (corr)
106 {
107 case coreEnergy: return "Energy";
108 case coreArea: return "Area";
109 default: return "[Unknown IsolationCorrectionParameter]";
110 }
111 }
112
114 typedef std::bitset<32> IsolationCaloCorrectionBitset;
115 typedef std::bitset<32> IsolationTrackCorrectionBitset;
116
117 }
118}
119
120#endif
Namespace holding the IsolationType enumeration.
std::bitset< 32 > IsolationCaloCorrectionBitset
typedef of the bit word used to encode the corrections used to calculate the isolation
@ coreTrackPt
pT of the track (needed by trigger)
static const char * toCString(IsolationConeSize conesize)
@ coreArea
area used to calculate this correction
IsolationCaloCorrection
Enumeration for different ways of correcting isolation in xAOD files.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.