|
|
|
| CSCGeometryValidate (const ParameterSet &) |
|
| ~CSCGeometryValidate () override |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 53 of file CSCGeometryValidate.cc.
◆ CSCGeometryValidate()
CSCGeometryValidate::CSCGeometryValidate |
( |
const ParameterSet & |
iConfig | ) |
|
|
explicit |
◆ ~CSCGeometryValidate()
CSCGeometryValidate::~CSCGeometryValidate |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
◆ beginJob()
void CSCGeometryValidate::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ clearData()
void CSCGeometryValidate::clearData |
( |
| ) |
|
|
inlineprivate |
◆ clearData2()
void CSCGeometryValidate::clearData2 |
( |
| ) |
|
|
inlineprivate |
◆ compareShape()
void CSCGeometryValidate::compareShape |
( |
const GeomDet * |
det, |
|
|
const float * |
shape |
|
) |
| |
|
private |
Definition at line 221 of file CSCGeometryValidate.cc.
223 float shapeBottomWidth;
225 float shapeThickness;
228 shapeTopWidth = shape[2];
229 shapeBottomWidth = shape[1];
230 shapeLength = shape[4];
231 shapeThickness = shape[3];
232 }
else if (shape[0] == 2) {
233 shapeTopWidth = shape[1];
234 shapeBottomWidth = shape[1];
235 shapeLength = shape[2];
236 shapeThickness = shape[3];
238 LogVerbatim(
"CSCGeometry") <<
"Failed to get box or trapezoid from shape";
243 float topWidth, bottomWidth;
248 array<const float, 4>
const& ps = tpbs->parameters();
256 }
else if ((dynamic_cast<const RectangularPlaneBounds*>(bounds))) {
259 bottomWidth = topWidth;
262 LogVerbatim(
"CSCGeometry") <<
"Failed to get bounds";
266 topWidths_.push_back(fabs(shapeTopWidth - topWidth));
267 bottomWidths_.push_back(fabs(shapeBottomWidth - bottomWidth));
268 lengths_.push_back(fabs(shapeLength - length));
References cms::cuda::assert(), bottomWidths_, Surface::bounds(), Bounds::length(), lengths_, GeomDet::surface(), Bounds::thickness(), Calorimetry_cff::thickness, thicknesses_, topWidths_, and Bounds::width().
Referenced by validateCSCChamberGeometry().
◆ compareTransform()
void CSCGeometryValidate::compareTransform |
( |
const GlobalPoint & |
gp, |
|
|
const TGeoMatrix * |
matrix |
|
) |
| |
|
private |
◆ endJob()
void CSCGeometryValidate::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ getDiff()
float CSCGeometryValidate::getDiff |
( |
const float |
val1, |
|
|
const float |
val2 |
|
) |
| |
|
private |
◆ getDistance()
◆ makeHistogram()
void CSCGeometryValidate::makeHistogram |
( |
const string & |
name, |
|
|
vector< float > & |
data |
|
) |
| |
|
private |
◆ makeHistograms()
void CSCGeometryValidate::makeHistograms |
( |
const char * |
detector | ) |
|
|
private |
◆ makeHistograms2()
void CSCGeometryValidate::makeHistograms2 |
( |
const char * |
detector | ) |
|
|
private |
Definition at line 305 of file CSCGeometryValidate.cc.
310 string ns =
d +
": absolute difference between Y Axis Orientation of the Strips";
313 string pi =
d +
": absolute difference between Strips Offset";
316 string pl =
d +
": absolute difference between 'Y centre' of the Strips Planes";
319 string aw =
d +
": absolute difference between 'angular width' of the Strips ";
322 string ci =
d +
": absolute difference between 'centre to intersection' of the Strips ";
325 string po =
d +
": absolute difference between 'phi of one edge' of the Strips ";
328 string ws =
d +
": absolute difference between 'wire spacing' of the Wires ";
331 string wa =
d +
": absolute difference between 'wire angle' of the Wires ";
References angularWidth_, centreToIntersection_, ztail::d, hgcalTestNeighbor_cfi::detector, makeHistogram(), outFile_, phiOfOneEdge_, pi, sOffset_, wireAngle_, wireSpacing_, yAxisOrientation_, and yCentreOfStripPlane_.
Referenced by validateCSCLayerGeometry().
◆ validateCSCChamberGeometry()
void CSCGeometryValidate::validateCSCChamberGeometry |
( |
| ) |
|
|
private |
Definition at line 138 of file CSCGeometryValidate.cc.
148 LogVerbatim(
"CSCGeometry") <<
"Failed to get matrix of CSC chamber with detid: " << chId.
rawId();
156 LogVerbatim(
"CSCGeometry") <<
"Failed to get shape of CSC chamber with detid: " << chId.
rawId();
References CSCGeometry::chambers(), clearData(), compareShape(), compareTransform(), cscGeometry_, fwGeometry_, FWGeometry::getMatrix(), FWGeometry::getShapePars(), runTauDisplay::gp, makeHistograms(), makeMuonMisalignmentScenario::matrix, and DetId::rawId().
Referenced by analyze().
◆ validateCSCLayerGeometry()
void CSCGeometryValidate::validateCSCLayerGeometry |
( |
| ) |
|
|
private |
Definition at line 164 of file CSCGeometryValidate.cc.
181 const double wire_spacing = wiretopo->
wireSpacing();
182 const float wire_angle = wiretopo->
wireAngle();
185 for (
int istrips = 1; istrips <= n_strips; istrips++) {
194 LogVerbatim(
"CSCGeometry") <<
"ATTENTION! nStrips == 0";
198 for (
int iwires = 1; iwires <= n_wire; iwires++) {
203 LogVerbatim(
"CSCGeometry") <<
"ATTENTION! nWires == 0";
References CSCRadialStripTopology::angularWidth(), angularWidth_, CSCRadialStripTopology::centreToIntersection(), centreToIntersection_, clearData2(), cscGeometry_, fwGeometry_, FWGeometry::getParameters(), CSCGeometry::layers(), makeHistograms2(), CSCLayerGeometry::numberOfStrips(), CSCLayerGeometry::numberOfWires(), CSCRadialStripTopology::phiOfOneEdge(), phiOfOneEdge_, DetId::rawId(), sOffset_, CSCLayerGeometry::stripOffset(), CSCLayerGeometry::topology(), CSCWireTopology::wireAngle(), wireAngle_, CSCWireTopology::wireSpacing(), wireSpacing_, CSCLayerGeometry::wireTopology(), CSCRadialStripTopology::yAxisOrientation(), yAxisOrientation_, CSCRadialStripTopology::yCentreOfStripPlane(), and yCentreOfStripPlane_.
Referenced by analyze().
◆ angularWidth_
vector<float> CSCGeometryValidate::angularWidth_ |
|
private |
◆ bottomWidths_
vector<float> CSCGeometryValidate::bottomWidths_ |
|
private |
◆ centreToIntersection_
vector<float> CSCGeometryValidate::centreToIntersection_ |
|
private |
◆ cscGeometry_
◆ fwGeometry_
◆ globalDistances_
vector<float> CSCGeometryValidate::globalDistances_ |
|
private |
◆ infileName_
string CSCGeometryValidate::infileName_ |
|
private |
◆ lengths_
vector<float> CSCGeometryValidate::lengths_ |
|
private |
◆ outFile_
TFile* CSCGeometryValidate::outFile_ |
|
private |
◆ outfileName_
string CSCGeometryValidate::outfileName_ |
|
private |
◆ phiOfOneEdge_
vector<float> CSCGeometryValidate::phiOfOneEdge_ |
|
private |
◆ sOffset_
vector<float> CSCGeometryValidate::sOffset_ |
|
private |
◆ thicknesses_
vector<float> CSCGeometryValidate::thicknesses_ |
|
private |
◆ tolerance_
int CSCGeometryValidate::tolerance_ |
|
private |
◆ topWidths_
vector<float> CSCGeometryValidate::topWidths_ |
|
private |
◆ wireAngle_
vector<float> CSCGeometryValidate::wireAngle_ |
|
private |
◆ wireSpacing_
vector<float> CSCGeometryValidate::wireSpacing_ |
|
private |
◆ yAxisOrientation_
vector<float> CSCGeometryValidate::yAxisOrientation_ |
|
private |
◆ yCentreOfStripPlane_
vector<float> CSCGeometryValidate::yCentreOfStripPlane_ |
|
private |
vector< float > yAxisOrientation_
vector< float > wireSpacing_
vector< float > phiOfOneEdge_
vector< float > globalDistances_
virtual float width() const =0
float wireAngle() const override
void loadMap(const char *fileName)
int numberOfWires() const
float angularWidth() const override
const float * getShapePars(unsigned int id) const
void validateCSCLayerGeometry()
void makeHistograms2(const char *)
void compareTransform(const GlobalPoint &, const TGeoMatrix *)
vector< float > bottomWidths_
T getUntrackedParameter(std::string const &, T const &) const
Point3DBase< Scalar, LocalTag > LocalPoint
vector< float > thicknesses_
float centreToIntersection() const override
virtual float length() const =0
float yCentreOfStripPlane() const override
void compareShape(const GeomDet *, const float *)
const Plane & surface() const
The nominal surface of the GeomDet.
const float * getParameters(unsigned int id) const
vector< float > centreToIntersection_
const TGeoMatrix * getMatrix(unsigned int id) const
vector< float > topWidths_
const Bounds & bounds() const
const CSCStripTopology * topology() const
vector< float > yCentreOfStripPlane_
Global3DPoint GlobalPoint
virtual float thickness() const =0
enable_if<!numeric_limits< T >::is_integer, bool >::type almost_equal(T x, T y, int ulp)
vector< float > angularWidth_
float yAxisOrientation() const override
void makeHistograms(const char *)
float getDistance(const GlobalPoint &, const GlobalPoint &)
void validateCSCChamberGeometry()
void makeHistogram(const string &, vector< float > &)
constexpr uint32_t rawId() const
get the raw id
const CSCWireTopology * wireTopology() const
Log< level::Info, true > LogVerbatim
float stripOffset(void) const
const LayerContainer & layers() const
Return a vector of all layers.
float phiOfOneEdge() const override
const ChamberContainer & chambers() const
Return a vector of all chambers.
char data[epos_bytes_allocation]
vector< float > wireAngle_
edm::ESHandle< CSCGeometry > cscGeometry_
int numberOfStrips() const
double wireSpacing() const