22 #ifdef WITH_ECAL_COND_DB
96 if (
debug_ )
std::cout <<
"EEPedestalOnlineClient: beginJob" << std::endl;
105 if (
debug_ )
std::cout <<
"EEPedestalOnlineClient: beginRun" << std::endl;
140 name =
"EEPOT pedestal quality G12 " +
Numbers::sEE(ism);
164 for (
int ix = 1; ix <= 50; ix++ ) {
165 for (
int iy = 1; iy <= 50; iy++ ) {
172 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
197 if (
h03_[ism-1] )
delete h03_[ism-1];
223 #ifdef WITH_ECAL_COND_DB
231 std::map<EcalLogicID, MonPedestalsOnlineDat>
dataset;
247 for (
int ix = 1; ix <= 50; ix++ ) {
248 for (
int iy = 1; iy <= 50; iy++ ) {
253 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
286 if ( ic == -1 )
continue;
305 }
catch (std::runtime_error &e) {
319 if (
ievt_ % 10 == 0 ) {
340 for (
int ix = 1; ix <= 50; ix++ ) {
341 for (
int iy = 1; iy <= 50; iy++ ) {
348 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
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)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
static int iy0EE(const int ism)
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 std::string sEE(const int ism)
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 void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
static int indexEE(const int ism, const int ix, const int iy)
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
float RMSThresholdInternal_
static int iSM(const int ism, const EcalSubdetector subdet)
MonitorElement * mep03_[18]
static int icEE(const int ism, const int ix, const int iy)
void setTaskStatus(bool status)
void removeElement(const std::string &name)
std::string getName(Reflex::Type &cc)
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 int ix0EE(const int ism)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
static bool validEE(const int ism, const int ix, const int iy)
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.