ATLAS Offline Software
getIsolationCorrectionDecorator.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Local include(s):
7 #include <stdexcept>
8 namespace xAOD {
9 
12  std::string name(Iso::toCString(type));
13  name+="CorrBitset";
15  }
16 
20  std::string name(Iso::toCString(type));
21  if (corr == Iso::coreCone || corr == Iso::coreConeSC)
22  name+=toCString(corr);
23  else{
24  name = toCString(corr);
25  }
26 
27  if (param==xAOD::Iso::coreEnergy || param==xAOD::Iso::coreArea){
28  name+=toCString(param );
29  }else{
30  throw std::runtime_error("IsolationCorrectionParameter out of bounds");
31  }
32  name+="Correction";
34  }
35 
36 // Isolation Calo
39  std::string name(Iso::toCString(type));
40  name+=toCString(corr);
41  name+="Correction";
43  }
44 
47  std::string name(Iso::toCString(type));
48  name+=toCString(corr);
49  name+="Correction";
51 
52  }
53 } // namespace xAOD
54 
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
getIsolationCorrectionDecorator.h
xAOD::Iso::coreConeSC
@ coreConeSC
core energy (super cluster).
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:38
xAOD::Iso::coreEnergy
@ coreEnergy
energy stored for this correction
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:93
xAOD::Iso::IsolationFlavour
IsolationFlavour
Enumeration for different ways of calculating isolation in xAOD files.
Definition: IsolationFlavour.h:17
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::Iso::IsolationCorrectionParameter
IsolationCorrectionParameter
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:91
xAOD::Iso::coreArea
@ coreArea
area used to calculate this correction
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:96
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition: Decorator.h:58
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition: IsolationType.h:26
xAOD::Iso::IsolationTrackCorrection
IsolationTrackCorrection
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:61
xAOD::getIsolationCorrectionDecorator
const SG::AuxElement::Decorator< float > getIsolationCorrectionDecorator(Iso::IsolationFlavour type, Iso::IsolationCaloCorrection corr, Iso::IsolationCorrectionParameter param)
Definition: getIsolationCorrectionDecorator.cxx:18
xAOD::Iso::coreCone
@ coreCone
core energy (in dR<0.1).
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:29
xAOD::Iso::IsolationCaloCorrection
IsolationCaloCorrection
Enumeration for different ways of correcting isolation in xAOD files.
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::getIsolationCorrectionBitsetDecorator
const SG::AuxElement::Decorator< uint32_t > getIsolationCorrectionBitsetDecorator(Iso::IsolationFlavour type)
Returns an decorator for the correction bitset corresponding to this IsolationType.
Definition: getIsolationCorrectionDecorator.cxx:11