|
ATLAS Offline Software
|
Implementation for the photon pointing tool.
More...
#include <PhotonPointingTool.h>
|
| PhotonPointingTool (const std::string &name) |
|
virtual | ~PhotonPointingTool () |
|
virtual void | print () const =0 |
| Print the state of the tool. More...
|
|
virtual StatusCode | sysInitialize () |
| Function initialising the tool in the correct way in Athena. More...
|
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
virtual StatusCode | initialize () |
| Function initialising the tool. More...
|
|
|
StatusCode | updatePointingAuxdata (const xAOD::EgammaContainer &egammas) const |
| Add calo and conversion (HPV) pointing variables. More...
|
|
std::pair< float, float > | getCaloPointing (const xAOD::Egamma *egamma) const |
| Return calo pointing variables. More...
|
|
std::pair< float, float > | getConvPointing (const xAOD::Photon *photon) const |
| Return conversion (HPV) pointing variables. More...
|
|
Implementation for the photon pointing tool.
Takes photon shower shape and/or conversion vertex and extrapolates back to beamline
- Author
- Christopher Meyer chris.nosp@m..mey.nosp@m.er@ce.nosp@m.rn.c.nosp@m.h
Definition at line 35 of file PhotonPointingTool.h.
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
◆ StoreGateSvc_t
◆ PhotonPointingTool()
CP::PhotonPointingTool::PhotonPointingTool |
( |
const std::string & |
name | ) |
|
◆ ~PhotonPointingTool()
CP::PhotonPointingTool::~PhotonPointingTool |
( |
| ) |
|
|
virtual |
◆ beginEvent()
StatusCode asg::AsgMetadataTool::beginEvent |
( |
| ) |
|
|
protectedvirtualinherited |
Function called when a new events is loaded.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.
Definition at line 196 of file AsgMetadataTool.cxx.
199 return StatusCode::SUCCESS;
◆ beginInputFile()
StatusCode asg::AsgMetadataTool::beginInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
Function called when a new input file is opened.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.
Definition at line 180 of file AsgMetadataTool.cxx.
183 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ endInputFile()
StatusCode asg::AsgMetadataTool::endInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ getCaloPointing()
std::pair< float, float > CP::PhotonPointingTool::getCaloPointing |
( |
const xAOD::Egamma * |
egamma | ) |
const |
|
virtual |
Return calo pointing variables.
Implements CP::IPhotonPointingTool.
Definition at line 174 of file PhotonPointingTool.cxx.
178 return std::make_pair(0,0);
183 if(!eventInfo.isValid()){
184 ATH_MSG_WARNING(
"Couldn't retrieve EventInfo from TEvent, egamma won't be decorated.");
185 return std::make_pair(0, 0);
189 double d_beamSpot = hypot(eventInfo->beamPosY(), eventInfo->beamPosX());
190 double phi_beamSpot = atan2(eventInfo->beamPosY(), eventInfo->beamPosX());
194 if (cluster ==
nullptr) {
195 ATH_MSG_WARNING(
"Couldn't retrieve CaloCluster from Photon, egammas won't be decorated.");
196 return std::make_pair(0, 0);
199 float cl_e = cluster->
e();
200 float etas1 = cluster->
etaBE(1);
201 float etas2 = cluster->
etaBE(2);
202 float phis2 = cluster->
phiBE(2);
203 float cl_theta = 2.0*
atan(
exp(-1.0*cluster->
eta()));
210 double r0_with_beamSpot = d_beamSpot*
cos(phis2 - phi_beamSpot);
212 float s_zvertex = 0, s_errz = 0;
213 s_zvertex = (RZ1.second * (RZ2.first - r0_with_beamSpot) -
214 RZ2.second * (RZ1.first - r0_with_beamSpot)) /
215 (RZ2.first - RZ1.first);
218 s_errz = 0.5 * (RZ2.first + RZ1.first) * (0.060 / sqrt(cl_e * 0.001)) /
219 (
sin(cl_theta) *
sin(cl_theta));
221 return std::make_pair(s_zvertex, s_errz);
◆ getConvPointing()
std::pair< float, float > CP::PhotonPointingTool::getConvPointing |
( |
const xAOD::Photon * |
photon | ) |
const |
|
virtual |
Return conversion (HPV) pointing variables.
Implements CP::IPhotonPointingTool.
Definition at line 225 of file PhotonPointingTool.cxx.
229 return std::make_pair(0,0);
234 if(!eventInfo.isValid()){
235 ATH_MSG_WARNING(
"Couldn't retrieve EventInfo from TEvent, photons won't be decorated.");
236 return std::make_pair(0, 0);
240 double d_beamSpot = hypot(eventInfo->beamPosY(), eventInfo->beamPosX());
241 double phi_beamSpot = atan2(eventInfo->beamPosY(), eventInfo->beamPosX());
245 if (cluster ==
nullptr) {
246 ATH_MSG_WARNING(
"Couldn't retrieve CaloCluster from Photon, photons won't be decorated.");
247 return std::make_pair(0, 0);
250 float etas1 = cluster->
etaBE(1);
251 float phis2 = cluster->
phiBE(2);
254 if (cluster ==
nullptr) {
255 ATH_MSG_WARNING(
"Couldn't retrieve conversion Vertex from Photon, photons won't be decorated.");
256 return std::make_pair(0, 0);
259 float conv_x =
conv->x();
260 float conv_y =
conv->y();
261 float conv_z =
conv->z();
267 double conv_r = hypot(conv_x, conv_y);
270 double phi_Calo = atan2(
sin(phis2),
cos(phis2));
271 double r0_with_beamSpot = d_beamSpot*
cos(phi_Calo - phi_beamSpot);
273 float s_zvertex = (RZ1.second*(conv_r - r0_with_beamSpot) - conv_z*(RZ1.first - r0_with_beamSpot)) / (conv_r - RZ1.first);
275 float dist_vtx_to_conv = hypot(conv_r - r0_with_beamSpot, conv_z - s_zvertex);
276 float dist_conv_to_s1 = hypot(RZ1.first - conv_r, RZ1.second - conv_z);
278 float error_etaS1 = 0.001;
284 float error_Z_Calo_1st_Sampling_barrel = error_etaS1*RZ1.first*fabs(cosh(etas1));
285 s_errz = error_Z_Calo_1st_Sampling_barrel*dist_vtx_to_conv/dist_conv_to_s1;
288 float error_R_Calo_1st_Sampling_endcap = error_etaS1*cosh(etas1)*RZ1.first*RZ1.first/fabs(RZ1.second);
289 s_errz = error_R_Calo_1st_Sampling_endcap*fabs(sinh(etas1))*dist_vtx_to_conv/dist_conv_to_s1;
292 return std::make_pair(s_zvertex, s_errz);
◆ getCorrectedZ()
float CP::PhotonPointingTool::getCorrectedZ |
( |
float |
zPointing, |
|
|
float |
etas2 |
|
) |
| const |
|
private |
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ handle()
void asg::AsgMetadataTool::handle |
( |
const Incident & |
inc | ) |
|
|
protectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent.
Reimplemented in Trig::TrigDecisionTool.
Definition at line 130 of file AsgMetadataTool.cxx.
136 if( inc.type() == IncidentType::BeginInputFile ) {
140 throw std::runtime_error(
"Couldn't call beginInputFile()" );
142 }
else if( inc.type() == IncidentType::EndInputFile ) {
145 throw std::runtime_error(
"Couldn't call endInputFile()" );
147 }
else if( inc.type() == IncidentType::BeginEvent ) {
155 throw std::runtime_error(
"Couldn't call beginInputFile()" );
160 throw std::runtime_error(
"Couldn't call beginEvent()" );
163 #ifdef XAOD_STANDALONE
164 }
else if( inc.type() == IncidentType::MetaDataStop ) {
167 throw std::runtime_error(
"Couldn't call metaDataStop()" );
170 #endif // XAOD_STANDALONE
172 ATH_MSG_WARNING(
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
◆ initialize()
StatusCode CP::PhotonPointingTool::initialize |
( |
| ) |
|
|
virtual |
Function initialising the tool.
Reimplemented from asg::AsgTool.
Definition at line 51 of file PhotonPointingTool.cxx.
72 if (
inputMetaStore()->contains<xAOD::FileMetaData>(
"FileMetaData")) {
75 std::string simType(
"");
88 TFile *
file = TFile::Open(filepath.c_str(),
"READ");
90 if (
file ==
nullptr) {
91 ATH_MSG_WARNING(
"Couldn't find file for z-correction: " << filepath.c_str());
93 return StatusCode::FAILURE;
97 file->GetObject(
"dz_trk_pointing_vs_etas2", temp);
99 if (temp ==
nullptr) {
100 ATH_MSG_WARNING(
"Couldn't find 'dz_trk_pointing_vs_etas2' histogram in file: " << filepath.c_str());
102 return StatusCode::FAILURE;
105 bool status = TH1::AddDirectoryStatus();
106 TH1::AddDirectory(
false);
109 TH1::AddDirectory(
status);
111 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ inputMetaStore()
AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore |
( |
| ) |
const |
|
inherited |
Accessor for the input metadata store.
Definition at line 88 of file AsgMetadataTool.cxx.
90 #ifdef XAOD_STANDALONE
92 #else // XAOD_STANDALONE
94 #endif // XAOD_STANDALONE
◆ metaDataStop()
StatusCode asg::AsgMetadataTool::metaDataStop |
( |
| ) |
|
|
protectedvirtualinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ outputMetaStore()
AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore |
( |
| ) |
const |
|
inherited |
Accessor for the output metadata store.
Definition at line 97 of file AsgMetadataTool.cxx.
99 #ifdef XAOD_STANDALONE
101 #else // XAOD_STANDALONE
103 #endif // XAOD_STANDALONE
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ renounce()
◆ renounceArray()
◆ setUseIncidents()
void asg::AsgMetadataTool::setUseIncidents |
( |
const bool |
flag | ) |
|
|
inlineprotectedinherited |
◆ sysInitialize()
StatusCode asg::AsgMetadataTool::sysInitialize |
( |
| ) |
|
|
virtualinherited |
Function initialising the tool in the correct way in Athena.
This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.
Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.
Definition at line 110 of file AsgMetadataTool.cxx.
112 #ifndef XAOD_STANDALONE
119 incSvc->addListener(
this, IncidentType::BeginEvent, 0,
false );
124 #endif // not XAOD_STANDALONE
127 return StatusCode::SUCCESS;
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updatePointingAuxdata()
Add calo and conversion (HPV) pointing variables.
Implements CP::IPhotonPointingTool.
Definition at line 115 of file PhotonPointingTool.cxx.
117 const EventContext& ctx = Gaudi::Hive::currentContext();
125 bool isDecorAvailable = s_zvertex.isAvailable();
128 std::pair<float, float>
result;
129 for (
const auto *
egamma: egammas) {
138 if(isDecorAvailable){
139 ATH_MSG_DEBUG(
"Called updatePointingAuxdata but decoration is already available");
156 if(!isDecorAvailable){
163 return StatusCode::SUCCESS;
◆ updateVHKA()
◆ m_beginInputFileCalled
bool asg::AsgMetadataTool::m_beginInputFileCalled |
|
privateinherited |
Flag helping to discover when the tool misses the opening of the first input file.
Definition at line 126 of file AsgMetadataTool.h.
◆ m_ContainerName
std::string CP::PhotonPointingTool::m_ContainerName |
|
private |
◆ m_detStore
◆ m_errz
◆ m_errzDecorName
std::string CP::PhotonPointingTool::m_errzDecorName |
|
private |
◆ m_evtInfo
Initial value:{
this,
"EventInfo",
"EventInfo",
"SG key of xAOD::EventInfo"
}
Definition at line 45 of file PhotonPointingTool.h.
◆ m_evtStore
◆ m_HPV_errz
◆ m_HPV_errzDecorName
std::string CP::PhotonPointingTool::m_HPV_errzDecorName |
|
private |
◆ m_HPV_zvertex
◆ m_HPV_zvertexDecorName
std::string CP::PhotonPointingTool::m_HPV_zvertexDecorName |
|
private |
◆ m_inputMetaStore
◆ m_isMC
bool CP::PhotonPointingTool::m_isMC {} |
|
private |
◆ m_outputMetaStore
◆ m_useIncidents
bool asg::AsgMetadataTool::m_useIncidents |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_zCorrection
TH1F* CP::PhotonPointingTool::m_zCorrection |
|
private |
◆ m_zOscFileData
std::string CP::PhotonPointingTool::m_zOscFileData |
|
private |
◆ m_zOscFileMC
std::string CP::PhotonPointingTool::m_zOscFileMC |
|
private |
◆ m_zvertex
◆ m_zvertexDecorName
std::string CP::PhotonPointingTool::m_zvertexDecorName |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
float phiBE(const unsigned layer) const
Get the phi in one layer of the EM Calo.
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Description of a calorimeter cluster.
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
std::size_t numberOfSiTracks(const xAOD::Photon *eg)
return the number of Si tracks in the conversion
virtual double eta() const
The pseudorapidity ( ) of the particle.
Handle class for adding a decoration to an object.
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Photon_v1 Photon
Definition of the current "egamma version".
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
float eSample(const CaloSample sampling) const
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double e() const
The total energy of the particle.