28 return StatusCode::SUCCESS;
35 return StatusCode::SUCCESS;
57 if(!isMC)
ATH_MSG_ERROR(
"This is data, no scale factors should be used on the data!");
73 myphotons->setStore( myphotonsAux );
85 ATH_MSG_DEBUG(
" photon pt = " << ph->pt() <<
", photon eta = " << ph->eta() );
88 if(!
m_photonSF->getEfficiencyScaleFactor(*ph,SF)){
92 if(!
m_photonSF->getEfficiencyScaleFactorError(*ph,SFerr)){
96 ATH_MSG_DEBUG(
" photon SF = " << SF <<
", photon SF sys error = " << SFerr );
100 ATH_MSG_ERROR(
"PhotonEfficiencyCorrectionTool reported a CP::CorrectionCode::Error");
101 return StatusCode::FAILURE;
107 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
@ Error
Some error happened during the object correction.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode initialize()
virtual StatusCode execute()
virtual ~testAthenaPhotonAlg()
testAthenaPhotonAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize()
ToolHandle< IAsgPhotonEfficiencyCorrectionTool > m_photonSF
The tool handle to our photon efficiency correction.
bool eventType(EventType type) const
Check for one particular bitmask value.
@ IS_SIMULATION
true: simulation, false: data
PhotonAuxContainer_v3 PhotonAuxContainer
Definition of the current photon auxiliary container.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
EventInfo_v1 EventInfo
Definition of the latest event info version.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.
Photon_v1 Photon
Definition of the current "egamma version".