77 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginJob" << std::endl;
86 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginRun" << std::endl;
121 name =
"EETTT Trigger Primitives Timing " +
Numbers::sEE(ism);
157 if (
l01_[ism-1] )
delete l01_[ism-1];
158 if (
o01_[ism-1] )
delete o01_[ism-1];
184 #ifdef WITH_ECAL_COND_DB
210 if (
ievt_ % 10 == 0 ) {
235 for (
int ix = 1; ix <= 50; ix++) {
236 for (
int iy = 1; iy <= 50; iy++) {
243 for (
int j=0;
j<6;
j++) {
244 double sampleEntries =
o01_[ism-1]->GetBinContent(ix, iy,
j+1);
245 if(sampleEntries > max) {
249 total += sampleEntries;
258 double fraction = (total > 0) ? 1.0 - max/total : 0.;
MonitorElement * meo01_[18]
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
void beginJob(void)
BeginJob.
void setBinContent(int binx, double content)
set content of bin (1-D)
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
MonitorElement * me_o01_[18]
Some "id" conversions.
static int ix0EE(const unsigned ism)
void beginRun(void)
BeginRun.
virtual ~EETriggerTowerClient()
Destructor.
static int iy0EE(const unsigned ism)
std::vector< int > superModules_
const T & max(const T &a, const T &b)
void removeElement(const std::string &name)
EETriggerTowerClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * me_o02_[18]
Ecal Monitor Utils for Client.
MonitorElement * mel02_[18]
void analyze(void)
Analyze.
MonitorElement * mel01_[18]
void cleanup(void)
Cleanup.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
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)