Skip to content
Snippets Groups Projects
Commit 067d5450 authored by Anthony Morley's avatar Anthony Morley
Browse files

Improve const correctness

Former-commit-id: 8e753d8dd2ffdad927055472a8297079a2d22701
parent 21c6019b
No related merge requests found
......@@ -48,7 +48,7 @@ namespace InDet
virtual float LocalOccupancy(const double eta, const double phi) = 0;
/** Return a map of the occupancy in the barrel (-1,+1) and endcaps (-2,+2) */
virtual std::map<int, double> getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer ) = 0;
virtual std::map<int, double> getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer ) const = 0;
/** Return the global occupancy of the event*/
......
......@@ -68,7 +68,7 @@ namespace InDet
virtual float LocalOccupancy(const double eta, const double phi);
/** Return a map of the occupancy in the barrel (-1,+1) and endcaps (-2,+2) */
virtual std::map<int, double> getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer );
virtual std::map<int, double> getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer ) const;
/** Return the global occupancy of the event*/
/** 7 Floats: TRT, Barrel A / C, endcapA/B A/C */
......@@ -93,8 +93,8 @@ namespace InDet
int **m_track_local; // records number of track hits in each region, for each track
bool isMiddleBXOn(unsigned int word);
bool passValidityGate(unsigned int word, float t0);
bool isMiddleBXOn(unsigned int word) const;
bool passValidityGate(unsigned int word, float t0) const;
void countHitsNearTrack();
// void countHitsNearTrack(std::vector<IdentifierHash>* hash_vec);
......
......@@ -318,7 +318,8 @@ float TRT_LocalOccupancy::LocalOccupancy(const Trk::Track& track ){
}
std::map<int, double> TRT_LocalOccupancy::getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer ){
std::map<int, double> TRT_LocalOccupancy::getDetectorOccupancy( const TRT_RDO_Container* p_trtRDOContainer ) const
{
std::map<int,int> hitCounter;
std::map<int,double> occResults;
......@@ -510,7 +511,7 @@ void TRT_LocalOccupancy::countHitsNearTrack(){
// ========================================================================
bool TRT_LocalOccupancy::isMiddleBXOn(unsigned int word) {
bool TRT_LocalOccupancy::isMiddleBXOn(unsigned int word) const {
// check that there is at least one hit in middle 25 ns
unsigned mask = 0x00010000;
int i=0;
......@@ -521,7 +522,7 @@ bool TRT_LocalOccupancy::isMiddleBXOn(unsigned int word) {
return false;
}
bool TRT_LocalOccupancy::passValidityGate(unsigned int word, float t0) {
bool TRT_LocalOccupancy::passValidityGate(unsigned int word, float t0) const {
bool foundInterval = false;
unsigned mask = 0x02000000;
int i = 0;
......
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