Go to the documentation of this file.
28 : m_digiMaxDistanceX(iConfig.getParameter<double>(
"digiMaxDistanceX")),
32 m_dtGeometryToken(iC.esConsumes<
edm::
Transition::BeginRun>()),
33 m_cscGeometryToken(iC.esConsumes<
edm::
Transition::BeginRun>()) {}
50 int nDigisInRange = 0;
54 double xTrack = muChMatch.
x;
62 for (
auto digiIt =
range.first; digiIt !=
range.second; ++digiIt) {
66 double dX =
std::abs(xWire - xTrack);
76 double xTrack = muChMatch.
x;
77 double yTrack = muChMatch.
y;
81 const CSCDetId layerId(chId.endcap(), chId.station(), chId.ring(), chId.chamber(), iLayer);
85 for (
auto digiIt =
range.first; digiIt !=
range.second; ++digiIt) {
86 std::vector<int> adcVals = digiIt->getADCCounts();
87 bool hasFired =
false;
91 for (
const auto& adcVal : adcVals) {
104 Float_t xStrip = layerGeom->
xOfStrip(digiIt->getStrip(), yTrack);
105 float dX =
std::abs(xStrip - xTrack);
edm::Handle< DTDigiCollection > m_dtDigis
void getES(const edm::EventSetup &iSetup)
edm::EDGetTokenT< DTDigiCollection > m_dtDigisToken
edm::ESHandle< CSCGeometry > m_cscGeometry
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
void fill(reco::MuonChamberMatch &muChMatch) const
float xOfStrip(int strip, float y=0.) const
void fillDefault(reco::MuonChamberMatch &muChMatch) const
edm::ESGetToken< DTGeometry, MuonGeometryRecord > m_dtGeometryToken
edm::EDGetTokenT< CSCStripDigiCollection > m_cscDigisToken
const CSCLayerGeometry * geometry() const
double m_digiMaxDistanceX
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > m_cscGeometryToken
edm::Handle< CSCStripDigiCollection > m_cscDigis
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
static const int maxLayerId
highest layer id
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
static const int maxSuperLayerId
highest superlayer id
void getDigis(edm::Event &iEvent)
constexpr uint32_t rawId() const
get the raw id
MuonShowerDigiFiller(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to given DetId.
edm::ESHandle< DTGeometry > m_dtGeometry
const DTTopology & specificTopology() const
Abs< T >::type abs(const T &t)