|
|
Go to the documentation of this file.
41 for (
int i = 0;
i < 36;
i++) {
56 sprintf(
histo,
"EB Occupancy");
59 sprintf(
histo,
"EB Amplitude");
62 sprintf(
histo,
"EB Pedestal");
65 sprintf(
histo,
"EB Jitter");
68 sprintf(
histo,
"EB Chi2");
71 sprintf(
histo,
"EB RecHit Max Sample Ratio");
74 sprintf(
histo,
"EB Occupancy gt 100 adc counts");
77 sprintf(
histo,
"EB Amplitude gt 100 adc counts");
80 sprintf(
histo,
"EB Pedestal gt 100 adc counts");
83 sprintf(
histo,
"EB Jitter gt 100 adc counts");
86 sprintf(
histo,
"EB Chi2 gt 100 adc counts");
89 sprintf(
histo,
"EB RecHit Max Sample Ratio gt 100 adc counts");
92 sprintf(
histo,
"EB Amplitude Full Map");
93 meEBUncalibRecHitsAmpFullMap_ = ibooker.
bookProfile2D(
histo,
histo, 170, -85., 85., 360, 0., 360., 200, 0., 4000.);
95 sprintf(
histo,
"EB Pedestal Full Map");
96 meEBUncalibRecHitsPedFullMap_ = ibooker.
bookProfile2D(
histo,
histo, 170, -85., 85., 360, 0., 360., 50, 194., 201.);
98 for (
int i = 0;
i < 36;
i++) {
99 sprintf(
histo,
"EB Amp SM%02d",
i + 1);
100 meEBUncalibRecHitAmplMap_[
i] = ibooker.
bookProfile2D(
histo,
histo, 85, 0., 85., 20, 0., 20., 200, 0., 4000.);
102 sprintf(
histo,
"EB Ped SM%02d",
i + 1);
103 meEBUncalibRecHitPedMap_[
i] = ibooker.
bookProfile2D(
histo,
histo, 85, 0., 85., 20, 0., 20., 50, 194., 201.);
111 if (EcalUncalibRecHitEB.
isValid()) {
117 bool skipDigis =
false;
151 if (uncalibRecHit->amplitude() > 100) {
166 int ie = (ic - 1) / 20 + 1;
167 int ip = (ic - 1) % 20 + 1;
169 float xie = ie - 0.5;
170 float xip = ip - 0.5;
181 if (myDigi !=
EBDigi->end()) {
184 double analogSample = thisSample.
adc();
185 if (
eMax < analogSample) {
197 if (
eMax > (*it).mean_x1 + 5 * (*it).rms_x1 &&
eMax != 0) {
205 <<
"barrel, eMax = " <<
eMax <<
" Amplitude = " << uncalibRecHit->amplitude() + uncalibRecHit->pedestal();
MonitorElement * meEBUncalibRecHitsChi2Gt100adc_
const self & getMap() const
const_iterator end() const
int ieta() const
get the crystal ieta
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< EBDigiCollection > EBdigiCollection_token_
T const * product() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
~EcalBarrelRecHitsValidation() override
Destructor.
MonitorElement * meEBUncalibRecHitsChi2_
int ic() const
get ECAL/crystal number inside SM
MonitorElement * meEBUncalibRecHitsAmpFullMap_
MonitorElement * meEBUncalibRecHitAmplMap_[36]
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
EcalBarrelRecHitsValidation(const edm::ParameterSet &ps)
Constructor.
virtual void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
Analyze.
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meEBUncalibRecHitsPedestal_
MonitorElement * meEBUncalibRecHitsOccupancy_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * meEBUncalibRecHitsOccupancyGt100adc_
int adc() const
get the ADC sample (12 bits)
MonitorElement * meEBUncalibRecHitMaxSampleRatioGt100adc_
MonitorElement * meEBUncalibRecHitMaxSampleRatio_
MonitorElement * meEBUncalibRecHitsJitterGt100adc_
const_iterator find(uint32_t rawId) const
MonitorElement * meEBUncalibRecHitsPedFullMap_
MonitorElement * meEBUncalibRecHitsAmplitude_
edm::EDGetTokenT< EBUncalibratedRecHitCollection > EBuncalibrechitCollection_token_
int ism(int ieta, int iphi)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
MonitorElement * meEBUncalibRecHitsPedestalGt100adc_
MonitorElement * meEBUncalibRecHitsAmplitudeGt100adc_
int ism() const
get the ECAL/SM id
std::vector< Item >::const_iterator const_iterator
int iphi() const
get the crystal iphi
MonitorElement * meEBUncalibRecHitPedMap_[36]
MonitorElement * meEBUncalibRecHitsJitter_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Namespace of DDCMS conversion namespace.
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPeds