48 for (
short int i = 1;
i < nstrips+1; ++
i) {
62 LogTrace(
"CSCRecoConditions") <<
id <<
" geomStrip " << geomStrip <<
" stripWeight " <<
w;
73 const float fakeme12[15] = {8.64, 3.47, 2.45, 8.60, 3.28, 1.88, 8.61, 3.18, 1.99, 7.67, 2.64, 0., 7.71, 0., 0.};
77 for (
short int i = geomStrip-1;
i < geomStrip+2; ++
i) {
79 std::vector<float> me(12);
85 for (
short int j=0;
j<11; ++
j ) {
94 bool isFlawed =
false;
95 for (
short int k = 0;
k < 15; ++
k) {
96 if (elem[
k] < 0.001) elem[
k] = 0.001;
97 if (elem[
k] > 50.) isFlawed =
true;
102 for (
short int m = 0;
m < 15; ++
m ) { elem[
m] = fakeme12[
m]; }
105 for (
int k = 0;
k < 15; ++
k) { nMatrix.push_back( elem[
k] ); }
115 for (
short int i = geomStrip-1;
i < geomStrip+2; ++
i) {
117 std::vector<float> ct(4);
119 xtalks.push_back(ct[0]);
120 xtalks.push_back(ct[1]);
121 xtalks.push_back(ct[2]);
122 xtalks.push_back(ct[3]);
137 if(geomStrip>0 && geomStrip<81){
142 if( rawChan>0 && rawChan<81 ){
143 aBadS = badStrips.test(rawChan-1);
float gasGainCorrection(const CSCDetId &id, int strip, int wireGroup) const
returns gas-gain correction
const std::bitset< 80 > & badStripWord(const CSCDetId &id) const
bad channel words per CSCLayer - 1 bit per channel
float pedestalSigma(const CSCDetId &detId, int channel) const
static ped rms in ADC counts
void noiseMatrixElements(const CSCDetId &id, int channel, std::vector< float > &me) const
fill vector (dim 12, must be allocated by caller) with noise matrix elements (scaled to float) ...
CSCRecoConditions(const edm::ParameterSet &pset)
void noiseMatrix(const CSCDetId &id, int centralStrip, std::vector< float > &nme) const
bool nearBadStrip(const CSCDetId &id, int geomStrip) const
Is a neighbour bad?
float chipCorrection(const CSCDetId &detId, int channel) const
chip speed correction in ns given detId (w/layer) and strip channel
float averageGain() const
return average gain over entire CSC system
float chamberTimingCorrection(const CSCDetId &detId) const
chamber timing correction in ns given detId of chamber
void crossTalk(const CSCDetId &id, int channel, std::vector< float > &ct) const
fill vector (dim 4, must be allocated by caller) with crosstalk sl, il, sr, ir
float anodeBXoffset(const CSCDetId &detId) const
anode bx offset in bx given detId of chamber
float pedestal(const CSCDetId &detId, int channel) const
static ped in ADC counts
float gain(const CSCDetId &id, int geomStrip) const
channels and geomstrips count from 1
int rawStripChannel(const CSCDetId &id, int geomChannel) const
int channelFromStrip(const CSCDetId &id, int geomStrip) const
feedthrough for external access
bool badStrip(const CSCDetId &id, int geomStrip) const
Is the strip bad?
CSCConditions theConditions
void initializeEvent(const edm::EventSetup &es)
fetch database content via EventSetup
const std::bitset< 112 > & badWireWord(const CSCDetId &id) const
float stripWeight(const CSCDetId &id, int geomStrip) const
return gain weight for given strip channel
float gain(const CSCDetId &detId, int channel) const
gain per channel
float chipCorrection(const CSCDetId &detId, int channel) const
All other functions are accessed by geometrical strip label (i.e. strip number according to local coo...
float anodeBXoffset(const CSCDetId &detId) const
void crossTalk(const CSCDetId &id, int centralStrip, std::vector< float > &xtalks) const
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)
void stripWeights(const CSCDetId &id, short int nstrips, float *weights) 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) ...
float gasGainCorrection(const CSCDetId &detId, int strip, int wire) const
gas gain correction as a function of detId (w/layer), strip, and wire channels
float chamberTimingCorrection(const CSCDetId &id) const
void initializeEvent(const edm::EventSetup &es)
fetch the cond data from the database
const std::bitset< 112 > & badWireWord(const CSCDetId &id) const
Get bad wiregroup word.