24 #ifdef WITH_ECAL_COND_DB
147 name =
"EBBCT quality";
152 for (
int ie = 1; ie <= 85; ie++ ) {
153 for (
int ip = 1; ip <= 20; ip++ ) {
161 name =
"EBBCT quality read crystal errors";
167 name =
"EBBCT quality entries or read crystals errors";
237 #ifdef WITH_ECAL_COND_DB
245 std::map<EcalLogicID, MonOccupancyDat>
dataset;
256 const float n_min_tot = 1000.;
261 for (
int ie = 1; ie <= 85; ie++ ) {
262 for (
int ip = 1; ip <= 20; ip++ ) {
267 bool update_channel =
false;
271 update_channel =
true;
276 update_channel =
true;
281 int ic = (ip-1) + 20*(ie-1) + 1;
284 if( step > 0 && step < 86) {
289 if ( update_channel ) {
295 std::cout <<
"CryOnBeam (" << ie <<
"," << ip <<
") " << num01 << std::endl;
296 std::cout <<
"MaxEneCry (" << ie <<
"," << ip <<
") " << num02 << std::endl;
297 std::cout <<
"E1 (" << ie <<
"," << ip <<
") " << mean01 << std::endl;
325 }
catch (std::runtime_error &e) {
339 if (
ievt_ % 10 == 0 ) {
393 std::stringstream ss;
396 ss <<
prefixME_ <<
"/EBBeamCaloTask/EBBCT pulse profile in G12 cry " << std::setfill(
'0') << std::setw(1) << ind+1;
401 ss <<
prefixME_ <<
"/EBBeamCaloTask/EBBCT found gains cry " << std::setfill(
'0') << std::setw(1) << ind+1;
408 for(
int cry=1 ; cry<1701 ; cry ++) {
409 int step = (int)
hBcryDone_->GetBinContent(cry);
412 float E3x3RMS = -1, E3x3 =-1, E1=-1;
421 bool RMS3x3 = ( E3x3RMS < RMSEne3x3_ && E3x3RMS >= 0 );
424 int ieta = ( cry - 1)/20 + 1 ;
425 int iphi = ( cry - 1)%20 + 1 ;
427 if(ieta >0 && iphi >0 ) {
436 bool readCryOk =
true;
439 if ( step_bin > 0 && step_bin < hBReadCryErrors_->GetNbinsX() ) {
441 else {readCryOk =
false;}
464 for (
int b_eta =1; b_eta<86; b_eta++) {
465 for (
int b_phi =1; b_phi<21; b_phi++) {
467 if(bc > found) { found =bc; ieta = b_eta; iphi= b_phi;}
470 if(ieta >0 && iphi >0 ) {
EBBeamCaloClient(const edm::ParameterSet &ps)
Constructor.
Cache logicID vector from database.
MonitorElement * meEBBCaloRedGreenReadCry_
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
std::vector< int > superModules_
void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string sEB(const int ism)
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)
MonitorElement * meEBBCaloRedGreen_
virtual ~EBBeamCaloClient()
Destructor.
static int icEB(const int ism, const int ix, const int iy)
TProfile * hBpulse_[cryInArray_]
void beginJob(void)
BeginJob.
static int iSM(const int ism, const EcalSubdetector subdet)
void removeElement(const std::string &name)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::vector< int > checkedSteps_
void beginRun(void)
BeginRun.
Ecal Monitor Utils for Client.
TProfile * pBCriInBeamEvents_
void analyze(void)
Analyze.
double getBinContent(int binx) const
get content of bin (1-D)
void setEventsOverHighThreshold(int events)
static const int cryInArray_
void cleanup(void)
Cleanup.
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
TH1F * hBGains_[cryInArray_]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
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 setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meEBBCaloRedGreenSteps_
void setCurrentFolder(const std::string &fullpath)