22 #ifdef WITH_ECAL_COND_DB
61 for (
int i=0;
i<3;
i++) {
67 for (
int i=0;
i<2;
i++) {
130 if (
i01_[ism-1] )
delete i01_[ism-1];
131 if (
i02_[ism-1] )
delete i02_[ism-1];
134 for (
int i=0;
i<3; ++
i ) {
140 for (
int i=0;
i<2; ++
i ) {
148 for (
int i=0;
i<3; ++
i ) {
154 for (
int i=0;
i<2; ++
i ) {
162 #ifdef WITH_ECAL_COND_DB
170 std::map<EcalLogicID, MonOccupancyDat>
dataset;
181 const float n_min_tot = 1000.;
182 const float n_min_bin = 10.;
185 float mean01, mean02;
188 for (
int ie = 1; ie <= 85; ie++ ) {
189 for (
int ip = 1; ip <= 20; ip++ ) {
192 mean01 = mean02 = -1.;
195 bool update_channel =
false;
197 if (
i01_[ism-1] &&
i01_[ism-1]->GetEntries() >= n_min_tot ) {
198 num01 =
i01_[ism-1]->GetBinContent(ie, ip);
199 if ( num01 >= n_min_bin ) update_channel =
true;
202 if (
i02_[ism-1] &&
i02_[ism-1]->GetEntries() >= n_min_tot ) {
203 num02 =
i02_[ism-1]->GetBinEntries(
i02_[ism-1]->GetBin(ie, ip));
204 if ( num02 >= n_min_bin ) {
205 mean02 =
i02_[ism-1]->GetBinContent(ie, ip);
206 rms02 =
i02_[ism-1]->GetBinError(ie, ip);
210 if ( update_channel ) {
216 std::cout <<
"Digi (" << ie <<
"," << ip <<
") " << num01 <<
" " << mean01 <<
" " << rms01 << std::endl;
217 std::cout <<
"RecHitThr (" << ie <<
"," << ip <<
") " << num02 <<
" " << mean02 <<
" " << rms02 << std::endl;
247 }
catch (std::runtime_error &e) {
261 if (
ievt_ % 10 == 0 ) {
275 i02_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
i02_[ism-1] );
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEB(const int ism)
std::vector< int > superModules_
virtual ~EBOccupancyClient()
Destructor.
EBOccupancyClient(const edm::ParameterSet &ps)
Constructor.
void setAvgEnergy(float energy)
void beginRun(void)
BeginRun.
void cleanup(void)
Cleanup.
Some "id" conversions.
void setEventsOverLowThreshold(int events)
void beginJob(void)
BeginJob.
static int icEB(const int ism, const int ix, const int iy)
static int indexEB(const int ism, const int ie, const int ip)
static int iSM(const int ism, const EcalSubdetector subdet)
void analyze(void)
Analyze.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
Ecal Monitor Utils for Client.
void setEventsOverHighThreshold(int events)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
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 setCurrentFolder(const std::string &fullpath)