|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "CaloGeoHelpers/CaloSampling.h"
36 namespace HLT {
namespace MET {
47 std::vector<std::string> componentNames;
48 componentNames.reserve(N_SAMPLINGS);
49 for (std::size_t ii = 0; ii < N_SAMPLINGS; ++ii)
56 const EventContext& context,
64 return StatusCode::FAILURE;
71 return StatusCode::FAILURE;
75 std::array<METComponent, N_SAMPLINGS> sums;
82 noiseCDO->getEffectiveSigma(
icell->ID(),
icell->gain(),
icell->energy() ) :
83 noiseCDO->getNoise(
icell->ID(),
icell->gain() );
97 icell->energy(), dde->eta(), dde->phi() );
100 auto id =
icell->ID();
109 for (std::size_t ii = 0; ii < N_SAMPLINGS; ++ii)
110 sums.at(ii).fillMETComponent(ii,
met);
112 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
SG::ReadHandleKey< CaloCellContainer > m_cellsKey
Input cells.
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Gaudi::Property< bool > m_doTwoGaussianNoise
Use the 'two-gaussian' noise calculation for the TileCal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const CaloCell_ID * m_caloCellID
Fallback option for calo cells which don't have a detector description.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
Initialize the fex.
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< float > m_negNoiseThreshold
The maximum negative cell energy.
Gaudi::Property< float > m_absNoiseThreshold
The threshold on the magnitude of the cell energy.
static SignedKinematics fromEnergyEtaPhi(double energy, double eta, double phi)
Factory function to construct from energy, eta, phi (massless)
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.
CellFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
StatusCode initialize(bool used=true)
int phi(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Data object for each calorimeter readout cell.
Class holding the Missing ET trigger fex results.
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Calorimeter noise CDO (conditions data object)