22 #ifdef WITH_ECAL_COND_DB
98 if (
debug_ )
std::cout <<
"EEPedestalOnlineClient: beginJob" << std::endl;
107 if (
debug_ )
std::cout <<
"EEPedestalOnlineClient: beginRun" << std::endl;
145 name =
"EEPOT pedestal quality G12 " +
Numbers::sEE(ism);
169 for (
int ix = 1; ix <= 50; ix++ ) {
170 for (
int iy = 1; iy <= 50; iy++ ) {
177 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
202 if (
h03_[ism-1] )
delete h03_[ism-1];
231 #ifdef WITH_ECAL_COND_DB
239 std::map<EcalLogicID, MonPedestalsOnlineDat>
dataset;
255 for (
int ix = 1; ix <= 50; ix++ ) {
256 for (
int iy = 1; iy <= 50; iy++ ) {
261 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
294 if ( ic == -1 )
continue;
313 }
catch (std::runtime_error &
e) {
327 if (
ievt_ % 10 == 0 ) {
350 for (
int ix = 1; ix <= 50; ix++ ) {
351 for (
int iy = 1; iy <= 50; iy++ ) {
358 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
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)
void cleanup(void)
Cleanup.
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< int > superModules_
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
static unsigned icEE(const unsigned ism, const unsigned ix, const unsigned iy)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
Some "id" conversions.
MonitorElement * mer03_[18]
static bool getBinQuality(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin quality is good or masked.
void beginJob(void)
BeginJob.
static const int PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR
MonitorElement * meg03_[18]
void beginRun(void)
BeginRun.
static int ix0EE(const unsigned ism)
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
static int iy0EE(const unsigned ism)
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
float RMSThresholdInternal_
MonitorElement * mep03_[18]
void setTaskStatus(bool status)
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")
void setADCMeanG12(float mean)
Ecal Monitor Utils for Client.
static bool getBinStatistics(TH1 *histo, const int ix, const int iy, float &num, float &mean, float &rms, float minEntries=1.)
Returns true if the bin contains good statistical data.
void analyze(void)
Analyze.
static const int PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR
EEPedestalOnlineClient(const edm::ParameterSet &ps)
Constructor.
void setADCRMSG12(float rms)
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)
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)
static void printBadChannels(const MonitorElement *me, TH1 *hi, bool positive_only=false)
Print the bad channels.
void setCurrentFolder(const std::string &fullpath)
virtual ~EEPedestalOnlineClient()
Destructor.