Loading [MathJax]/jax/output/SVG/config.js
 |
ATLAS Offline Software
|
#include <LArHitEMap.h>
|
| LArHitEMap ()=delete |
|
| LArHitEMap (const LArOnOffIdMapping *cabling, const CaloCell_ID *cellid, const CaloDetDescrManager *cddMgr, bool digit=false) |
|
| ~LArHitEMap ()=default |
|
bool | AddEnergy (const IdentifierHash index, const float energy, const float time) |
|
bool | AddEnergy (const Identifier cellid, const float energy, const float time) |
|
bool | BuildWindows (const McEventCollection *mcCollptr, float deta, float dphi, float ptmin) |
|
int | GetNbCells (void) const |
|
const LArHitList & | GetCell (const unsigned int index) const |
|
const std::vector< std::pair< float, float > > & | GetTimeE (const IdentifierHash index) const |
|
bool | AddDigit (const LArDigit *digit) |
|
const LArDigit * | GetDigit (unsigned int index) const |
|
Definition at line 21 of file LArHitEMap.h.
◆ DIGMAP
◆ LArHitEMap() [1/2]
LArHitEMap::LArHitEMap |
( |
| ) |
|
|
delete |
◆ LArHitEMap() [2/2]
◆ ~LArHitEMap()
LArHitEMap::~LArHitEMap |
( |
| ) |
|
|
default |
◆ AddDigit()
◆ AddEnergy() [1/2]
◆ AddEnergy() [2/2]
◆ BuildWindows()
Definition at line 69 of file LArHitEMap.cxx.
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)
◆ GetCell()
◆ GetDigit()
◆ GetNbCells()
int LArHitEMap::GetNbCells |
( |
void |
| ) |
const |
◆ GetTimeE()
◆ m_cabling
◆ m_calocell_id
◆ m_cddMgr
◆ m_digmap
◆ m_emap
The documentation for this class was generated from the following files:
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
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
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
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.
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
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.