Commit 33b718cb authored by Jochen Meyer's avatar Jochen Meyer Committed by Graeme Stewart
Browse files

addressing coverity defect (MuonCalibStandAloneBase-01-00-05)

	* addressing coverity defect 14404
	* tagging MuonCalibStandAloneBase-01-00-05
parent 7856b13f
...@@ -30,12 +30,13 @@ class NtupleStationId ...@@ -30,12 +30,13 @@ class NtupleStationId
public: public:
/** Default constructor */ /** Default constructor */
inline NtupleStationId(): m_station(-1), m_eta(-99), m_phi(-1), m_ml(0), m_author(0), region_hash(0), n_ml(-1), geom_ok(false), m_region_id_valid(false) inline NtupleStationId(): m_station(-1), m_eta(-99), m_phi(-1), m_ml(0), m_author(0), region_hash(0), n_ml(-1), geom_ok(false), m_region_id_valid(false)
{} { ResetVectors(); }
/** Initializing Constructor /** Initializing Constructor
@param id MuonFixedId identifier @param id MuonFixedId identifier
*/ */
inline NtupleStationId(const MuonFixedId &id): region_hash(0), n_ml(-1) inline NtupleStationId(const MuonFixedId &id): region_hash(0), n_ml(-1)
{ {
ResetVectors();
Initialize(id); Initialize(id);
} }
/** Initializing Constructor /** Initializing Constructor
...@@ -70,6 +71,17 @@ class NtupleStationId ...@@ -70,6 +71,17 @@ class NtupleStationId
m_region_id_valid = false; m_region_id_valid = false;
geom_ok=false; geom_ok=false;
} }
inline void ResetVectors()
{
for(unsigned int ii=0; ii<2; ii++){
n_layer[ii] = -1;
n_tubes[ii] = -1;
layer_min[ii] = -1;
layer_max[ii] = -1;
tube_min[ii] = -1;
tube_max[ii] = -1;
}
}
/** initialize function /** initialize function
@param station station name @param station station name
@param eta station eta @param eta station eta
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment