Definition at line 49 of file RPCGeometryValidate.cc.
◆ RPCGeometryValidate()
RPCGeometryValidate::RPCGeometryValidate |
( |
const ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 103 of file RPCGeometryValidate.cc.
T getUntrackedParameter(std::string const &, T const &) const
void loadMap(const char *fileName)
const edm::ESGetToken< RPCGeometry, MuonGeometryRecord > tokRPC_
◆ ~RPCGeometryValidate()
RPCGeometryValidate::~RPCGeometryValidate |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
◆ beginJob()
void RPCGeometryValidate::beginJob |
( |
void |
| ) |
|
|
overrideprivate |
◆ clearData()
void RPCGeometryValidate::clearData |
( |
| ) |
|
|
inlineprivate |
◆ clearData2()
void RPCGeometryValidate::clearData2 |
( |
| ) |
|
|
inlineprivate |
◆ compareShape()
void RPCGeometryValidate::compareShape |
( |
const GeomDet * |
det, |
|
|
const float * |
shape |
|
) |
| |
|
private |
Definition at line 181 of file RPCGeometryValidate.cc.
References cms::cuda::assert(), bottomWidths_, Surface::bounds(), Bounds::length(), lengths_, l1trig_cff::shape, GeomDet::surface(), Bounds::thickness(), Calorimetry_cff::thickness, thicknesses_, topWidths_, and Bounds::width().
Referenced by validateRPCChamberGeometry().
183 float shapeBottomWidth;
185 float shapeThickness;
188 shapeTopWidth =
shape[2];
189 shapeBottomWidth =
shape[1];
190 shapeLength =
shape[4];
191 shapeThickness =
shape[3];
192 }
else if (
shape[0] == 2) {
193 shapeTopWidth =
shape[1];
194 shapeBottomWidth =
shape[1];
195 shapeLength =
shape[2];
196 shapeThickness =
shape[3];
198 LogVerbatim(
"RPCGeometry") <<
"Failed to get box or trapezoid from shape";
203 float topWidth, bottomWidth;
208 array<const float, 4>
const& ps = tpbs->parameters();
216 }
else if ((dynamic_cast<const RectangularPlaneBounds*>(
bounds))) {
219 bottomWidth = topWidth;
222 LogVerbatim(
"RPCGeometry") <<
"Failed to get bounds";
226 topWidths_.push_back(fabs(shapeTopWidth - topWidth));
227 bottomWidths_.push_back(fabs(shapeBottomWidth - bottomWidth));
228 lengths_.push_back(fabs(shapeLength - length));
Log< level::Info, true > LogVerbatim
vector< float > bottomWidths_
virtual float length() const =0
vector< float > topWidths_
virtual float thickness() const =0
vector< float > thicknesses_
const Plane & surface() const
The nominal surface of the GeomDet.
virtual float width() const =0
const Bounds & bounds() const
◆ compareTransform()
void RPCGeometryValidate::compareTransform |
( |
const GlobalPoint & |
gp, |
|
|
const TGeoMatrix * |
matrix |
|
) |
| |
|
private |
◆ endJob()
void RPCGeometryValidate::endJob |
( |
void |
| ) |
|
|
overrideprivate |
◆ getDiff()
float RPCGeometryValidate::getDiff |
( |
const float |
val1, |
|
|
const float |
val2 |
|
) |
| |
|
private |
◆ getDistance()
◆ makeHistogram()
void RPCGeometryValidate::makeHistogram |
( |
const string & |
name, |
|
|
vector< float > & |
data |
|
) |
| |
|
private |
◆ makeHistograms()
void RPCGeometryValidate::makeHistograms |
( |
const char * |
detector | ) |
|
|
private |
◆ makeHistograms2()
void RPCGeometryValidate::makeHistograms2 |
( |
const char * |
detector | ) |
|
|
private |
◆ validateRPCChamberGeometry()
void RPCGeometryValidate::validateRPCChamberGeometry |
( |
| ) |
|
|
private |
Definition at line 119 of file RPCGeometryValidate.cc.
References clearData(), compareShape(), compareTransform(), fwGeometry_, FWGeometry::getMatrix(), FWGeometry::getShapePars(), runTauDisplay::gp, makeHistograms(), makeMuonMisalignmentScenario::matrix, DetId::rawId(), RPCGeometry::rolls(), rpcGeometry_, and l1trig_cff::shape.
Referenced by analyze().
129 LogVerbatim(
"RPCGeometry") <<
"Failed to get matrix of RPC chamber with detid: " << chId.
rawId();
137 LogVerbatim(
"RPCGeometry") <<
"Failed to get shape of RPC chamber with detid: " << chId.
rawId();
Log< level::Info, true > LogVerbatim
Point3DBase< Scalar, LocalTag > LocalPoint
void makeHistograms(const char *)
void compareTransform(const GlobalPoint &, const TGeoMatrix *)
constexpr uint32_t rawId() const
get the raw id
const float * getShapePars(unsigned int id) const
const RPCGeometry * rpcGeometry_
const TGeoMatrix * getMatrix(unsigned int id) const
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
void compareShape(const GeomDet *, const float *)
◆ validateRPCStripsGeometry()
void RPCGeometryValidate::validateRPCStripsGeometry |
( |
| ) |
|
|
private |
Definition at line 145 of file RPCGeometryValidate.cc.
References clearData2(), fwGeometry_, FWGeometry::getParameters(), makeHistograms2(), nstrips_, pitch_, DetId::rawId(), RPCGeometry::rolls(), rpcGeometry_, StripTopology::stripLength(), and stripslen_.
Referenced by analyze().
150 const int n_strips = it->nstrips();
151 const float n_pitch = it->pitch();
157 for (
int istrips = 1; istrips <= n_strips; istrips++) {
163 LogVerbatim(
"RPCGeometry") <<
"ATTENTION! nStrips == 0";
Log< level::Info, true > LogVerbatim
vector< float > stripslen_
virtual float stripLength() const =0
constexpr uint32_t rawId() const
get the raw id
const RPCGeometry * rpcGeometry_
const float * getParameters(unsigned int id) const
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
void makeHistograms2(const char *)
◆ bottomWidths_
vector<float> RPCGeometryValidate::bottomWidths_ |
|
private |
◆ fwGeometry_
◆ globalDistances_
vector<float> RPCGeometryValidate::globalDistances_ |
|
private |
◆ infileName_
string RPCGeometryValidate::infileName_ |
|
private |
◆ lengths_
vector<float> RPCGeometryValidate::lengths_ |
|
private |
◆ nstrips_
vector<float> RPCGeometryValidate::nstrips_ |
|
private |
◆ outFile_
TFile* RPCGeometryValidate::outFile_ |
|
private |
◆ outfileName_
string RPCGeometryValidate::outfileName_ |
|
private |
◆ pitch_
vector<float> RPCGeometryValidate::pitch_ |
|
private |
◆ rpcGeometry_
◆ stripslen_
vector<float> RPCGeometryValidate::stripslen_ |
|
private |
◆ thicknesses_
vector<float> RPCGeometryValidate::thicknesses_ |
|
private |
◆ tokRPC_
◆ tolerance_
int RPCGeometryValidate::tolerance_ |
|
private |
◆ topWidths_
vector<float> RPCGeometryValidate::topWidths_ |
|
private |