Skip to content

Commit 226d803

Browse files
Merge pull request #5 from cms-sw/CMSSW_7_5_X
PRToFixMess_RPC4RE11Geometry_PR
2 parents 243f7f5 + daeb241 commit 226d803

File tree

97 files changed

+1059
-8341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1059
-8341
lines changed

DQM/Integration/scripts/dqmdata_cleaner.py

Lines changed: 0 additions & 256 deletions
This file was deleted.

DQM/TrackingMonitor/src/LogMessageMonitor.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ void LogMessageMonitor::bookHistograms(DQMStore::IBooker & ibooker,
214214

215215
histname = pluginsMonName_+"ErrorsVsModules";
216216
CategoriesVsModules = ibooker.book2D(histname, histname, nModules, 0., double(nModules), nCategories, 0., double(nCategories) );
217+
CategoriesVsModules->getTH1()->GetXaxis()->SetNoAlphanumeric();
218+
CategoriesVsModules->getTH1()->GetYaxis()->SetNoAlphanumeric();
217219
CategoriesVsModules->setAxisTitle("modules",1);
218220
for (size_t imodule = 0; imodule < nModules; imodule++)
219221
CategoriesVsModules->setBinLabel(imodule+1,modules_vector_[imodule],1);

DetectorDescription/Core/interface/DDAxes.h

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,26 @@
77
#include <map>
88

99
//! analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
10-
namespace DDI
11-
{
12-
enum DDAxes {x, y, z, rho, radial3D, phi, undefined};
13-
};
10+
11+
enum class DDAxes {x, y, z, rho, radial3D, phi, undefined};
1412

1513
class AxesNames
1614
{
1715
public:
1816
AxesNames();
1917
~AxesNames();
2018

21-
const std::string name( const DDI::DDAxes& s );
22-
23-
DDI::DDAxes index(const std::string & s);
19+
const std::string name( const DDAxes& s );
2420

2521
private:
26-
std::map<std::string, DDI::DDAxes> axesmap_;
22+
std::map<std::string, DDAxes> axesmap_;
2723
};
2824

2925
class DDAxesNames : public DDI::Singleton<AxesNames>
3026
{
3127
public:
3228

33-
static const std::string name( const DDI::DDAxes& s );
34-
35-
static DDI::DDAxes index( const std::string & s );
29+
static const std::string name( const DDAxes& s );
3630
};
3731

3832
#endif // DDAxes_h

DetectorDescription/Core/interface/DDDivision.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class DDDivision : public DDBase<DDName, DDI::Division*>
8585
*/
8686
DDDivision(const DDName & name,
8787
const DDLogicalPart & parent,
88-
const DDI::DDAxes axis,
88+
const DDAxes axis,
8989
const int nReplicas,
9090
const double width,
9191
const double offset );
@@ -96,7 +96,7 @@ class DDDivision : public DDBase<DDName, DDI::Division*>
9696
*/
9797
DDDivision(const DDName & name,
9898
const DDLogicalPart & parent,
99-
const DDI::DDAxes axis,
99+
const DDAxes axis,
100100
const int nReplicas,
101101
const double offset );
102102

@@ -105,13 +105,13 @@ class DDDivision : public DDBase<DDName, DDI::Division*>
105105
*/
106106
DDDivision(const DDName & name,
107107
const DDLogicalPart & parent,
108-
const DDI::DDAxes axis,
108+
const DDAxes axis,
109109
const double width,
110110
const double offset );
111111

112112
// virtual ~G4PVDivision();
113113

114-
DDI::DDAxes axis() const;
114+
DDAxes axis() const;
115115
int nReplicas() const;
116116
double width() const;
117117
double offset() const;
Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,24 @@
11
#include "DetectorDescription/Core/interface/DDAxes.h"
22

3-
using namespace DDI;
4-
53
AxesNames::AxesNames()
6-
: axesmap_{{"x", x }, {"y", y}, {"z", z}, {"rho", rho}, {"radial3D", radial3D}, {"phi", phi}, {"undefined", undefined }}
4+
: axesmap_{{"x", DDAxes::x }, {"y", DDAxes::y}, {"z", DDAxes::z}, {"rho", DDAxes::rho}, {"radial3D", DDAxes::radial3D}, {"phi", DDAxes::phi}, {"undefined", DDAxes::undefined }}
75
{}
86

97
AxesNames::~AxesNames() { }
108

119
const std::string
1210
AxesNames::name(const DDAxes& s)
1311
{
14-
std::map<std::string, DDAxes>::const_iterator it;
15-
16-
for(it = axesmap_.begin(); it != axesmap_.end(); ++it)
12+
for( const auto& it : axesmap_ )
1713
{
18-
if(it->second == s)
19-
break;
14+
if( it.second == s )
15+
return it.first;
2016
}
21-
return it->first;
22-
}
23-
24-
DDAxes
25-
AxesNames::index(const std::string & s)
26-
{
27-
return axesmap_[s];
17+
return "undefined";
2818
}
2919

3020
const std::string
3121
DDAxesNames::name(const DDAxes& s)
3222
{
3323
return instance().name(s);
3424
}
35-
36-
DDAxes
37-
DDAxesNames::index(const std::string & s)
38-
{
39-
return instance().index(s);
40-
}

0 commit comments

Comments
 (0)