24 #ifdef WITH_ECAL_COND_DB
147 name =
"EEBCT quality";
152 for (
int ie = 1; ie <= 85; ie++ ) {
153 for (
int ip = 1; ip <= 20; ip++ ) {
161 name =
"EEBCT quality read crystal errors";
167 name =
"EEBCT 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;
397 ss <<
prefixME_ <<
"/EEBeamCaloTask/EEBCT pulse profile in G12 cry " << std::setfill(
'0') << std::setw(1) << (ind+1);
402 ss <<
prefixME_ <<
"/EEBeamCaloTask/EEBCT found gains cry " << std::setfill(
'0') << std::setw(1) << (ind+1);
409 for(
int cry=1 ; cry<1701 ; cry ++) {
410 int step = (int)
hBcryDone_->GetBinContent(cry);
413 float E3x3RMS = -1, E3x3 =-1, E1=-1;
419 bool RMS3x3 = ( E3x3RMS < RMSEne3x3_ && E3x3RMS >= 0 );
422 int ieta = ( cry - 1)/20 + 1 ;
423 int iphi = ( cry - 1)%20 + 1 ;
425 if(ieta >0 && iphi >0 ) {
434 bool readCryOk =
true;
437 if ( step_bin > 0 && step_bin < hBReadCryErrors_->GetNbinsX() ) {
439 else {readCryOk =
false;}
462 for (
int b_eta =1; b_eta<86; b_eta++) {
463 for (
int b_phi =1; b_phi<21; b_phi++) {
465 if(bc > found) { found =bc; ieta = b_eta; iphi= b_phi;}
468 if(ieta >0 && iphi >0 ) {
void beginRun(void)
BeginRun.
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
TH1F * hBGains_[cryInArray_]
MonitorElement * meEEBCaloRedGreenSteps_
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< int > superModules_
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)
static std::string sEE(const int ism)
void cleanup(void)
Cleanup.
TProfile * hBpulse_[cryInArray_]
static int icEB(const int ism, const int ix, const int iy)
virtual ~EEBeamCaloClient()
Destructor.
EEBeamCaloClient(const edm::ParameterSet &ps)
Constructor.
void analyze(void)
Analyze.
void removeElement(const std::string &name)
MonitorElement * meEEBCaloRedGreen_
TProfile * pBCriInBeamEvents_
void beginJob(void)
BeginJob.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
Ecal Monitor Utils for Client.
static const int cryInArray_
std::vector< int > checkedSteps_
double getBinContent(int binx) const
get content of bin (1-D)
void setEventsOverHighThreshold(int events)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
MonitorElement * meEEBCaloRedGreenReadCry_
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)
void setCurrentFolder(const std::string &fullpath)