1 #include "../interface/TimingTask.h" 16 bxBinEdges_{ {1, 271, 541, 892, 1162, 1432, 1783, 2053, 2323, 2674, 2944, 3214, 3446, 3490, 3491, 3565} },
38 for(
int iFED(0); iFED <
nDCC; iFED++){
73 MESet& meTimeAmpAll(
MEs_.at(
"TimeAmpAll"));
74 MESet& meTimingVsBX(
MEs_.at(
"TimingVsBX"));
76 MESet& meTimeAllMap(
MEs_.at(
"TimeAllMap"));
86 if(
hit.checkFlagMask(mask))
return;
91 float energy(
hit.energy());
99 if ( eeId.zside() < 0 )
104 if ( energy > threshold )
105 meChi2.fill(signedSubdet,
hit.chi2());
106 if (
hit.chi2() > chi2Threshold )
return;
108 meTimeAmp.fill(
id, energy,
time);
109 meTimeAmpAll.fill(
id, energy,
time);
111 meTimingVsBX.fill(signedSubdet,
bxBin_,
time);
113 if(energy > threshold){
114 meTimeAll.fill(
id,
time);
115 meTimeMap.fill(
id,
time);
117 meTime1D.fill(
id,
time);
118 meTimeAllMap.fill(
id,
time);
128 MESet& meTimeAmpBXm(
MEs_.at(
"TimeAmpBXm") );
129 MESet& meTimeAmpBXp(
MEs_.at(
"TimeAmpBXp") );
137 if( uhitItr->chi2() > chi2Threshold )
continue;
140 float amp( uhitItr->amplitude() );
142 if( amp < ampThreshold )
continue;
145 float timeOff(
id.subdetId() ==
EcalBarrel ? 0.4 : 1.8 );
146 float hitTime( uhitItr->jitter()*25. + timeOff );
147 if(
std::abs(hitTime) >= 5. )
continue;
150 meTimeAmpBXm.fill(
id,amp,uhitItr->outOfTimeAmplitude(4) );
151 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
int bunchCrossing() const
void beginEvent(edm::Event const &, edm::EventSetup const &) override
std::array< int, nBXBins+1 > bxBinEdges_
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