30 : 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) {
92 diff = (
float)adcVal - pedestal;
93 if (diff > threshold) {
104 Float_t xStrip = layerGeom->
xOfStrip(digiIt->getStrip(), yTrack);
105 float dX =
std::abs(xStrip - xTrack);
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
MuonShowerDigiFiller(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr uint32_t rawId() const
get the raw id
edm::Handle< DTDigiCollection > m_dtDigis
void getDigis(edm::Event &iEvent)
edm::EDGetTokenT< CSCStripDigiCollection > m_cscDigisToken
float xOfStrip(int strip, float y=0.) const
const DTTopology & specificTopology() const
edm::ESHandle< DTGeometry > m_dtGeometry
static const int maxLayerId
highest layer id
Abs< T >::type abs(const T &t)
static const int maxSuperLayerId
highest superlayer id
edm::EDGetTokenT< DTDigiCollection > m_dtDigisToken
void fillDefault(reco::MuonChamberMatch &muChMatch) const
void getES(const edm::EventSetup &iSetup)
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to given DetId.
edm::ESHandle< CSCGeometry > m_cscGeometry
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
edm::Handle< CSCStripDigiCollection > m_cscDigis
double m_digiMaxDistanceX
const CSCLayerGeometry * geometry() const
void fill(reco::MuonChamberMatch &muChMatch) const