1 #include "../interface/TimingTask.h"
15 energyThresholdEB_(0.),
16 energyThresholdEE_(0.)
32 for(
int iFED(0); iFED <
nDCC; iFED++){
48 MESet& meTimeAmpAll(
MEs_.at(
"TimeAmpAll"));
50 MESet& meTimeAllMap(
MEs_.at(
"TimeAllMap"));
58 if(
hit.checkFlagMask(mask))
return;
62 float time(
hit.time());
66 if(
hit.chi2() > chi2Threshold )
return;
68 meTimeAmp.fill(
id,
energy, time);
69 meTimeAmpAll.fill(
id,
energy, time);
72 meTimeAll.fill(
id, time);
73 meTimeMap.fill(
id, time);
74 meTime1D.fill(
id, time);
75 meTimeAllMap.fill(
id, time);
85 MESet& meTimeAmpBXm(
MEs_.at(
"TimeAmpBXm") );
86 MESet& meTimeAmpBXp(
MEs_.at(
"TimeAmpBXp") );
92 DetId id( uhitItr->id() );
94 if( uhitItr->chi2() > chi2Threshold )
continue;
97 float amp( uhitItr->amplitude() );
99 if( amp < ampThreshold )
continue;
102 float timeOff(
id.subdetId() ==
EcalBarrel ? 0.4 : 1.8 );
103 float hitTime( uhitItr->jitter()*25. + timeOff );
104 if(
abs(hitTime) >= 5. )
continue;
107 meTimeAmpBXm.fill(
id,amp,uhitItr->outOfTimeAmplitude(4) );
108 meTimeAmpBXp.fill(
id,amp,uhitItr->outOfTimeAmplitude(6) );
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_ECALDQM_WORKER(TYPE)
std::vector< EcalUncalibratedRecHit >::const_iterator const_iterator
void setParams(edm::ParameterSet const &) override
void runOnRecHits(EcalRecHitCollection const &, Collections)
Abs< T >::type abs(const T &t)
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
const_iterator end() const
bool filterRunType(short const *) override
const_iterator begin() const