28 : m_digiMaxDistanceX(iConfig.getParameter<double>(
"digiMaxDistanceX")),
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 getDigis(edm::Event &iEvent)
edm::EDGetTokenT< CSCStripDigiCollection > m_cscDigisToken
const CSCLayerGeometry * geometry() const
void fillDefault(reco::MuonChamberMatch &muChMatch) const
edm::ESHandle< DTGeometry > m_dtGeometry
static const int maxLayerId
highest layer id
Abs< T >::type abs(const T &t)
const DTTopology & specificTopology() const
static const int maxSuperLayerId
highest superlayer id
edm::EDGetTokenT< DTDigiCollection > m_dtDigisToken
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > m_cscGeometryToken
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void getES(const edm::EventSetup &iSetup)
constexpr uint32_t rawId() const
get the raw id
void fill(reco::MuonChamberMatch &muChMatch) const
edm::ESHandle< CSCGeometry > m_cscGeometry
edm::ESGetToken< DTGeometry, MuonGeometryRecord > m_dtGeometryToken
float xOfStrip(int strip, float y=0.) const
edm::Handle< CSCStripDigiCollection > m_cscDigis
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to given DetId.
double m_digiMaxDistanceX
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.