21 #ifdef WITH_ECAL_COND_DB
92 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginJob" << std::endl;
101 if (
debug_ )
std::cout <<
"EBPedestalOnlineClient: beginRun" << std::endl;
136 sprintf(histo,
"EBPOT pedestal quality G12 %s",
Numbers::sEB(ism).c_str());
142 sprintf(histo,
"EBPOT pedestal mean G12 %s",
Numbers::sEB(ism).c_str());
147 sprintf(histo,
"EBPOT pedestal rms G12 %s",
Numbers::sEB(ism).c_str());
159 for (
int ie = 1; ie <= 85; ie++ ) {
160 for (
int ip = 1; ip <= 20; ip++ ) {
183 if (
h03_[ism-1] )
delete h03_[ism-1];
209 #ifdef WITH_ECAL_COND_DB
217 std::map<EcalLogicID, MonPedestalsOnlineDat>
dataset;
233 for (
int ie = 1; ie <= 85; ie++ ) {
234 for (
int ip = 1; ip <= 20; ip++ ) {
246 std::cout <<
"G12 (" << ie <<
"," << ip <<
") " << num03 <<
" " << mean03 <<
" " << rms03 << std::endl;
282 }
catch (std::runtime_error &
e) {
296 if (
ievt_ % 10 == 0 ) {
312 sprintf(histo, (
prefixME_ +
"/EBPedestalOnlineTask/Gain12/EBPOT pedestal %s G12").c_str(),
Numbers::sEB(ism).c_str());
314 h03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h03_[ism-1] );
319 for (
int ie = 1; ie <= 85; ie++ ) {
320 for (
int ip = 1; ip <= 20; ip++ ) {
static void printBadChannels(const MonitorElement *me, const T *hi, bool positive_only=false)
Print the bad channels.
Cache logicID vector from database.
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
static std::string sEB(const int ism)
EBPedestalOnlineClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * mer03_[36]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Some "id" conversions.
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
static const int PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR
static int icEB(const int ism, const int ix, const int iy)
std::vector< int > superModules_
void beginRun(void)
BeginRun.
static int indexEB(const int ism, const int ie, const int ip)
void cleanup(void)
Cleanup.
static int iSM(const int ism, const EcalSubdetector subdet)
virtual ~EBPedestalOnlineClient()
Destructor.
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)
void beginJob(void)
BeginJob.
Ecal Monitor Utils for Client.
static const int PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR
MonitorElement * meg03_[36]
MonitorElement * mep03_[36]
void analyze(void)
Analyze.
void setADCRMSG12(float rms)
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
static bool getBinQuality(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin quality is good or masked.
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 bool getBinStatistics(const T *histo, const int ix, const int iy, float &num, float &mean, float &rms)
Returns true if the bin contains good statistical data.
void setCurrentFolder(const std::string &fullpath)