9#include "CaloDetDescr/CaloDetDescrElement.h"
10#include "Identifier/Identifier.h"
32 m_emap.resize(fcalCellMax);
33 if (digit)
m_digmap.resize(fcalCellMax,
nullptr);
52 if (
m_cabling->isOnlineConnected(ch_id)) {
65 float deta,
float dphi,
float ptmin)
68 std::vector<double> phiPart;
69 std::vector<double> etaPart;
80 for (itr = mcCollptr->
begin(); itr!=mcCollptr->
end(); ++itr) {
81 for (
const auto& part: *(*itr))
89 etaPart.push_back(part->momentum().pseudoRapidity());
90 phiPart.push_back(part->momentum().phi());
96 if ( etaPart.empty())
return true;
98 for (
unsigned int i=0; i <
m_emap.size(); i++)
102 double eta=calodde->
eta();
103 double phi=calodde->
phi();
104 for(
unsigned int iPart=0;iPart<etaPart.size();++iPart)
107 double deltaEta=etaPart[iPart]-
eta;
109 std::fabs(deltaEta)<deta/2. )
Scalar eta() const
pseudorapidity method
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Scalar phi() const
phi method
ATLAS-specific HepMC functions.
Header file for AthHistogramAlgorithm.
void calo_cell_hash_range(const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const
to loop on 'global' cell hashes of one sub-calorimeter alone
Helper class for offline cell identifiers.
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
This class provides the client interface for accessing the detector description information common to...
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
This is a "hash" representation of an Identifier.
Liquid Argon digit base class.
bool BuildWindows(const McEventCollection *mcCollptr, float deta, float dphi, float ptmin)
std::vector< LArHitList > m_emap
bool AddEnergy(const IdentifierHash index, const float energy, const float time)
bool AddDigit(const LArDigit *digit)
const CaloCell_ID * m_calocell_id
const LArOnOffIdMapping * m_cabling
const CaloDetDescrManager * m_cddMgr
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
bool isPhoton(const T &p)
bool isElectron(const T &p)
bool isStable(const T &p)
Identify if the particle is stable, i.e. has not decayed.