ATLAS Offline Software
Loading...
Searching...
No Matches
getIsolationCorrectionAccessor.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
6// Local include(s):
8#include <stdexcept>
9namespace xAOD {
10
17
21 std::string name(Iso::toCString(type));
22 if (corr == Iso::coreCone || corr == Iso::coreConeSC || corr == Iso::coreMuon){
23 name+=toCString(corr);
24 }else{
25 name = toCString(corr);
26 }
27
28 if (param==xAOD::Iso::coreEnergy || param==xAOD::Iso::coreArea){
29 name+=toCString(param );
30 }else{
31 throw std::runtime_error("IsolationCorrectionParameter out of bounds");
32 }
33 name+="Correction";
34
36 }
37
38// Isolation Calo
46
55} // namespace xAOD
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
IsolationType
Overall enumeration for isolation types in xAOD files.
IsolationFlavour
Enumeration for different ways of calculating isolation in xAOD files.
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.
const SG::AuxElement::Accessor< uint32_t > getIsolationCorrectionBitsetAccessor(Iso::IsolationFlavour type)
Returns an accessor for the correction bitset corresponding to this IsolationType.
const SG::AuxElement::Accessor< float > getIsolationCorrectionAccessor(Iso::IsolationFlavour type, Iso::IsolationCaloCorrection corr, Iso::IsolationCorrectionParameter param)