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"));
60 if(
hit.checkFlagMask(mask))
return;
64 float time(
hit.time());
82 meChi2.fill(signedSubdet,
hit.chi2());
85 if(
hit.chi2() > chi2Threshold )
return;
87 meTimeAmp.fill(
id,
energy, time);
88 meTimeAmpAll.fill(
id,
energy, time);
91 meTimeAll.fill(
id, time);
92 meTimeMap.fill(
id, time);
93 meTime1D.fill(
id, time);
94 meTimeAllMap.fill(
id, time);
104 MESet& meTimeAmpBXm(
MEs_.at(
"TimeAmpBXm") );
105 MESet& meTimeAmpBXp(
MEs_.at(
"TimeAmpBXp") );
111 DetId id( uhitItr->id() );
113 if( uhitItr->chi2() > chi2Threshold )
continue;
116 float amp( uhitItr->amplitude() );
118 if( amp < ampThreshold )
continue;
121 float timeOff(
id.subdetId() ==
EcalBarrel ? 0.4 : 1.8 );
122 float hitTime( uhitItr->jitter()*25. + timeOff );
123 if(
abs(hitTime) >= 5. )
continue;
126 meTimeAmpBXm.fill(
id,amp,uhitItr->outOfTimeAmplitude(4) );
127 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