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 * meEBUncalibRecHitsOccupancyGt100adc_
T getParameter(std::string const &) const
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.
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPeds
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< EBUncalibratedRecHitCollection > EBuncalibrechitCollection_token_
int iphi() const
get the crystal iphi
MonitorElement * meEBUncalibRecHitsOccupancy_
MonitorElement * meEBUncalibRecHitsChi2_
T const * product() const
std::vector< T >::const_iterator const_iterator
MonitorElement * meEBUncalibRecHitsAmpFullMap_
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
Analyze.
int ieta() const
get the crystal ieta
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meEBUncalibRecHitAmplMap_[36]
MonitorElement * meEBUncalibRecHitPedMap_[36]
int ic() const
get ECAL/crystal number inside SM
MonitorElement * meEBUncalibRecHitsAmplitudeGt100adc_
MonitorElement * meEBUncalibRecHitsPedestal_
int ism() const
get the ECAL/SM id
MonitorElement * meEBUncalibRecHitsPedFullMap_
const_iterator find(uint32_t rawId) const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Namespace of DDCMS conversion namespace.
MonitorElement * meEBUncalibRecHitsJitter_
std::vector< Item >::const_iterator const_iterator
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
int adc() const
get the ADC sample (12 bits)
const self & getMap() const
const_iterator end() const
MonitorElement * meEBUncalibRecHitMaxSampleRatioGt100adc_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
int ism(int ieta, int iphi)
MonitorElement * meEBUncalibRecHitsChi2Gt100adc_
MonitorElement * meEBUncalibRecHitMaxSampleRatio_
edm::EDGetTokenT< EBDigiCollection > EBdigiCollection_token_
MonitorElement * meEBUncalibRecHitsJitterGt100adc_
MonitorElement * meEBUncalibRecHitsPedestalGt100adc_
MonitorElement * meEBUncalibRecHitsAmplitude_
~EcalBarrelRecHitsValidation() override
Destructor.