22 #ifdef WITH_ECAL_COND_DB
61 for (
int i=0;
i<3;
i++) {
70 for (
int i=0;
i<2;
i++) {
136 if (
i01_[ism-1] )
delete i01_[ism-1];
137 if (
i02_[ism-1] )
delete i02_[ism-1];
140 for (
int i=0;
i<3; ++
i ) {
149 for (
int i=0;
i<2; ++
i ) {
160 for (
int i=0;
i<3;
i++) {
169 for (
int i=0;
i<2;
i++) {
180 #ifdef WITH_ECAL_COND_DB
188 std::map<EcalLogicID, MonOccupancyDat>
dataset;
199 const float n_min_tot = 1000.;
200 const float n_min_bin = 10.;
203 float mean01, mean02;
206 for (
int ix = 1; ix <= 50; ix++ ) {
207 for (
int iy = 1; iy <= 50; iy++ ) {
212 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
217 mean01 = mean02 = -1.;
220 bool update_channel =
false;
222 if (
i01_[ism-1] &&
i01_[ism-1]->GetEntries() >= n_min_tot ) {
223 num01 =
i01_[ism-1]->GetBinContent(
i01_[ism-1]->GetBin(ix, iy));
224 if ( num01 >= n_min_bin ) update_channel =
true;
227 if (
i02_[ism-1] &&
i02_[ism-1]->GetEntries() >= n_min_tot ) {
228 num02 =
i02_[ism-1]->GetBinEntries(
i02_[ism-1]->GetBin(ix, iy));
229 if ( num02 >= n_min_bin ) {
230 mean02 =
i02_[ism-1]->GetBinContent(ix, iy);
231 rms02 =
i02_[ism-1]->GetBinError(ix, iy);
235 if ( update_channel ) {
255 if ( ic == -1 )
continue;
274 }
catch (std::runtime_error &e) {
288 if (
ievt_ % 10 == 0 ) {
306 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE -" );
309 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE - projection eta" );
312 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE - projection phi" );
315 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE +" );
318 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE + projection eta" );
321 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE + projection phi" );
324 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE -" );
327 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE - projection eta" );
330 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE - projection phi" );
333 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE +" );
336 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE + projection eta" );
339 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE + projection phi" );
342 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE -" );
345 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE - projection eta" );
348 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE - projection phi" );
351 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE +" );
354 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE + projection eta" );
357 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE + projection phi" );
360 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE -" );
363 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE - projection eta" );
366 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE - projection phi" );
369 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE +" );
372 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE + projection eta" );
375 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE + projection phi" );
378 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE -" );
381 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE - projection eta" );
384 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE - projection phi" );
387 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE +" );
390 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE + projection eta" );
393 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE + projection phi" );
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
void setAvgEnergy(float energy)
static int iy0EE(const int ism)
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
Some "id" conversions.
void setEventsOverLowThreshold(int events)
static std::string sEE(const int ism)
virtual ~EEOccupancyClient()
Destructor.
EEOccupancyClient(const edm::ParameterSet &ps)
Constructor.
static int indexEE(const int ism, const int ix, const int iy)
static int iSM(const int ism, const EcalSubdetector subdet)
static int icEE(const int ism, const int ix, const int iy)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void beginRun(void)
BeginRun.
Ecal Monitor Utils for Client.
void cleanup(void)
Cleanup.
std::vector< int > superModules_
void setEventsOverHighThreshold(int events)
static int ix0EE(const int ism)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
static bool validEE(const int ism, const int ix, const int iy)
void analyze(void)
Analyze.
static EcalLogicID getEcalLogicID(const char *name, const int id1=EcalLogicID::NULLID, const int id2=EcalLogicID::NULLID, const int id3=EcalLogicID::NULLID)
int ism(int ieta, int iphi)
void beginJob(void)
BeginJob.
void setCurrentFolder(const std::string &fullpath)