|
ATLAS Offline Software
|
Go to the documentation of this file.
3 #include "GaudiKernel/StatusCode.h"
4 #include "AthLinks/ElementLink.h"
28 return StatusCode::SUCCESS;
37 ATH_CHECK( trigEmClusterCollection.
record(std::make_unique<xAOD::TrigEMClusterContainer>(),
38 std::make_unique<xAOD::TrigEMClusterAuxContainer>()) );
43 if (!roisHandle.isValid()) {
45 return StatusCode::SUCCESS;
48 trigEmClusterCollection->
reserve(roisHandle->size());
51 ATH_MSG_DEBUG(
"RoI descriptor size is " << roisHandle->size() );
56 double etamin, etamax, phimin, phimax;
58 ATH_MSG_INFO(
"RoI eta = " << roiDescriptor->eta() <<
" RoI phi = " << roiDescriptor->phi());
67 etaL1 = roiDescriptor->eta();
68 phiL1 = roiDescriptor->phi();
71 roiDescriptor->phi(), phimin, phimax);
75 " phimin = " << phimin <<
" phimax = " << phimax);
78 trigEmClusterCollection->
push_back(ptrigEmCluster);
80 ptrigEmCluster->
setEt(0.0);
98 for (
int i = 0;
i < CaloSampling::CaloSample::MINIFCAL0;
i++) {
103 ptrigEmCluster->
setEta(etaL1);
104 ptrigEmCluster->
setPhi(phiL1);
107 ptrigEmCluster->
setRoIword(roiDescriptor->roiWord());
112 ATH_CHECK(
tool->execute(*ptrigEmCluster, newroi, caloDDE, context) );
120 return StatusCode::SUCCESS;
void setRawPhi(float)
set Raw Phi (no calibration)
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
SG::WriteHandleKey< xAOD::TrigEMClusterContainer > m_clusterContainerKey
virtual StatusCode execute(const EventContext &context) const override
void setEta(float)
set Eta (calibrated)
Gaudi::Property< double > m_etaWidth
void setE237(float)
set Energy in a 3x7 cluster (no calibration) around hottest cell
ToolHandle< GenericMonitoringTool > m_monTool
void setEnergy(float energy)
set Energy (calibrated)
void setRawEt(float)
set Raw Et (no calibration)
virtual StatusCode initialize() override
T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
void setE233(float)
set Energy in a 3x3 cluster (no calibration) around hottest cell
ToolHandleArray< IReAlgToolCalo > m_emAlgTools
void setEhad1(float)
set hadronic Energy (first hadronic layer)
void setRawEta(float)
set Raw Eta (no calibration)
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
T2CaloEgammaForwardReFastAlgo(const std::string &name, ISvcLocator *pSvcLocator)
void setE277(float)
set Energy in a 7x7 cluster (no calibration) around hottest cell
void setPhi(float)
set Phi (calibrated)
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< CaloBCIDAverage > m_bcidAvgKey
void setEmaxs1(float)
set maximum energy in sampling 1 (strip layer)
::StatusCode StatusCode
StatusCode definition for legacy code.
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
void setE2tsts1(float)
set second maximum energy in sampling 1 (strip layer)
void setWeta2(float)
set cluster width (based on a 3x5 cluster - 2nd layer)
void setFracs1(float)
set Energy in a 7 strips (around hottest strip) minus energy in 3 strips divided by energy in 3 strip...
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
void setEta1(float)
set Eta sampling 1 (strip layer)
Header file to be included by clients of the Monitored infrastructure.
void setRoIword(long)
set RoI Word
Gaudi::Property< double > m_phiWidth
Helper for azimuthal angle calculations.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void setNCells(int)
set number of cells used from RoI
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
void setRawEnergy(float)
set Raw Energy (no calibration)
void setEt(float)
set Et (calibrated)
void setWstot(float)
set width in first layer
Description of a trigger EM cluster.
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey