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
11const SG::AuxElement::Accessor< uint32_t >
13 std::string name(Iso::toCString(type));
14 name+="CorrBitset";
15 return SG::AuxElement::Accessor< uint32_t >( name );
16 }
17
18const SG::AuxElement::Accessor< float >
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
35 return SG::AuxElement::Accessor< float >( name );
36 }
37
38// Isolation Calo
39const SG::AuxElement::Accessor< float >
41 std::string name(Iso::toCString(type));
42 name+=toCString(corr);
43 name+="Correction";
44 return SG::AuxElement::Accessor< float >( name );
45 }
46
47const SG::AuxElement::Accessor< float >
49 std::string name(Iso::toCString(type));
50 name+=toCString(corr);
51 name+="Correction";
52 return SG::AuxElement::Accessor< float >( name );
53
54 }
55} // namespace xAOD
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)