ATLAS Offline Software
Loading...
Searching...
No Matches
HIEventSelectionToolRun3.cxx File Reference
Include dependency graph for HIEventSelectionToolRun3.cxx:

Go to the source code of this file.

Functions

float calcFcalEt (const xAOD::HIEventShapeContainer *es)
float calcZDCE (const xAOD::ZdcModuleContainer *zdcModules)

Function Documentation

◆ calcFcalEt()

float calcFcalEt ( const xAOD::HIEventShapeContainer * es)

Definition at line 73 of file HIEventSelectionToolRun3.cxx.

73 {
74 float et = 0;
75 for (auto slice : *es) {
76 const static std::set fcalLayers({21, 22, 23});
77 if (fcalLayers.contains(slice->layer()))
78 et += slice->et();
79 }
80 return et * 1e-6; // we operate in TeV
81}
Extra patterns decribing particle interation process.

◆ calcZDCE()

float calcZDCE ( const xAOD::ZdcModuleContainer * zdcModules)

Definition at line 82 of file HIEventSelectionToolRun3.cxx.

82 {
83 float e = 0;
84 static const SG::ConstAccessor<float> calibEnergyAccessor("CalibEnergy");
85 for (auto module : *zdcModules) {
86 e += calibEnergyAccessor(*module);
87 }
88 return e * 1e-3; // we operate in GeV
89}
Helper class to provide constant type-safe access to aux data.