|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
30 std::vector<float> tempE;
31 tempE.reserve(
size*4);
32 std::vector<unsigned int> tempPID; tempPID.reserve(
size);
36 std::multimap <unsigned int, unsigned int> map_hashPositions;
38 for (
unsigned int w=0;
w<
size;++
w) {
40 unsigned int id = (*it)->cellID().get_identifier32().get_compact();
41 map_hashPositions.insert(std::pair<unsigned int, int>(
id,
w));
45 std::multimap<unsigned int, unsigned int>::const_iterator iter;
47 for (iter=map_hashPositions.begin(); iter != map_hashPositions.end(); ++iter) {
48 unsigned int pHash=(iter->first)-
old;
50 unsigned int pos=iter->second;
53 tempE.push_back(
static_cast<float>(hit.
energyEM()) );
54 tempE.push_back(
static_cast<float>(hit.
energyNonEM()) );
57 tempPID.push_back(
static_cast<unsigned int>(hit.
particleUID()) );
78 std::vector<float> tempE;
79 tempE.reserve(
cells*4);
80 A.expandToFloat(persCont->
m_energy,tempE);
const std::string & name() const
const std::string & Name() const
double energyNonEM() const
std::vector< unsigned int > m_particleUID
virtual void persToTrans(const CaloCalibrationHitContainer_p4 *persColl, CaloCalibrationHitContainer *transColl, MsgStream &log)
constexpr int INVALID_PARTICLE_ID
std::vector< unsigned int > m_channelHash
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
void reserve(size_type n)
double energyInvisible() const
Class to store calorimeter calibration hit.
void setName(const std::string &name)
Persistent represenation of a CaloCalibrationContainer,.
std::vector< unsigned int > m_energy
virtual void transToPers(const CaloCalibrationHitContainer *transColl, CaloCalibrationHitContainer_p4 *persColl, MsgStream &log)
const T * At(unsigned int pos) const
double energyEscaped() const
const_iterator begin() const