1 #include "../interface/OccupancyClient.h"
19 deviationThreshold_(0.)
22 minHits_ = taskParams.getUntrackedParameter<
int>(
"minHits");
60 vector<double> digiPhiRingMean(28, 0.);
61 vector<double> rechitPhiRingMean(28, 0.);
62 vector<int> numCrystals(28, 0);
64 for(
unsigned dccid(1); dccid <= 54; dccid++){
68 if(ids.size() == 0)
continue;
70 for(vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
75 digiPhiRingMean.at(ieta - 1) +=
entries;
76 rechitPhiRingMean.at(ieta - 1) += rhentries;
78 numCrystals.at(ieta - 1) += 1;
83 for(
int ie(0); ie < 28; ie++){
84 digiPhiRingMean[ie] /= numCrystals[ie];
85 rechitPhiRingMean[ie] /= numCrystals[ie];
89 for(
unsigned dccid(1); dccid <= 54; dccid++){
93 if(ids.size() == 0)
continue;
96 for(vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
111 if(dccid <= 9 || dccid >= 46){
113 for(vector<EcalScDetId>::iterator scItr(scs.begin()); scItr != scs.end(); ++scItr)
121 vector<double> tpdigiPhiRingMean(28, 0.);
127 tpdigiPhiRingMean.at(ttid.
ietaAbs() - 1) += entries;
130 for(
int ie(0); ie < 28; ie++){
132 if(ie < 27) denom = 72.;
134 tpdigiPhiRingMean[ie] /= denom;
144 for(vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
const EcalElectronicsMapping * getElectronicsMap()
const CaloGeometry * geometry_
static const int PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
void beginRun(const edm::Run &, const edm::EventSetup &) override
static void setMEData(std::vector< MEData > &)
float deviationThreshold_
int ietaAbs() const
get the absolute value of the tower ieta
OccupancyClient(const edm::ParameterSet &, const edm::ParameterSet &)
void producePlots() override
std::vector< MESet * > MEs_
unsigned getNSuperCrystals(unsigned)
T const * product() const
const EcalTrigTowerConstituentsMap * getTrigTowerMap()
std::vector< MESet const * > sources_
DEFINE_ECALDQM_WORKER(CertificationClient)
void fillQuality_(unsigned, DetId const &, uint32_t, float)