|
ATLAS Offline Software
|
Go to the documentation of this file.
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() );
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;
def retrieve(aClass, aKey=None)
virtual StatusCode finalize()
testAthenaPhotonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const float SF[NF]
Cross sections for Fluor.
PhotonAuxContainer_v3 PhotonAuxContainer
Definition of the current photon auxiliary container.
@ IS_SIMULATION
true: simulation, false: data
virtual ~testAthenaPhotonAlg()
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ Error
Some error happened during the object correction.
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< IAsgPhotonEfficiencyCorrectionTool > m_photonSF
The tool handle to our photon efficiency correction.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
value_type push_back(value_type pElem)
Add an element to the end of the collection.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
Class describing the basic event information.
virtual StatusCode initialize()
Auxiliary store for offline photons.
#define ATH_MSG_WARNING(x)
virtual StatusCode execute()
size_type size() const noexcept
Returns the number of elements in the collection.
bool eventType(EventType type) const
Check for one particular bitmask value.