Skip to content
Snippets Groups Projects
Commit 9310aaa7 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'clang.TrigFTKBankGen-20191220' into 'master'

TrigFTKBankGen: Fix clang warnings.

See merge request atlas/athena!29131
parents 9988f399 6f7e9cf7
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,6 @@ public: ...@@ -53,7 +53,6 @@ public:
private: private:
ITHistSvc *m_thistSvc;
bool m_merging; bool m_merging;
bool m_genconst; bool m_genconst;
bool m_subregion; bool m_subregion;
...@@ -65,7 +64,6 @@ public: ...@@ -65,7 +64,6 @@ public:
std::string m_extractpath; std::string m_extractpath;
std::string m_outfilename; // the algorithm mostly produce a single file, if set this is the name of the file, a default option is otherwise used std::string m_outfilename; // the algorithm mostly produce a single file, if set this is the name of the file, a default option is otherwise used
TFile *m_file;
TFile *m_good_file; TFile *m_good_file;
TFile *m_cfile; TFile *m_cfile;
TTree *m_ctree; TTree *m_ctree;
...@@ -78,12 +76,9 @@ public: ...@@ -78,12 +76,9 @@ public:
int m_nfile; int m_nfile;
int m_addPattReturnCode; int m_addPattReturnCode;
float m_nsector; float m_nsector;
bool m_match;
double m_pr; double m_pr;
int m_nevent;
int m_nplane; int m_nplane;
int m_nplane8; int m_nplane8;
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/ */
#include "TrigFTKBankGen/FTKBankGenAlgo.h" #include "TrigFTKBankGen/FTKBankGenAlgo.h"
#include "TrigFTKBankGen/FTKConstGenAlgo.h" #include "TrigFTKBankGen/FTKConstGenAlgo.h"
...@@ -849,8 +849,8 @@ void FTKConstGenAlgo::constantgen() ...@@ -849,8 +849,8 @@ void FTKConstGenAlgo::constantgen()
eigvec[i]= &eigvec_v[ndim*i]; eigvec[i]= &eigvec_v[ndim*i];
} }
geo_const =(struct geo_constants *) malloc(nsector*sizeof(struct geo_constants)); geo_const =(geo_constants *) malloc(nsector*sizeof(geo_constants));
gcorth =(struct geo_constants *) malloc(nsector*sizeof(struct geo_constants)); gcorth =(geo_constants *) malloc(nsector*sizeof(geo_constants));
for(int i=0;i<nsector;i++){ for(int i=0;i<nsector;i++){
geo_const[i].Vd = (double *) calloc(ndim,sizeof(double)); geo_const[i].Vd = (double *) calloc(ndim,sizeof(double));
...@@ -2034,7 +2034,7 @@ void FTKConstGenAlgo::make_subregion() ...@@ -2034,7 +2034,7 @@ void FTKConstGenAlgo::make_subregion()
if(nlayer==11 || nlayer==8) ndim=nlayer+3;//w/o IBL or 1st stage if(nlayer==11 || nlayer==8) ndim=nlayer+3;//w/o IBL or 1st stage
else if(nlayer==12) ndim=nlayer+4;//IBL else if(nlayer==12) ndim=nlayer+4;//IBL
tmp_const =(struct geo_constants *) malloc(nsector*sizeof(struct geo_constants)); tmp_const =(geo_constants *) malloc(nsector*sizeof(geo_constants));
sectorID=(int *) calloc(nsector,sizeof(int)); sectorID=(int *) calloc(nsector,sizeof(int));
for(int j=0;j<nsector;j++){ for(int j=0;j<nsector;j++){
tmp_const[j].Vd = (double *) calloc(ndim,sizeof(double)); tmp_const[j].Vd = (double *) calloc(ndim,sizeof(double));
...@@ -2157,17 +2157,17 @@ void FTKConstGenAlgo::make_subregion() ...@@ -2157,17 +2157,17 @@ void FTKConstGenAlgo::make_subregion()
sprintf(gcon_filename[sub],"corrgen_raw_%dL_%dM_reg%d_sub%d.gcon",nlayer,m_nsubregion,i,sub); sprintf(gcon_filename[sub],"corrgen_raw_%dL_%dM_reg%d_sub%d.gcon",nlayer,m_nsubregion,i,sub);
gcon_file = fopen(gcon_filename[sub],"w"); gcon_file = fopen(gcon_filename[sub],"w");
for(int j=0;j<6;j++){ for(int j=0;j<6;j++){
fprintf(gcon_file,init_line[j].c_str()); fprintf(gcon_file,"%s",init_line[j].c_str());
fprintf(gcon_file,"\n"); fprintf(gcon_file,"\n");
} }
fprintf(gcon_file," %d\n",nlayer); fprintf(gcon_file," %d\n",nlayer);
fprintf(gcon_file,init_line[6].c_str()); fprintf(gcon_file,"%s",init_line[6].c_str());
fprintf(gcon_file,"\n"); fprintf(gcon_file,"\n");
fprintf(gcon_file,"%d\n",sub_nsector); fprintf(gcon_file,"%d\n",sub_nsector);
fprintf(gcon_file,init_line[7].c_str()); fprintf(gcon_file,"%s",init_line[7].c_str());
fprintf(gcon_file,"\n"); fprintf(gcon_file,"\n");
fprintf(gcon_file," %d\n",2); fprintf(gcon_file," %d\n",2);
fprintf(gcon_file,init_line[8].c_str()); fprintf(gcon_file,"%s",init_line[8].c_str());
for(int id=0;id<sub_nsector;id++){ for(int id=0;id<sub_nsector;id++){
fprintf(gcon_file,"sector\n"); fprintf(gcon_file,"sector\n");
fprintf(gcon_file,"%d\n",id); fprintf(gcon_file,"%d\n",id);
......
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