#include <CSCRecoConditions.h>
Public Member Functions | |
float | anodeBXoffset (const CSCDetId &detId) const |
float | averageGain () const |
return average gain over entire CSC system More... | |
bool | badStrip (const CSCDetId &id, int geomStrip) const |
Is the strip bad? More... | |
const std::bitset< 112 > & | badWireWord (const CSCDetId &id) const |
Get bad wiregroup word. More... | |
float | chamberTimingCorrection (const CSCDetId &detId) const |
float | chipCorrection (const CSCDetId &detId, int channel) const |
void | crossTalk (const CSCDetId &id, int centralStrip, std::vector< float > &xtalks) const |
CSCRecoConditions (const edm::ParameterSet &pset) | |
float | gain (const CSCDetId &id, int channel) const |
channels count from 1 More... | |
void | initializeEvent (const edm::EventSetup &es) |
fetch the cond data from the database More... | |
bool | nearBadStrip (const CSCDetId &id, int geomStrip) const |
Is a neighbour bad? More... | |
void | noiseMatrix (const CSCDetId &id, int centralStrip, std::vector< float > &nme) const |
float | pedestal (const CSCDetId &id, int channel) const |
static pedestal in ADC counts More... | |
float | pedestalSigma (const CSCDetId &id, int channel) const |
sigma of static pedestal in ADC counts More... | |
void | stripWeights (const CSCDetId &id, float *weights) const |
~CSCRecoConditions () | |
Private Member Functions | |
float | stripWeight (const CSCDetId &id, int channel) const |
Private Attributes | |
CSCConditions | theConditions |
Wrap CSCConditions class for use in CSC local reconstruction, in analogy with wrapper classes Rick uses in CSCDigitizer.
CSCConditions encapsulates the conditions data (e.g. calibration data) from the database and presents it as CSCRecHitD requires (and that is somewhat historical!)
All functions in public interface accept CSCDetId for ME1A (i.e. ring 4) with channel number 1-16 (and not the raw ME11 channel 65-80).
Definition at line 24 of file CSCRecoConditions.h.
|
explicit |
Definition at line 5 of file CSCRecoConditions.cc.
CSCRecoConditions::~CSCRecoConditions | ( | ) |
Definition at line 8 of file CSCRecoConditions.cc.
float CSCRecoConditions::anodeBXoffset | ( | const CSCDetId & | detId | ) | const |
Definition at line 58 of file CSCRecoConditions.cc.
References CSCConditions::anodeBXoffset(), CSCChannelTranslator::rawCSCDetId(), and theConditions.
Referenced by CSCMake2DRecHit::findWireBx().
|
inline |
return average gain over entire CSC system
Definition at line 39 of file CSCRecoConditions.h.
References CSCConditions::averageGain(), and theConditions.
Referenced by stripWeight().
bool CSCRecoConditions::badStrip | ( | const CSCDetId & | id, |
int | geomStrip | ||
) | const |
Is the strip bad?
Test for a bad strip.
Definition at line 297 of file CSCRecoConditions.cc.
References CSCConditions::badStripWord(), CSCChannelTranslator::channelFromStrip(), CSCChannelTranslator::rawCSCDetId(), CSCChannelTranslator::rawStripChannel(), and theConditions.
Referenced by CSCHitFromStripOnly::isDeadStrip(), and nearBadStrip().
const std::bitset< 112 > & CSCRecoConditions::badWireWord | ( | const CSCDetId & | id | ) | const |
Get bad wiregroup word.
Definition at line 316 of file CSCRecoConditions.cc.
References CSCConditions::badWireWord(), and theConditions.
Referenced by CSCHitFromWireOnly::isDeadWG().
float CSCRecoConditions::chamberTimingCorrection | ( | const CSCDetId & | detId | ) | const |
Definition at line 51 of file CSCRecoConditions.cc.
References CSCConditions::chamberTimingCorrection(), CSCChannelTranslator::rawCSCDetId(), and theConditions.
Referenced by CSCMake2DRecHit::hitFromStripAndWire().
float CSCRecoConditions::chipCorrection | ( | const CSCDetId & | detId, |
int | channel | ||
) | const |
Definition at line 37 of file CSCRecoConditions.cc.
References CSCChannelTranslator::channelFromStrip(), CSCConditions::chipCorrection(), CSCChannelTranslator::rawCSCDetId(), CSCChannelTranslator::rawStripChannel(), and theConditions.
Referenced by CSCMake2DRecHit::hitFromStripAndWire().
void CSCRecoConditions::crossTalk | ( | const CSCDetId & | id, |
int | centralStrip, | ||
std::vector< float > & | xtalks | ||
) | const |
fill crosstalk information for 3 neighbouring strips as linear vector (must be allocated by caller) Note that centralStrip is a 'geomStrip' and ranges 1-48 in ME1a.
Definition at line 209 of file CSCRecoConditions.cc.
References CSCConditions::crossTalk(), CSCDetId, Reference_intrackfit_cff::endcap, i, and theConditions.
Referenced by CSCXonStrip_MatchGatti::findXOnStrip().
float CSCRecoConditions::gain | ( | const CSCDetId & | id, |
int | channel | ||
) | const |
channels count from 1
Definition at line 16 of file CSCRecoConditions.cc.
References CSCConditions::gain(), CSCChannelTranslator::rawCSCDetId(), CSCChannelTranslator::rawStripChannel(), and theConditions.
void CSCRecoConditions::initializeEvent | ( | const edm::EventSetup & | es | ) |
fetch the cond data from the database
Definition at line 11 of file CSCRecoConditions.cc.
References CSCConditions::initializeEvent(), and theConditions.
Referenced by CSCRecHitDProducer::produce().
bool CSCRecoConditions::nearBadStrip | ( | const CSCDetId & | id, |
int | geomStrip | ||
) | const |
Is a neighbour bad?
Test for neighbouring bad strip I'm a bit confused about this - it returns true if strip is not at edge, and either of its neighbours is bad.
Definition at line 273 of file CSCRecoConditions.cc.
References badStrip().
Referenced by CSCHitFromStripOnly::isNearDeadStrip().
void CSCRecoConditions::noiseMatrix | ( | const CSCDetId & | id, |
int | centralStrip, | ||
std::vector< float > & | nme | ||
) | const |
fill expanded noise matrix for 3 neighbouring strips as linear vector (must be allocated by caller) Note that centralStrip is a 'geomStrip' and ranges 1-48 in ME1a.
Definition at line 94 of file CSCRecoConditions.cc.
References CSCDetId, Reference_intrackfit_cff::endcap, i, j, gen::k, CSCConditions::noiseMatrixElements(), stripWeight(), and theConditions.
Referenced by CSCXonStrip_MatchGatti::findXOnStrip().
float CSCRecoConditions::pedestal | ( | const CSCDetId & | id, |
int | channel | ||
) | const |
static pedestal in ADC counts
Definition at line 23 of file CSCRecoConditions.cc.
References CSCConditions::pedestal(), CSCChannelTranslator::rawCSCDetId(), CSCChannelTranslator::rawStripChannel(), and theConditions.
Referenced by CSCStaticPedestal::pedestal().
float CSCRecoConditions::pedestalSigma | ( | const CSCDetId & | id, |
int | channel | ||
) | const |
sigma of static pedestal in ADC counts
Definition at line 30 of file CSCRecoConditions.cc.
References CSCConditions::pedestalSigma(), CSCChannelTranslator::rawCSCDetId(), CSCChannelTranslator::rawStripChannel(), and theConditions.
|
private |
return gain weight for given strip channel
WARNING - expects ME11 detId for both ME1b (channels 1-64) AND for ME1a (channels 65-80) so this requires 'raw' channel interface.
Definition at line 321 of file CSCRecoConditions.cc.
References averageGain(), CSCConditions::gain(), and theConditions.
Referenced by noiseMatrix(), and stripWeights().
void CSCRecoConditions::stripWeights | ( | const CSCDetId & | id, |
float * | weights | ||
) | const |
calculate gain weights for all strips in a CSC layer
Definition at line 65 of file CSCRecoConditions.cc.
References Reference_intrackfit_cff::endcap, i, and stripWeight().
Referenced by CSCHitFromStripOnly::runStrip().
|
private |
Definition at line 87 of file CSCRecoConditions.h.
Referenced by anodeBXoffset(), averageGain(), badStrip(), badWireWord(), chamberTimingCorrection(), chipCorrection(), crossTalk(), gain(), initializeEvent(), noiseMatrix(), pedestal(), pedestalSigma(), and stripWeight().