Commit 071013d0 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'clang.InDetAlignGenAlgs-20180106' into 'master'

InDetAlignGenAlgs: Fix clang warnings.

See merge request atlas/athena!7800

Former-commit-id: 2b9f2abe
parents 4dc72ed3 f954cb89
......@@ -29,8 +29,6 @@ class SPLayer {
std::string name() const;
int m_hbase;
int m_hbase2;
int m_dettype;
int m_bec;
int m_layer;
......@@ -242,8 +242,8 @@ StatusCode InDetAlignCog::execute() {
Params_t params;
// initialize transforms to identity
for( int i=0; i<6; m_cog[i++]){ m_cog[i++]=0.0;}
for( int i=0; i<6; m_resglob[i++]){ m_resglob[i++]=0.0;}
for( int i=0; i<6; i++){ m_cog[i]=0.0;}
for( int i=0; i<6; i++){ m_resglob[i]=0.0;}
......@@ -258,7 +258,7 @@ StatusCode InDetAlignCog::execute() {
// normalization of m_cog
for( int i=0; i<6; m_cog[i++]){m_cog[i++]/=(double) m_counter;}
for( int i=0; i<6; i++){m_cog[i]/=(double) m_counter;}
// convert to HepGeom::Transform3D:
......@@ -314,7 +314,7 @@ StatusCode InDetAlignCog::execute() {
if( !m_useChi2 ) {
if (m_counter==0) throw std::logic_error("No Si-elements.");
// normalization of m_resglob
for( int i=0; i<6; m_resglob[i++]){m_resglob[i++]/=(double) m_counter;}
for( int i=0; i<6; i++){m_resglob[i]/=(double) m_counter;}
// convert to HepGeom::Transform3D:
m_ResGlob = makeAffine3d(m_resglob);
......@@ -9,10 +9,10 @@
#include <iostream>
#include "InDetAlignGenAlgs/SPLayer.h"
SPLayer::SPLayer(const int h1, const int h2, const int det, const int bec,
SPLayer::SPLayer(const int /*h1*/, const int /*h2*/, const int det, const int bec,
const int layer, const int side, const std::string& name,
const std::vector<TH1*>& histlist) :
m_hbase(h1), m_hbase2(h2), m_dettype(det), m_bec(bec), m_layer(layer),
m_dettype(det), m_bec(bec), m_layer(layer),
m_side(side),m_nmod(0), m_nhit(0), m_name(name), m_histlist(histlist)
std::cout << "In splayer constructer" << std::endl;
Supports Markdown
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