34 theChamberTimingCorrections(),
35 theGasGainCorrections(),
38 readBadChannels_(
false),
39 readBadChambers_(
false),
40 useTimingCorrections_(
false),
41 useGasGainCorrections_(
false),
45 theAverageGain(-1.0) {
156 short inputLayer =
id.layer();
168 if (indexc != inputIndex)
176 if (lay != inputLayer)
195 short inputLayer =
id.layer();
202 if (indexc != inputIndex)
210 if (lay != inputLayer)
361 const float loEdge = 5.0;
362 const float hiEdge = 10.0;
363 const float loLimit = 6.0;
364 const float hiLimit = 9.0;
365 const float expectedAverage = 7.5;
373 CSCDBGains::GainContainer::const_iterator it;
376 if (the_gain > loEdge && the_gain < hiEdge) {
377 gain_tot += the_gain;
388 if (theAverageGain < loLimit || theAverageGain > hiLimit) {
edm::ESGetToken< CSCDBNoiseMatrix, CSCDBNoiseMatrixRcd > noiseMatrixToken_
edm::ESHandle< CSCDBGasGainCorrection > theGasGainCorrections
T getParameter(std::string const &) const
IndexType chamberIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic) const
const CSCDetId & idOfBadChannelWords() const
the offline CSCDetId of current bad channel words
short int linter(int index) const
IndexType gasGainIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType ihvsegment, IndexType ichip) const
short int gain(int index) const
edm::ESGetToken< CSCIndexerBase, CSCIndexerRecord > indexerToken_
edm::ESHandle< CSCDBNoiseMatrix > theNoiseMatrix
short int rinter(int index) const
IndexType chipIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType ichip) const
edm::ESHandle< CSCBadWires > theBadWires
float pedestal(const CSCDetId &detId, int channel) const
static ped in ADC counts
virtual int channelFromStrip(const CSCDetId &id, int strip) const =0
int channelFromStrip(const CSCDetId &id, int geomStrip) const
feedthrough for external access
uint32_t cc[maxCellsPerHit]
edm::ESGetToken< CSCDBGains, CSCDBGainsRcd > gainsToken_
void fillBadChannelWords(const CSCDetId &id)
CSCConditions(const edm::ParameterSet &ps, edm::ConsumesCollector)
BadChamberContainer chambers
bool isInBadChamber(const CSCDetId &id) const
Is the gven chamber flagged as bad?
edm::ESGetToken< CSCDBCrosstalk, CSCDBCrosstalkRcd > crosstalkToken_
edm::ESHandle< CSCChamberTimeCorrections > theChamberTimingCorrections
edm::ESHandle< CSCBadStrips > theBadStrips
BadChamberContainer chambers
edm::ESGetToken< CSCBadStrips, CSCBadStripsRcd > badStripsToken_
float chipCorrection(const CSCDetId &detId, int channel) const
chip speed correction in ns given detId (w/layer) and strip channel
short int value(int index) const
short int lslope(int index) const
bool readBadChannels() const
did we request reading bad channel info from db?
virtual CSCDetId rawCSCDetId(const CSCDetId &id) const =0
edm::ESHandle< CSCIndexerBase > indexer_
bool useTimingCorrections() const
did we request reading timing correction info from db?
edm::ESWatcher< CSCDBGainsRcd > gainsWatcher_
const ChamberTimeCorrections & item(int index) const
edm::ESGetToken< CSCChamberTimeCorrections, CSCChamberTimeCorrectionsRcd > chamberTimingCorrectionsToken_
void fillBadWireWord(const CSCDetId &id)
bool useTimingCorrections_
edm::ESGetToken< CSCDBPedestals, CSCDBPedestalsRcd > pedestalsToken_
float value(int index) const
std::bitset< 112 > badWireWord_
short int pedestal(int index) const
edm::ESHandle< CSCChannelMapperBase > mapper_
bool useGasGainCorrections_
void noiseMatrixElements(const CSCDetId &id, int channel, std::vector< float > &me) const
float gain(const CSCDetId &detId, int channel) const
gain per channel
bool useGasGainCorrections() const
did we request reading gas gain correction info from db?
edm::ESGetToken< CSCBadWires, CSCBadWiresRcd > badWiresToken_
float averageGain() const
short int cfeb_timing_corr
edm::ESHandle< CSCBadChambers > theBadChambers
float anodeBXoffset(const CSCDetId &detId) const
anode bx offset in bx given detId of chamber
edm::ESHandle< CSCDBGains > theGains
short int pedestal_rms(int index) const
int rawStripChannel(const CSCDetId &id, int geomChannel) const
edm::ESGetToken< CSCDBGasGainCorrection, CSCDBGasGainCorrectionRcd > gasGainCorrectionsToken_
edm::ESGetToken< CSCDBChipSpeedCorrection, CSCDBChipSpeedCorrectionRcd > chipCorrectionsToken_
void initializeEvent(const edm::EventSetup &es)
fetch database content via EventSetup
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void fillBadStripWord(const CSCDetId &id)
fill bad channel words for offline id
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badChambersToken_
BadChannelContainer channels
short int anode_bx_offset
float chamberTimingCorrection(const CSCDetId &detId) const
chamber timing correction in ns given detId of chamber
float gasGainCorrection(const CSCDetId &detId, int strip, int wire) const
float crosstalkIntercept(const CSCDetId &detId, int channel, bool leftRight) const
crosstalk intercept for left and right
float crosstalkSlope(const CSCDetId &detId, int channel, bool leftRight) const
crosstalk slope for left and right
edm::ESHandle< CSCDBChipSpeedCorrection > theChipCorrections
virtual int rawStripChannel(const CSCDetId &id, int igeom) const =0
Return raw strip channel number for input geometrical channel number.
edm::ESHandle< CSCDBCrosstalk > theCrosstalk
BadChannelContainer channels
bool isInBadChamber(IndexType ichamber) const
Is the chamber with index 'ichamber' flagged as bad?
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
bool check(const edm::EventSetup &iSetup)
float pedestalSigma(const CSCDetId &detId, int channel) const
static ped rms in ADC counts
void setIdOfBadChannelWords(const CSCDetId &id)
bool readBadChambers() const
did we request reading bad chamber info from db?
void crossTalk(const CSCDetId &id, int channel, std::vector< float > &ct) const
short int cfeb_cable_delay
const CSCDBNoiseMatrix::Item & noiseMatrix(const CSCDetId &detId, int channel) const
raw noise matrix (unscaled short int elements)
edm::ESHandle< CSCDBPedestals > thePedestals
std::bitset< 112 > badStripWord_
LongIndexType stripChannelIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType istrip) const
short int rslope(int index) const
const Item & item(int index) const
edm::ESGetToken< CSCChannelMapperBase, CSCChannelMapperRecord > mapperToken_
short int cfeb_tmb_skew_delay