39 if ( verbose_ ) dbe_->showDirStructure();
44 meEEUncalibRecHitsOccupancyPlus_ = 0;
45 meEEUncalibRecHitsOccupancyMinus_ = 0;
46 meEEUncalibRecHitsAmplitude_ = 0;
47 meEEUncalibRecHitsPedestal_ = 0;
48 meEEUncalibRecHitsJitter_ = 0;
49 meEEUncalibRecHitsChi2_ = 0;
50 meEEUncalibRecHitMaxSampleRatio_ = 0;
51 meEEUncalibRecHitsOccupancyPlusGt60adc_ = 0;
52 meEEUncalibRecHitsOccupancyMinusGt60adc_ = 0;
53 meEEUncalibRecHitsAmplitudeGt60adc_ = 0;
54 meEEUncalibRecHitsPedestalGt60adc_ = 0;
55 meEEUncalibRecHitsJitterGt60adc_ = 0;
56 meEEUncalibRecHitsChi2Gt60adc_ = 0;
57 meEEUncalibRecHitMaxSampleRatioGt60adc_ = 0;
58 meEEUncalibRecHitsAmpFullMap_ = 0;
59 meEEUncalibRecHitsPedFullMap_ = 0;
66 dbe_->setCurrentFolder(
"EcalRecHitsV/EcalEndcapRecHitsTask");
68 sprintf (histo,
"EE+ Occupancy" );
69 meEEUncalibRecHitsOccupancyPlus_ = dbe_->book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
71 sprintf (histo,
"EE- Occupancy" );
72 meEEUncalibRecHitsOccupancyMinus_ = dbe_->book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
74 sprintf (histo,
"EE Amplitude" );
75 meEEUncalibRecHitsAmplitude_ = dbe_->book1D(histo, histo, 201, -20., 4000.);
77 sprintf (histo,
"EE Pedestal" );
78 meEEUncalibRecHitsPedestal_ = dbe_->book1D(histo, histo, 50, 190., 210.);
80 sprintf (histo,
"EE Jitter" );
81 meEEUncalibRecHitsJitter_ = dbe_->book1D(histo, histo, 100, 0., 100.);
83 sprintf (histo,
"EE Chi2" );
84 meEEUncalibRecHitsChi2_ = dbe_->book1D(histo, histo, 100, 18000., 22000.);
86 sprintf (histo,
"EE RecHit Max Sample Ratio");
87 meEEUncalibRecHitMaxSampleRatio_ = dbe_->book1D(histo, histo, 120, 0.90, 1.05);
89 sprintf (histo,
"EE+ Occupancy gt 60 adc counts" );
90 meEEUncalibRecHitsOccupancyPlusGt60adc_ = dbe_->book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
92 sprintf (histo,
"EE- Occupancy gt 60 adc counts" );
93 meEEUncalibRecHitsOccupancyMinusGt60adc_ = dbe_->book2D(histo, histo, 100, 0., 100., 100, 0., 100.);
95 sprintf (histo,
"EE Amplitude gt 60 adc counts" );
96 meEEUncalibRecHitsAmplitudeGt60adc_ = dbe_->book1D(histo, histo, 200, 0., 4000.);
98 sprintf (histo,
"EE Pedestal gt 60 adc counts" );
99 meEEUncalibRecHitsPedestalGt60adc_ = dbe_->book1D(histo, histo, 50, 190., 210.);
101 sprintf (histo,
"EE Jitter gt 60 adc counts" );
102 meEEUncalibRecHitsJitterGt60adc_ = dbe_->book1D(histo, histo, 100, 0., 100.);
104 sprintf (histo,
"EE Chi2 gt 60 adc counts" );
105 meEEUncalibRecHitsChi2Gt60adc_ = dbe_->book1D(histo, histo, 100, 18000., 22000.);
107 sprintf (histo,
"EE RecHit Max Sample Ratio gt 60 adc counts");
108 meEEUncalibRecHitMaxSampleRatioGt60adc_ = dbe_->book1D(histo, histo, 120, 0.90, 1.05);
110 sprintf (histo,
"EE Amplitude Full Map");
111 meEEUncalibRecHitsAmpFullMap_ = dbe_->bookProfile2D(histo, histo, 100, 0., 100., 100, 0., 100., 200, 0., 4000.);
113 sprintf (histo,
"EE Pedestal Full Map");
114 meEEUncalibRecHitsPedFullMap_ = dbe_->bookProfile2D(histo, histo, 100, 0., 100., 100, 0., 100., 50, 194., 201.);
134 e.
getByLabel( EEuncalibrechitCollection_, EcalUncalibRecHitEE);
135 if (EcalUncalibRecHitEE.
isValid()) {
136 EEUncalibRecHit = EcalUncalibRecHitEE.
product() ;
141 bool skipDigis =
false;
160 int mySide = EEid.
zside();
163 if (mySide > 0) {
if (meEEUncalibRecHitsOccupancyPlus_) meEEUncalibRecHitsOccupancyPlus_ ->Fill(EEid.
ix(), EEid.
iy()); }
164 if (mySide < 0) {
if (meEEUncalibRecHitsOccupancyMinus_) meEEUncalibRecHitsOccupancyMinus_ ->Fill(EEid.
ix(), EEid.
iy()); }
165 if (meEEUncalibRecHitsAmplitude_) meEEUncalibRecHitsAmplitude_ ->
Fill(uncalibRecHit->amplitude());
166 if (meEEUncalibRecHitsPedestal_) meEEUncalibRecHitsPedestal_ ->
Fill(uncalibRecHit->pedestal());
167 if (meEEUncalibRecHitsJitter_) meEEUncalibRecHitsJitter_ ->
Fill(uncalibRecHit->jitter());
168 if (meEEUncalibRecHitsChi2_) meEEUncalibRecHitsChi2_ ->
Fill(uncalibRecHit->chi2());
169 if (meEEUncalibRecHitsAmpFullMap_) meEEUncalibRecHitsAmpFullMap_ ->
Fill(EEid.
ix(), EEid.
iy(), uncalibRecHit->amplitude());
170 if (meEEUncalibRecHitsPedFullMap_) meEEUncalibRecHitsPedFullMap_ ->
Fill(EEid.
ix(), EEid.
iy(), uncalibRecHit->pedestal());
174 if ( uncalibRecHit->amplitude() > 60 )
176 if (mySide > 0) {
if (meEEUncalibRecHitsOccupancyPlusGt60adc_) meEEUncalibRecHitsOccupancyPlusGt60adc_ ->Fill(EEid.
ix(), EEid.
iy()); }
177 if (mySide < 0) {
if (meEEUncalibRecHitsOccupancyMinusGt60adc_) meEEUncalibRecHitsOccupancyMinusGt60adc_->Fill(EEid.
ix(), EEid.
iy()); }
178 if (meEEUncalibRecHitsAmplitudeGt60adc_) meEEUncalibRecHitsAmplitudeGt60adc_ ->
Fill(uncalibRecHit->amplitude());
179 if (meEEUncalibRecHitsPedestalGt60adc_) meEEUncalibRecHitsPedestalGt60adc_ ->
Fill(uncalibRecHit->pedestal());
180 if (meEEUncalibRecHitsJitterGt60adc_) meEEUncalibRecHitsJitterGt60adc_ ->
Fill(uncalibRecHit->jitter());
181 if (meEEUncalibRecHitsChi2Gt60adc_) meEEUncalibRecHitsChi2Gt60adc_ ->
Fill(uncalibRecHit->chi2());
189 if (myDigi != EEDigi->
end()){
192 double analogSample = thisSample.
adc();
193 if ( eMax < analogSample ){
207 if (eMax > (*it).mean_x1 + 5 * (*it).rms_x1 && eMax != 0 ){
209 if ( meEEUncalibRecHitMaxSampleRatio_ )
210 { meEEUncalibRecHitMaxSampleRatio_->Fill( (uncalibRecHit->amplitude()+uncalibRecHit->pedestal())/eMax); }
212 if ( meEEUncalibRecHitMaxSampleRatioGt60adc_ && (uncalibRecHit->amplitude() > 60) )
213 { meEEUncalibRecHitMaxSampleRatioGt60adc_->Fill( (uncalibRecHit->amplitude()+uncalibRecHit->pedestal())/eMax); }
215 LogDebug(
"EcalRecHitsTaskInfo") <<
"endcap, eMax = " << eMax <<
" Amplitude = " << uncalibRecHit->amplitude()+uncalibRecHit->pedestal();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
EcalEndcapRecHitsValidation(const edm::ParameterSet &ps)
Constructor.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
const self & getMap() const
std::vector< T >::const_iterator const_iterator
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
const_iterator find(id_type i) const
~EcalEndcapRecHitsValidation()
Destructor.
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
T const * product() const
T const * product() const
const_iterator end() const
const_iterator find(uint32_t rawId) const
const_iterator end() const
const_iterator begin() const
int adc() const
get the ADC sample (12 bits)