20 return fabs(iclus->
eta(state) ) < 1.5;
24namespace HLT {
namespace MET {
37 const EventContext& context,
42 if (!clusters.isValid())
45 return StatusCode::FAILURE;
53 std::array<METComponent, 4> tcSums;
56 std::size_t componentIdx = 0;
59 if (!isBarrel(iclus, state) )
62 iclus->e(state), iclus->eta(state), iclus->phi(state),
66 std::accumulate(tcSums.begin(), tcSums.end(),
METComponent{}).fillMET(
met);
69 for (std::size_t ii = 0; ii < 4; ++ii)
70 tcSums.at(ii).fillMETComponent(ii,
met);
72 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
FexBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
StatusCode initializeBase(const std::vector< std::string > &componentNames)
Initialize the base class.
Helper struct to build up MET values before moving them into the EDM.
static SignedKinematics fromEnergyEtaPhiM(double energy, double eta, double phi, double mass)
Factory function to construct from energy eta, phi and m.
Gaudi::Property< bool > m_useUncalibrated
Whether to use the uncalibrated clusters or not.
TCFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterKey
Input clusters.
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
virtual StatusCode initialize() override
Initialize the fex.
State
enum of possible signal states.
virtual double eta() const
The pseudorapidity ( ) of the particle.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.