|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
30 std::vector<float> tempE; tempE.reserve(
size*4);
31 std::vector<unsigned int> tempPID; tempPID.reserve(
size);
39 std::multimap <unsigned int, unsigned int> map_hashPositions;
41 for (
unsigned int w=0;
w<
size;++
w){
44 unsigned int id = (*it)->cellID().get_identifier32().get_compact();
52 map_hashPositions.insert(std::pair<unsigned int, int>(
id,
w));
62 std::multimap<unsigned int, unsigned int>::const_iterator iter;
64 for (iter=map_hashPositions.begin(); iter != map_hashPositions.end(); ++iter) {
66 unsigned int pHash=(iter->first)-
old;
68 unsigned int pos=iter->second;
71 tempE.push_back( (
float) hit.
energyEM() );
75 tempPID.push_back( (
unsigned int) hit.
particleID() );
104 std::vector<float> tempE; tempE.reserve(
cells*4);
105 A.expandToFloat(persCont->
m_energy,tempE);
const std::string & Name() const
double energyNonEM() const
constexpr int INVALID_PARTICLE_ID
virtual void persToTrans(const CaloCalibrationHitContainer_p3 *persColl, CaloCalibrationHitContainer *transColl, MsgStream &log)
const std::string & name() const
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
void reserve(size_type n)
virtual void transToPers(const CaloCalibrationHitContainer *transColl, CaloCalibrationHitContainer_p3 *persColl, MsgStream &log)
double energyInvisible() const
std::vector< unsigned int > m_particleID
Class to store calorimeter calibration hit.
void setName(const std::string &name)
Persistent represenation of a CaloCalibrationContainer,.
std::vector< unsigned int > m_energy
std::vector< unsigned int > m_channelHash
const T * At(unsigned int pos) const
double energyEscaped() const
const_iterator begin() const