|
|
|
| CSCGeometryValidate (const ParameterSet &) |
|
| ~CSCGeometryValidate () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
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 52 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 219 of file CSCGeometryValidate.cc.
221 float shapeBottomWidth;
223 float shapeThickness;
226 shapeTopWidth = shape[2];
227 shapeBottomWidth = shape[1];
228 shapeLength = shape[4];
229 shapeThickness = shape[3];
230 }
else if (shape[0] == 2) {
231 shapeTopWidth = shape[1];
232 shapeBottomWidth = shape[1];
233 shapeLength = shape[2];
234 shapeThickness = shape[3];
236 LogVerbatim(
"CSCGeometry") <<
"Failed to get box or trapezoid from shape";
241 float topWidth, bottomWidth;
246 array<const float, 4>
const& ps = tpbs->parameters();
254 }
else if ((dynamic_cast<const RectangularPlaneBounds*>(bounds))) {
257 bottomWidth = topWidth;
260 LogVerbatim(
"CSCGeometry") <<
"Failed to get bounds";
264 topWidths_.push_back(fabs(shapeTopWidth - topWidth));
265 bottomWidths_.push_back(fabs(shapeBottomWidth - bottomWidth));
266 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 303 of file CSCGeometryValidate.cc.
308 string ns =
d +
": absolute difference between Y Axis Orientation of the Strips";
311 string pi =
d +
": absolute difference between Strips Offset";
314 string pl =
d +
": absolute difference between 'Y centre' of the Strips Planes";
317 string aw =
d +
": absolute difference between 'angular width' of the Strips ";
320 string ci =
d +
": absolute difference between 'centre to intersection' of the Strips ";
323 string po =
d +
": absolute difference between 'phi of one edge' of the Strips ";
326 string ws =
d +
": absolute difference between 'wire spacing' of the Wires ";
329 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_, gpuVertexFinder::ws, yAxisOrientation_, and yCentreOfStripPlane_.
Referenced by validateCSCLayerGeometry().
◆ validateCSCChamberGeometry()
void CSCGeometryValidate::validateCSCChamberGeometry |
( |
| ) |
|
|
private |
Definition at line 136 of file CSCGeometryValidate.cc.
146 LogVerbatim(
"CSCGeometry") <<
"Failed to get matrix of CSC chamber with detid: " << chId.
rawId();
154 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 162 of file CSCGeometryValidate.cc.
179 const double wire_spacing = wiretopo->
wireSpacing();
180 const float wire_angle = wiretopo->
wireAngle();
183 for (
int istrips = 1; istrips <= n_strips; istrips++) {
192 LogVerbatim(
"CSCGeometry") <<
"ATTENTION! nStrips == 0";
196 for (
int iwires = 1; iwires <= n_wire; iwires++) {
201 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 |
◆ tokCSC_
◆ 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
const CSCGeometry * cscGeometry_
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 &)
bool getData(T &iHolder) const
void validateCSCChamberGeometry()
void makeHistogram(const string &, vector< float > &)
constexpr uint32_t rawId() const
get the raw id
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > tokCSC_
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_
int numberOfStrips() const
double wireSpacing() const