7#include "Identifier/Identifier.h"
26 size_t size = transCont->
size();
27 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
" *** Writing CaloCalibrationHitContainer_p2 of size:"<<size<<
endmsg;
30 std::vector<float> tempE; tempE.reserve(size*4);
38 std::multimap <unsigned int, unsigned int> map_hashPositions;
40 for (
unsigned int w=0;w<size;++w){
43 unsigned int id = (*it)->cellID().get_identifier32().get_compact();
51 map_hashPositions.insert(std::pair<unsigned int, int>(
id, w));
61 std::multimap<unsigned int, unsigned int>::const_iterator iter;
63 for (iter=map_hashPositions.begin(); iter != map_hashPositions.end(); ++iter) {
65 unsigned int pHash=(iter->first)-old;
67 unsigned int pos=iter->second;
70 tempE.push_back( (
float) hit.
energyEM() );
90 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
" *** Reading CaloCalibrationHitContainer of size: "<<cells<<
endmsg;
100 std::vector<float> tempE; tempE.reserve(cells*4);
101 A.expandToFloat(persCont->
m_energy,tempE);
104 for (
unsigned int i=0;i<cells;++i){
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
void reserve(size_type n)
void setName(const std::string &name)
const T * At(unsigned int pos) const
const_iterator begin() const
const std::string & Name() const
virtual void persToTrans(const CaloCalibrationHitContainer_p2 *persColl, CaloCalibrationHitContainer *transColl, MsgStream &log)
virtual void transToPers(const CaloCalibrationHitContainer *transColl, CaloCalibrationHitContainer_p2 *persColl, MsgStream &log)
Persistent represenation of a CaloCalibrationContainer,.
std::vector< unsigned int > m_channelHash
const std::string & name() const
std::vector< unsigned int > m_energy
Class to store calorimeter calibration hit.
double energyNonEM() const
double energyEscaped() const
double energyInvisible() const
hold the test vectors and ease the comparison