Skip to content
Snippets Groups Projects
Commit c43e8d3c authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

CscRawDataMonitoring: Const fixes.

A long-standing bug in DataVector has meant that it was possible to get
a non-const pointer from a const_iterator.  This package was relying on this
bug to compile; fix that.



Former-commit-id: b07b67f0
parent 735d1e0d
No related branches found
No related tags found
No related merge requests found
...@@ -596,7 +596,7 @@ StatusCode CSCSegmValAlg::fillHistograms() { ...@@ -596,7 +596,7 @@ StatusCode CSCSegmValAlg::fillHistograms() {
for (Trk::SegmentCollection::const_iterator s = m_segms->begin();s != m_segms->end(); ++s) { for (Trk::SegmentCollection::const_iterator s = m_segms->begin();s != m_segms->end(); ++s) {
// Get segm // Get segm
Muon::MuonSegment *segm=dynamic_cast<Muon::MuonSegment*>(*s); const Muon::MuonSegment *segm=dynamic_cast<const Muon::MuonSegment*>(*s);
if (segm == 0) { if (segm == 0) {
ATH_MSG_ERROR( "no pointer to segm!!!" ); ATH_MSG_ERROR( "no pointer to segm!!!" );
......
...@@ -834,7 +834,7 @@ void CscClusterValAlg::FillCSCClusters( const CscPrepDataContainer& m_cols, con ...@@ -834,7 +834,7 @@ void CscClusterValAlg::FillCSCClusters( const CscPrepDataContainer& m_cols, con
ATH_MSG_DEBUG ( " Begin loop over clusters ============================"); ATH_MSG_DEBUG ( " Begin loop over clusters ============================");
for ( CscPrepDataCollection::const_iterator m_Itclu = m_clus.begin(); for ( CscPrepDataCollection::const_iterator m_Itclu = m_clus.begin();
m_Itclu != m_clus.end(); ++m_Itclu ) { m_Itclu != m_clus.end(); ++m_Itclu ) {
CscPrepData& m_iClus = **m_Itclu; const CscPrepData& m_iClus = **m_Itclu;
const std::vector<Identifier>& m_stripIds = m_iClus.rdoList(); const std::vector<Identifier>& m_stripIds = m_iClus.rdoList();
float m_clu_charge = m_iClus.charge(); float m_clu_charge = m_iClus.charge();
float m_clu_time = m_iClus.time(); float m_clu_time = m_iClus.time();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment