|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CaloDetDescr/CaloDetDescrElement.h"
10 #include "Identifier/Identifier.h"
24 m_calocell_id(cellid),
32 m_emap.resize(fcalCellMax);
70 float deta,
float dphi,
float ptmin)
73 std::vector<double> phiPart;
74 std::vector<double> etaPart;
85 for (itr = mcCollptr->
begin(); itr!=mcCollptr->
end(); ++itr) {
86 for (
const auto&
part: *(*itr))
94 etaPart.push_back(
part->momentum().pseudoRapidity());
95 phiPart.push_back(
part->momentum().phi());
101 if ( etaPart.empty())
return true;
103 for (
unsigned int i=0;
i <
m_emap.size();
i++)
107 double eta=calodde->
eta();
108 double phi=calodde->
phi();
109 for(
unsigned int iPart=0;iPart<etaPart.size();++iPart)
Const iterator class for DataVector/DataList.
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
Scalar phi() const
phi method
const CaloCell_ID * m_calocell_id
Scalar eta() const
pseudorapidity method
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
bool AddEnergy(const IdentifierHash index, const float energy, const float time)
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
bool AddDigit(const LArDigit *digit)
const LArOnOffIdMapping * m_cabling
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...
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
const CaloDetDescrManager * m_cddMgr
Liquid Argon digit base class.
void calo_cell_hash_range(const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const
to loop on 'global' cell hashes of one sub-calorimeter alone
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
std::vector< LArHitList > m_emap
bool BuildWindows(const McEventCollection *mcCollptr, float deta, float dphi, float ptmin)
Helper class for offline cell identifiers.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool isStable(const T &p)
Identify if the particle is stable, i.e. has not decayed.
This class provides the client interface for accessing the detector description information common to...
def time(flags, cells_name, *args, **kw)
Identifier cnvToIdentifier(const HWIdentifier &sid) const
create an Identifier from a HWIdentifier (inline)
bool isPhoton(const xAOD::Egamma *eg)
is the object a photon
float eta() const
cell eta
float phi() const
cell phi
int GetNbCells(void) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
bool isOnlineConnected(const HWIdentifier &sid) const
Test whether a HWIdentifier is connected of not (inline)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.