20 #ifdef WITH_ECAL_COND_DB
59 for (
int i=0;
i<3;
i++) {
68 for (
int i=0;
i<2;
i++) {
134 if (
i01_[ism-1] )
delete i01_[ism-1];
135 if (
i02_[ism-1] )
delete i02_[ism-1];
138 for (
int i=0;
i<3; ++
i ) {
147 for (
int i=0;
i<2; ++
i ) {
158 for (
int i=0;
i<3;
i++) {
167 for (
int i=0;
i<2;
i++) {
178 #ifdef WITH_ECAL_COND_DB
186 std::map<EcalLogicID, MonOccupancyDat>
dataset;
197 const float n_min_tot = 1000.;
198 const float n_min_bin = 10.;
201 float mean01, mean02;
204 for (
int ix = 1; ix <= 50; ix++ ) {
205 for (
int iy = 1; iy <= 50; iy++ ) {
210 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
215 mean01 = mean02 = -1.;
218 bool update_channel =
false;
220 if (
i01_[ism-1] &&
i01_[ism-1]->GetEntries() >= n_min_tot ) {
221 num01 =
i01_[ism-1]->GetBinContent(
i01_[ism-1]->GetBin(ix, iy));
222 if ( num01 >= n_min_bin ) update_channel =
true;
225 if (
i02_[ism-1] &&
i02_[ism-1]->GetEntries() >= n_min_tot ) {
226 num02 =
i02_[ism-1]->GetBinEntries(
i02_[ism-1]->GetBin(ix, iy));
227 if ( num02 >= n_min_bin ) {
228 mean02 =
i02_[ism-1]->GetBinContent(ix, iy);
229 rms02 =
i02_[ism-1]->GetBinError(ix, iy);
233 if ( update_channel ) {
253 if ( ic == -1 )
continue;
272 }
catch (std::runtime_error &
e) {
286 if (
ievt_ % 10 == 0 ) {
304 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE -" );
307 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE - projection eta" );
310 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE - projection phi" );
313 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE +" );
316 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE + projection eta" );
319 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT digi occupancy EE + projection phi" );
322 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE -" );
325 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE - projection eta" );
328 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE - projection phi" );
331 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE +" );
334 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE + projection eta" );
337 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit occupancy EE + projection phi" );
340 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE -" );
343 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE - projection eta" );
346 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE - projection phi" );
349 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE +" );
352 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE + projection eta" );
355 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi occupancy EE + projection phi" );
358 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE -" );
361 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE - projection eta" );
364 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE - projection phi" );
367 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE +" );
370 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE + projection eta" );
373 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT rec hit thr occupancy EE + projection phi" );
376 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE -" );
379 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE - projection eta" );
382 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE - projection phi" );
385 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE +" );
388 me =
dqmStore_->
get(
"/EEOccupancyTask/EEOT TP digi thr occupancy EE + projection eta" );
391 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
static std::string sEE(const unsigned ism)
static bool validEE(const unsigned ism, const unsigned ix, const unsigned iy)
static unsigned icEE(const unsigned ism, const unsigned ix, const unsigned iy)
void setAvgEnergy(float energy)
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)
virtual ~EEOccupancyClient()
Destructor.
EEOccupancyClient(const edm::ParameterSet &ps)
Constructor.
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
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 unsigned indexEE(const unsigned ism, const unsigned ix, const unsigned iy)
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
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)