|
ATLAS Offline Software
|
Go to the documentation of this file.
30 return StatusCode::SUCCESS;
39 ATH_CHECK( trigPhotoColl.record (std::make_unique<xAOD::TrigPhotonContainer>(),
40 std::make_unique<xAOD::TrigEMClusterAuxContainer>()) );
45 if (roiCollection->size()==0) {
47 return StatusCode::SUCCESS;
53 <<
", Phi = " << (roiDescriptor)->
phi());
56 double etaRef = roiDescriptor->
eta();
57 double phiRef = roiDescriptor->
phi();
59 if ( fabs(phiRef) >
M_PI ) phiRef -= 2*
M_PI;
76 ATH_MSG_ERROR(
"Failed to retieve TrigEMCluster from the ElementLink");
77 return StatusCode::SUCCESS;
80 float dEta = pClus->
eta() - etaRef;
82 float dPhi = fabs(pClus->
phi() - phiRef);
85 <<
" and dPhi= " <<
dPhi);
90 trigPhotoColl->push_back(p_trigPhoton);
94 ATH_MSG_DEBUG(
"REGTEST: TrigPhotonContainer has " << trigPhotoColl->size()<<
" element");
95 if (!trigPhotoColl->empty()) {
98 <<
"; eta=" << p_tp->
eta()
99 <<
"; phi=" << p_tp->
phi()
101 <<
"; Had Et=" << p_tp->
etHad()
102 <<
"; EnergyRatio=" << p_tp->
eratio()
103 <<
"; rCore=" << p_tp->
rcore());
105 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::TrigEMClusterContainer > m_TrigEMClusterContainerKey
float eta() const
get Eta (calibrated)
void init(uint32_t roi, float dphi, float deta, const EMClusterLink_t &clLink)
Initialisation function, setting most properties of the object.
Scalar phi() const
phi method
virtual double phi() const
The azimuthal angle ( ) of the particle.
Scalar eta() const
pseudorapidity method
uint32_t roiWord() const
Get the RoI word that seeded the reconstruction of this object.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
float eratio() const
Documentation to be added.
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
TrigEgammaFastPhotonReAlgo(const std::string &name, ISvcLocator *pSvcLocator)
virtual double eta() const
The pseudorapidity ( ) of the particle.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
float phi() const
get Phi (calibrated)
TrigPhoton_v1 TrigPhoton
Declare the latest version of TrigPhoton.
virtual StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
setTeId setLumiBlock roiId
SG::WriteHandleKey< xAOD::TrigPhotonContainer > m_outputPhotonsKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ElementLink implementation for ROOT usage.
Class describing a photon reconstructed in the HLT.
virtual StatusCode initialize() override
float etHad() const
Documentation to be added.
virtual unsigned int roiId() const override final
these quantities probably don't need to be used any more
virtual double phi() const override final
Methods to retrieve data members.
float rcore() const
Documentation to be added.
virtual double eta() const override final
float et() const
get Et (calibrated)
const TrigEMCluster * emCluster() const
The associated EM cluster, as a simple pointer.
Description of a trigger EM cluster.
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)