79 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginJob" << std::endl;
88 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginRun" << std::endl;
123 name =
"EETTT Trigger Primitives Timing " +
Numbers::sEE(ism);
159 if (
l01_[ism-1] )
delete l01_[ism-1];
160 if (
o01_[ism-1] )
delete o01_[ism-1];
186 #ifdef WITH_ECAL_COND_DB
212 if (
ievt_ % 10 == 0 ) {
237 for (
int ix = 1; ix <= 50; ix++) {
238 for (
int iy = 1; iy <= 50; iy++) {
245 for (
int j=0;
j<6;
j++) {
246 double sampleEntries =
o01_[ism-1]->GetBinContent(ix, iy,
j+1);
247 if(sampleEntries > max) {
251 total += sampleEntries;
260 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)