1 #include "../interface/TimingTask.h"
15 energyThresholdEB_(0.),
16 energyThresholdEE_(0.),
33 for(
int iFED(0); iFED <
nDCC; iFED++){
60 MESet& meTimeAmpAll(
MEs_.at(
"TimeAmpAll"));
62 MESet& meTimeAllMap(
MEs_.at(
"TimeAllMap"));
72 if(
hit.checkFlagMask(mask))
return;
76 float time(
hit.time());
85 if ( eeId.zside() < 0 )
91 meChi2.fill(signedSubdet,
hit.chi2());
92 if (
hit.chi2() > chi2Threshold )
return;
94 meTimeAmp.fill(
id,
energy, time);
95 meTimeAmpAll.fill(
id,
energy, time);
98 meTimeAll.fill(
id, time);
99 meTimeMap.fill(
id, time);
101 meTime1D.fill(
id, time);
102 meTimeAllMap.fill(
id, time);
112 MESet& meTimeAmpBXm(
MEs_.at(
"TimeAmpBXm") );
113 MESet& meTimeAmpBXp(
MEs_.at(
"TimeAmpBXp") );
119 DetId id( uhitItr->id() );
121 if( uhitItr->chi2() > chi2Threshold )
continue;
124 float amp( uhitItr->amplitude() );
126 if( amp < ampThreshold )
continue;
129 float timeOff(
id.subdetId() ==
EcalBarrel ? 0.4 : 1.8 );
130 float hitTime( uhitItr->jitter()*25. + timeOff );
131 if(
std::abs(hitTime) >= 5. )
continue;
134 meTimeAmpBXm.fill(
id,amp,uhitItr->outOfTimeAmplitude(4) );
135 meTimeAmpBXp.fill(
id,amp,uhitItr->outOfTimeAmplitude(6) );
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_ECALDQM_WORKER(TYPE)
edm::LuminosityBlockNumber_t iLumi
std::vector< EcalUncalibratedRecHit >::const_iterator const_iterator
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void setParams(edm::ParameterSet const &) override
void runOnRecHits(EcalRecHitCollection const &, Collections)
Abs< T >::type abs(const T &t)
virtual void reset(double=0., double=0., double=0.)
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
const_iterator end() const
virtual void fill(DetId const &, double=1., double=1., double=1.)
bool filterRunType(short const *) override
const_iterator begin() const