#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 &id) const |
float | chipCorrection (const CSCDetId &detId, int channel) const |
All other functions are accessed by geometrical strip label (i.e. strip number according to local coordinates) More... | |
void | crossTalk (const CSCDetId &id, int centralStrip, std::vector< float > &xtalks) const |
CSCRecoConditions (const edm::ParameterSet &pset) | |
float | gain (const CSCDetId &id, int geomStrip) const |
channels and geomstrips count from 1 More... | |
float | gasGainCorrection (const CSCDetId &id, int strip, int wireGroup) const |
returns gas-gain correction 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 for strip channel (e.g. 1-16 for ganged ME1a, 1-48 for unganged ME1a) More... | |
float | pedestalSigma (const CSCDetId &id, int channel) const |
sigma of static pedestal in ADC counts for strip channel (e.g. 1-16 for ganged ME1a, 1-48 for unganged ME1a) More... | |
void | stripWeights (const CSCDetId &id, short int nstrips, float *weights) const |
~CSCRecoConditions () | |
Private Member Functions | |
float | stripWeight (const CSCDetId &id, int geomStrip) const |
return gain weight for given strip channel More... | |
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 6 of file CSCRecoConditions.cc.
CSCRecoConditions::~CSCRecoConditions | ( | ) |
Definition at line 9 of file CSCRecoConditions.cc.
float CSCRecoConditions::anodeBXoffset | ( | const CSCDetId & | detId | ) | const |
Definition at line 159 of file CSCRecoConditions.cc.
References CSCConditions::anodeBXoffset(), and theConditions.
Referenced by CSCMake2DRecHit::findWireBx().
|
inline |
return average gain over entire CSC system
Definition at line 41 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?
Is strip itself a bad strip?
Definition at line 133 of file CSCRecoConditions.cc.
References CSCConditions::badStripWord(), CSCConditions::channelFromStrip(), CSCConditions::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 151 of file CSCRecoConditions.cc.
References CSCConditions::badWireWord(), and theConditions.
Referenced by CSCHitFromWireOnly::isDeadWG().
float CSCRecoConditions::chamberTimingCorrection | ( | const CSCDetId & | id | ) | const |
Definition at line 155 of file CSCRecoConditions.cc.
References CSCConditions::chamberTimingCorrection(), and theConditions.
Referenced by CSCMake2DRecHit::hitFromStripAndWire().
float CSCRecoConditions::chipCorrection | ( | const CSCDetId & | detId, |
int | channel | ||
) | const |
All other functions are accessed by geometrical strip label (i.e. strip number according to local coordinates)
Definition at line 35 of file CSCRecoConditions.cc.
References CSCConditions::channelFromStrip(), CSCConditions::chipCorrection(), 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 e.g. always ranges 1-48 in ME1a.
Definition at line 109 of file CSCRecoConditions.cc.
References CSCConditions::channelFromStrip(), CSCConditions::crossTalk(), i, and theConditions.
Referenced by CSCXonStrip_MatchGatti::findXOnStrip().
float CSCRecoConditions::gain | ( | const CSCDetId & | id, |
int | geomStrip | ||
) | const |
channels and geomstrips count from 1
return gain for given strip
Definition at line 28 of file CSCRecoConditions.cc.
References CSCConditions::gain(), LogTrace, and theConditions.
Referenced by stripWeight().
float CSCRecoConditions::gasGainCorrection | ( | const CSCDetId & | id, |
int | strip, | ||
int | wireGroup | ||
) | const |
returns gas-gain correction
Definition at line 163 of file CSCRecoConditions.cc.
References CSCConditions::channelFromStrip(), CSCConditions::gasGainCorrection(), and theConditions.
Referenced by CSCMake2DRecHit::hitFromStripAndWire().
void CSCRecoConditions::initializeEvent | ( | const edm::EventSetup & | es | ) |
fetch the cond data from the database
Definition at line 12 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?
Is an immediate neighbour a bad strip?
Definition at line 127 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 66 of file CSCRecoConditions.cc.
References CSCConditions::channelFromStrip(), HTMLExport::elem(), i, j, gen::k, m, CSCConditions::noiseMatrixElements(), stripWeight(), theConditions, and w.
Referenced by CSCXonStrip_MatchGatti::findXOnStrip().
float CSCRecoConditions::pedestal | ( | const CSCDetId & | id, |
int | geomChannel | ||
) | const |
static pedestal in ADC counts for strip channel (e.g. 1-16 for ganged ME1a, 1-48 for unganged ME1a)
gains & pedestals are requested by geometric channel (as in CSCStripDigi- e.g. 1-16 for ganged ME1a, and with any readout flips already removed)
Definition at line 19 of file CSCRecoConditions.cc.
References LogTrace, CSCConditions::pedestal(), and theConditions.
Referenced by CSCStaticPedestal::pedestal().
float CSCRecoConditions::pedestalSigma | ( | const CSCDetId & | id, |
int | channel | ||
) | const |
sigma of static pedestal in ADC counts for strip channel (e.g. 1-16 for ganged ME1a, 1-48 for unganged ME1a)
Definition at line 24 of file CSCRecoConditions.cc.
References CSCConditions::pedestalSigma(), and theConditions.
|
private |
return gain weight for given strip channel
Definition at line 56 of file CSCRecoConditions.cc.
References averageGain(), CSCConditions::channelFromStrip(), gain(), LogTrace, theConditions, and w.
Referenced by noiseMatrix(), and stripWeights().
void CSCRecoConditions::stripWeights | ( | const CSCDetId & | id, |
short int | nstrips, | ||
float * | weights | ||
) | const |
calculate gain weights for all strips in a CSC layer (total in layer = nstrips) this is averageGain()/gain for each strip filled into a C-array which caller must have allocated. values are constrained to be in [0.5, 1.5]
Definition at line 46 of file CSCRecoConditions.cc.
References i, and stripWeight().
Referenced by CSCHitFromStripOnly::runStrip().
|
private |
Definition at line 90 of file CSCRecoConditions.h.
Referenced by anodeBXoffset(), averageGain(), badStrip(), badWireWord(), chamberTimingCorrection(), chipCorrection(), crossTalk(), gain(), gasGainCorrection(), initializeEvent(), noiseMatrix(), pedestal(), pedestalSigma(), and stripWeight().