CMS 3D CMS Logo

CSCRecoConditions.h
Go to the documentation of this file.
1 #ifndef CSCRecRecHitD_CSCRecoConditions_h
2 #define CSCRecRecHitD_CSCRecoConditions_h
3 
23 
25 public:
26  // Passed a PSet just in case we need to configure in some way
27  explicit CSCRecoConditions(const edm::ParameterSet& pset);
29 
31  void initializeEvent(const edm::EventSetup& es);
32 
34 
36  float gain(const CSCDetId& id, int geomStrip) const;
37 
39  float averageGain() const { return theConditions.averageGain(); }
40 
44  void stripWeights(const CSCDetId& id, short int nstrips, float* weights) const;
45 
47  float pedestal(const CSCDetId& id, int channel) const;
48 
50  float pedestalSigma(const CSCDetId& id, int channel) const;
51 
54  void noiseMatrix(const CSCDetId& id, int centralStrip, std::vector<float>& nme) const;
55 
58  void crossTalk(const CSCDetId& id, int centralStrip, std::vector<float>& xtalks) const;
59 
60  // returns chip speed correction in ns given strio channel
61  float chipCorrection(const CSCDetId& detId, int channel) const;
62 
63  // returns chamber level timing correction (cable length and extra chamber correction) in ns
64  float chamberTimingCorrection(const CSCDetId& id) const;
65 
66  // returns anode bx off for each chamber, used to correct anode times to 0 for collision muons
67  float anodeBXoffset(const CSCDetId& detId) const;
68 
70  float gasGainCorrection(const CSCDetId& id, int strip, int wireGroup) const;
71 
73  void fillBadChannelWords(const CSCDetId& id);
74 
76  bool nearBadStrip(const CSCDetId& id, int geomStrip, int nstrips) const;
77 
79  bool badStrip(const CSCDetId& id, int geomStrip, int nstrips) const;
80 
82  const std::bitset<112>& badWireWord(const CSCDetId& id) const;
83 
84 private:
86 
87  float stripWeight(const CSCDetId& id, int geomStrip) const;
88 
90 };
91 
92 #endif
HLT_2018_cff.weights
weights
Definition: HLT_2018_cff.py:87167
CSCRecoConditions::chipCorrection
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...
Definition: CSCRecoConditions.cc:36
CSCRecoConditions::initializeEvent
void initializeEvent(const edm::EventSetup &es)
fetch the cond data from the database
Definition: CSCRecoConditions.cc:10
CSCRecoConditions::pedestalSigma
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,...
Definition: CSCRecoConditions.cc:24
CSCRecoConditions::~CSCRecoConditions
~CSCRecoConditions()
Definition: CSCRecoConditions.cc:8
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCRecoConditions::gain
float gain(const CSCDetId &id, int geomStrip) const
channels and geomstrips count from 1
Definition: CSCRecoConditions.cc:28
CSCRecoConditions::noiseMatrix
void noiseMatrix(const CSCDetId &id, int centralStrip, std::vector< float > &nme) const
Definition: CSCRecoConditions.cc:68
CSCRecoConditions::averageGain
float averageGain() const
return average gain over entire CSC system
Definition: CSCRecoConditions.h:39
CSCRecoConditions::CSCRecoConditions
CSCRecoConditions(const edm::ParameterSet &pset)
Definition: CSCRecoConditions.cc:6
CSCRecoConditions::badWireWord
const std::bitset< 112 > & badWireWord(const CSCDetId &id) const
Get bad wiregroup word.
Definition: CSCRecoConditions.cc:162
CSCRecoConditions::chamberTimingCorrection
float chamberTimingCorrection(const CSCDetId &id) const
Definition: CSCRecoConditions.cc:164
CSCRecoConditions::crossTalk
void crossTalk(const CSCDetId &id, int centralStrip, std::vector< float > &xtalks) const
Definition: CSCRecoConditions.cc:115
CSCDetId.h
CSCConditions
Definition: CSCConditions.h:48
CSCRecoConditions::stripWeight
float stripWeight(const CSCDetId &id, int geomStrip) const
return gain weight for given strip channel
Definition: CSCRecoConditions.cc:56
CSCRecoConditions::badStrip
bool badStrip(const CSCDetId &id, int geomStrip, int nstrips) const
Is the strip bad?
Definition: CSCRecoConditions.cc:138
edm::ParameterSet
Definition: ParameterSet.h:36
CSCRecoConditions::nearBadStrip
bool nearBadStrip(const CSCDetId &id, int geomStrip, int nstrips) const
Is a neighbour bad?
Definition: CSCRecoConditions.cc:132
CSCConditions.h
CSCDetId
Definition: CSCDetId.h:26
CSCConditions::averageGain
float averageGain() const
Definition: CSCConditions.cc:352
CSCRecoConditions::theConditions
CSCConditions theConditions
Definition: CSCRecoConditions.h:89
CSCRecoConditions::pedestal
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)
Definition: CSCRecoConditions.cc:18
CSCRecoConditions::fillBadChannelWords
void fillBadChannelWords(const CSCDetId &id)
fill bad strip & bad wiregroup bitsets from conditions data
Definition: CSCRecoConditions.cc:13
edm::EventSetup
Definition: EventSetup.h:57
CSCRecoConditions::gasGainCorrection
float gasGainCorrection(const CSCDetId &id, int strip, int wireGroup) const
returns gas-gain correction
Definition: CSCRecoConditions.cc:170
CSCRecoConditions
Definition: CSCRecoConditions.h:24
Frameworkfwd.h
CSCRecoConditions::anodeBXoffset
float anodeBXoffset(const CSCDetId &detId) const
Definition: CSCRecoConditions.cc:168
CSCRecoConditions::stripWeights
void stripWeights(const CSCDetId &id, short int nstrips, float *weights) const
Definition: CSCRecoConditions.cc:47
ParameterSet.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27