16 if (log.level() <= MSG::DEBUG) log<< MSG::DEBUG <<
"Reading CaloClusterContainerCNV_p3" <<
endmsg;
34 <<
"Not converting CaloClusterContainer.";
41 std::vector<float> temp_Moments;
45 std::vector<float>::const_iterator i_mom = temp_Moments.begin();
48 unsigned int nkeys = keys.size();
50 for(;itp!=itp_e;++itp) {
52 CaloCluster* transCluster = clusters.nextElementPtr();
64 for (
unsigned short i=0;i<nkeys;++i) {
65 transStore.insert (transStore.end(), CaloClusterMomentStore::moment_store::value_type( keys[i], (*i_mom) ) );
85 if (log.level() <= MSG::DEBUG) log<< MSG::DEBUG <<
"Writing CaloClusterContainerCNV_p3" <<
endmsg;
104 for (
int w=0; w<nMom; w++){
114 std::vector<float> temp_Moments;
116 for(;it!=it_e;++it,++itp) {
126 for(;itm!=itm_e;++itm) {
127 temp_Moments.push_back(itm.getMoment().getValue());
148 MsgStream& log)
const
177 MsgStream& log)
const
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
virtual void setAthenaBarCode(AthenaBarCode_t id)
virtual void persToTrans(const CaloClusterContainer_p3 *pers, CaloClusterContainer *trans, MsgStream &log) const override
CaloTowerSegCnv_p1 m_caloTowerSegCnv
ElementLinkCnv_p2< ElementLink< CaloCellLinkContainer > >::State CellLinkState
ElementLinkCnv_p2< ElementLink< CaloShowerContainer > >::State ShowerLinkState
CaloSamplingDataContainerCnv_p1 m_samplingDataContainerCnv
ElementLinkCnv_p2< ElementLink< CaloShowerContainer > > m_showerElementLinkCnv
ElementLinkCnv_p2< ElementLink< CaloCellLinkContainer > > m_cellElementLinkCnv
P4EEtaPhiMCnv_p1 m_P4EEtaPhiMCnv
virtual void transToPers(const CaloClusterContainer *trans, CaloClusterContainer_p3 *pers, MsgStream &log) const override
CaloTowerSeg_p1 m_towerSeg
CaloSamplingDataContainer_p1 m_samplingDataContainer
contType::iterator iterator
CaloClusterMomentContainer_p2 m_momentContainer
ElementLinkContNames_p2 m_linkNames
contType::const_iterator const_iterator
Storable container for CaloCluster.
virtual const CaloTowerSeg & getTowerSeg() const
Retrieve tower segmentation.
virtual void setTowerSeg(const CaloTowerSeg &towerSeg)
Set tower segmentation into CaloClusterContainer.
std::vector< unsigned short > m_Mkey
unsigned short m_nMoments
std::vector< unsigned int > m_Mvalue
Stores CaloClusterMoment in a keyed map.
CaloClusterMomentIterator moment_iterator
External moment iterator type.
virtual void setMomentStore(const moment_store &rMomStore)
Set internal store.
std::map< moment_key, moment_value > moment_store
Internal moment store type.
cell_link_type m_cellLink
Local pointer to cell store.
Principal data class for CaloCell clusters.
double eta0() const
Returns raw of cluster seed.
CaloClusterMomentStore m_momentStore
cluster moments
virtual double getBasicEnergy() const
Access basic energy scale signal.
unsigned int m_samplingPattern
Sampling pattern.
double getTime() const
Access cluster time.
double m_phi0
Cluster seed .
bool m_endcap
Flag is true if at least one cell in EMB.
bool setDefaultSignalState(signalstate_t s)
Sets default signal state.
void setClusterSize(unsigned int theClusterSize)
Set cluster size.
void setTime(double theTime)
Set cluster time.
unsigned int getClusterSize() const
Get cluster size.
data_link_type m_dataLink
{
CaloSamplingData m_dataStore
{\ brief Cached Stores
double m_eta0
Cluster seed .
virtual void setBasicEnergy(double theEnergy)
Set basic energy scale signal.
double phi0() const
Returns raw of cluster seed.
bool m_barrel
Flag is true if at least one cell in EMB.
CaloRecoStatus m_status
Calorimeter reconstruction status.
reconstruction status indicator
virtual const store_type & getStatusWord() const
retrieve the entire status word
Data object stores CaloTower segmentation.
a typed memory pool that saves time spent allocation small object.
DataModel_detail::const_iterator< DataVector > const_iterator
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
static const AthenaBarCode_t UNDEFINEDBARCODE
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
hold the test vectors and ease the comparison
ElementLinkInt_p2 m_cellLink
P4EEtaPhiM_p1 m_P4EEtaPhiM
unsigned int m_samplingPattern
unsigned int m_caloRecoStatus
unsigned int m_clusterSize
ElementLinkInt_p2 m_dataLink