Skip to content
Snippets Groups Projects
Commit 5397a32f authored by Vincent Pascuzzi's avatar Vincent Pascuzzi
Browse files

Fix vla and unused {variable,parameter} warnings.

parent 1dbdda88
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,9 @@ CaloGeometryFromCaloDDM::~CaloGeometryFromCaloDDM()
{
}
bool CaloGeometryFromCaloDDM::LoadGeometryFromCaloDDM(const CaloDetDescrManager* calo_dd_man)
bool CaloGeometryFromCaloDDM::LoadGeometryFromCaloDDM(const CaloDetDescrManager* /*calo_dd_man*/)
{
int jentry=0;
//int jentry=0;
//for(CaloDetDescrManager::calo_element_const_iterator calo_iter=calo_dd_man->element_begin();calo_iter<calo_dd_man->element_end();++calo_iter) {
//const CaloGeoDetDescrElement* pcell=*calo_iter;
//addcell(pcell);
......
......@@ -333,8 +333,8 @@ void CaloGeometryFromFile::DrawFCalGraph(int isam,int color){
TString name = ss.str().c_str();
const int size=m_cells_in_sampling[isam].size();
double x[size];
double y[size];
double *x = new double[size];
double *y = new double[size];
//const CaloGeoDetDescrElement* cell;
int i=0;
for(auto it=m_cells_in_sampling[isam].begin();it!=m_cells_in_sampling[isam].end();it++){
......@@ -356,8 +356,9 @@ void CaloGeometryFromFile::DrawFCalGraph(int isam,int color){
graph->GetYaxis()->SetTitle("y");
graph->Draw("AP");
delete [] x;
delete [] y;
}
......@@ -75,7 +75,7 @@ StatusCode FastCaloSimGeometryHelper::finalize()
bool FastCaloSimGeometryHelper::LoadGeometryFromCaloDDM()
{
ATH_MSG_INFO("Start LoadGeometryFromCaloDDM()");
int jentry=0;
// int jentry=0;
//for(CaloDetDescrManager::calo_element_const_iterator calo_iter=m_caloMgr->element_begin();calo_iter<m_caloMgr->element_end();++calo_iter) {
//const CaloDetDescrElement* pcell=*calo_iter;
//addcell(pcell);
......
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