1 #include "../interface/TimingTask.h" 20 energyThresholdEB_(0.),
21 energyThresholdEE_(0.),
22 timingVsBXThreshold_(0.),
41 for(
int iFED(0); iFED <
nDCC; iFED++){
76 MESet& meTimeAmpAll(
MEs_.at(
"TimeAmpAll"));
79 MESet& meTimeAllMap(
MEs_.at(
"TimeAllMap"));
89 if(
hit.checkFlagMask(mask))
return;
94 float energy(
hit.energy());
102 if ( eeId.zside() < 0 )
107 if ( energy > threshold )
108 meChi2.fill(signedSubdet,
hit.chi2());
109 if (
hit.chi2() > chi2Threshold )
return;
111 meTimeAmp.fill(
id, energy,
time);
112 meTimeAmpAll.fill(
id, energy,
time);
116 if(energy > threshold){
117 meTimeAll.fill(
id,
time);
118 meTimeMap.fill(
id,
time);
120 meTime1D.fill(
id,
time);
121 meTimeAllMap.fill(
id,
time);
131 MESet& meTimeAmpBXm(
MEs_.at(
"TimeAmpBXm") );
132 MESet& meTimeAmpBXp(
MEs_.at(
"TimeAmpBXp") );
140 if( uhitItr->chi2() > chi2Threshold )
continue;
143 float amp( uhitItr->amplitude() );
145 if( amp < ampThreshold )
continue;
148 float timeOff(
id.subdetId() ==
EcalBarrel ? 0.4 : 1.8 );
149 float hitTime( uhitItr->jitter()*25. + timeOff );
150 if(
std::abs(hitTime) >= 5. )
continue;
153 meTimeAmpBXm.fill(
id,amp,uhitItr->outOfTimeAmplitude(4) );
154 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
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void setParams(edm::ParameterSet const &) override
float timingVsBXThreshold_
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.)
std::vector< int > bxBinEdges_
bool filterRunType(short const *) override
const_iterator begin() const