Definition at line 49 of file GEMGeometryValidate.cc.
◆ GEMGeometryValidate()
GEMGeometryValidate::GEMGeometryValidate |
( |
const ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 103 of file GEMGeometryValidate.cc.
T getUntrackedParameter(std::string const &, T const &) const
const edm::ESGetToken< GEMGeometry, MuonGeometryRecord > tokGeom_
void loadMap(const char *fileName)
◆ ~GEMGeometryValidate()
GEMGeometryValidate::~GEMGeometryValidate |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
◆ beginJob()
void GEMGeometryValidate::beginJob |
( |
void |
| ) |
|
|
overrideprivate |
◆ clearData()
void GEMGeometryValidate::clearData |
( |
| ) |
|
|
inlineprivate |
◆ clearData2()
void GEMGeometryValidate::clearData2 |
( |
| ) |
|
|
inlineprivate |
◆ compareShape()
void GEMGeometryValidate::compareShape |
( |
const GeomDet * |
det, |
|
|
const float * |
shape |
|
) |
| |
|
private |
Definition at line 185 of file GEMGeometryValidate.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 validateGEMChamberGeometry().
187 float shapeBottomWidth;
189 float shapeThickness;
192 shapeTopWidth =
shape[2];
193 shapeBottomWidth =
shape[1];
194 shapeLength =
shape[4];
195 shapeThickness =
shape[3];
196 }
else if (
shape[0] == 2) {
197 shapeTopWidth =
shape[1];
198 shapeBottomWidth =
shape[1];
199 shapeLength =
shape[2];
200 shapeThickness =
shape[3];
202 LogVerbatim(
"GEMGeometry") <<
"Failed to get box or trapezoid from shape";
207 float topWidth, bottomWidth;
212 array<const float, 4>
const& ps = tpbs->parameters();
220 }
else if ((dynamic_cast<const RectangularPlaneBounds*>(
bounds))) {
223 bottomWidth = topWidth;
226 LogVerbatim(
"GEMGeometry") <<
"Failed to get bounds";
230 topWidths_.push_back(fabs(shapeTopWidth - topWidth));
231 bottomWidths_.push_back(fabs(shapeBottomWidth - bottomWidth));
232 lengths_.push_back(fabs(shapeLength - length));
Log< level::Info, true > LogVerbatim
virtual float length() const =0
vector< float > topWidths_
virtual float thickness() const =0
vector< float > bottomWidths_
const Plane & surface() const
The nominal surface of the GeomDet.
vector< float > thicknesses_
virtual float width() const =0
const Bounds & bounds() const
◆ compareTransform()
void GEMGeometryValidate::compareTransform |
( |
const GlobalPoint & |
gp, |
|
|
const TGeoMatrix * |
matrix |
|
) |
| |
|
private |
Definition at line 173 of file GEMGeometryValidate.cc.
References funct::abs(), HLT_2023v12_cff::distance, MillePedeFileConverter_cfg::e, getDistance(), globalDistances_, runTauDisplay::gp, DTRecHitClients_cfi::local, and makeMuonMisalignmentScenario::matrix.
Referenced by validateGEMChamberGeometry().
174 double local[3] = {0.0, 0.0, 0.0};
Global3DPoint GlobalPoint
float getDistance(const GlobalPoint &, const GlobalPoint &)
Abs< T >::type abs(const T &t)
vector< float > globalDistances_
◆ endJob()
void GEMGeometryValidate::endJob |
( |
void |
| ) |
|
|
overrideprivate |
◆ getDiff()
float GEMGeometryValidate::getDiff |
( |
const float |
val1, |
|
|
const float |
val2 |
|
) |
| |
|
private |
◆ getDistance()
◆ makeHistogram()
void GEMGeometryValidate::makeHistogram |
( |
const string & |
name, |
|
|
vector< float > & |
data |
|
) |
| |
|
private |
◆ makeHistograms()
void GEMGeometryValidate::makeHistograms |
( |
const char * |
detector | ) |
|
|
private |
◆ makeHistograms2()
void GEMGeometryValidate::makeHistograms2 |
( |
const char * |
detector | ) |
|
|
private |
◆ validateGEMChamberGeometry()
void GEMGeometryValidate::validateGEMChamberGeometry |
( |
| ) |
|
|
private |
Definition at line 122 of file GEMGeometryValidate.cc.
References GEMGeometry::chambers(), clearData(), compareShape(), compareTransform(), fwGeometry_, gemGeometry_, FWGeometry::getMatrix(), FWGeometry::getShapePars(), runTauDisplay::gp, makeHistograms(), makeMuonMisalignmentScenario::matrix, DetId::rawId(), and l1trig_cff::shape.
Referenced by analyze().
132 LogVerbatim(
"GEMGeometry") <<
"Failed to get matrix of GEM chamber with detid: " << chId.
rawId();
140 LogVerbatim(
"GEMGeometry") <<
"Failed to get shape of GEM chamber with detid: " << chId.
rawId();
Log< level::Info, true > LogVerbatim
Point3DBase< Scalar, LocalTag > LocalPoint
void compareShape(const GeomDet *, const float *)
const std::vector< const GEMChamber * > & chambers() const
Return a vector of all GEM chambers.
const GEMGeometry * gemGeometry_
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 TGeoMatrix * getMatrix(unsigned int id) const
◆ validateGEMEtaPartitionGeometry()
void GEMGeometryValidate::validateGEMEtaPartitionGeometry |
( |
| ) |
|
|
private |
Definition at line 148 of file GEMGeometryValidate.cc.
References funct::abs(), clearData2(), GEMGeometry::etaPartitions(), fwGeometry_, gemGeometry_, FWGeometry::getParameters(), makeHistograms2(), nstrips_, pitch_, DetId::rawId(), StripTopology::stripLength(), and stripslen_.
Referenced by analyze().
153 const int n_strips = it->nstrips();
154 const float n_pitch = it->pitch();
161 for (
int istrips = 1; istrips <= n_strips; istrips++) {
167 LogVerbatim(
"GEMGeometry") <<
"ATTENTION! nStrips == 0";
Log< level::Info, true > LogVerbatim
vector< float > stripslen_
virtual float stripLength() const =0
const GEMGeometry * gemGeometry_
Abs< T >::type abs(const T &t)
void makeHistograms2(const char *)
constexpr uint32_t rawId() const
get the raw id
const float * getParameters(unsigned int id) const
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM eta partitions.
◆ bottomWidths_
vector<float> GEMGeometryValidate::bottomWidths_ |
|
private |
◆ fwGeometry_
◆ gemGeometry_
◆ globalDistances_
vector<float> GEMGeometryValidate::globalDistances_ |
|
private |
◆ infileName_
string GEMGeometryValidate::infileName_ |
|
private |
◆ lengths_
vector<float> GEMGeometryValidate::lengths_ |
|
private |
◆ nstrips_
vector<float> GEMGeometryValidate::nstrips_ |
|
private |
◆ outFile_
TFile* GEMGeometryValidate::outFile_ |
|
private |
◆ outfileName_
string GEMGeometryValidate::outfileName_ |
|
private |
◆ pitch_
vector<float> GEMGeometryValidate::pitch_ |
|
private |
◆ stripslen_
vector<float> GEMGeometryValidate::stripslen_ |
|
private |
◆ thicknesses_
vector<float> GEMGeometryValidate::thicknesses_ |
|
private |
◆ tokGeom_
◆ tolerance_
int GEMGeometryValidate::tolerance_ |
|
private |
◆ topWidths_
vector<float> GEMGeometryValidate::topWidths_ |
|
private |