78 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginJob" << std::endl;
87 if (
debug_ )
std::cout <<
"EETriggerTowerClient: beginRun" << std::endl;
122 sprintf(histo,
"EETTT Trigger Primitives Timing %s",
Numbers::sEE(ism).c_str());
129 sprintf(histo,
"EETTT Non Single Timing %s",
Numbers::sEE(ism).c_str());
158 if (
l01_[ism-1] )
delete l01_[ism-1];
159 if (
o01_[ism-1] )
delete o01_[ism-1];
185 #ifdef WITH_ECAL_COND_DB
211 if (
ievt_ % 10 == 0 ) {
223 sprintf(histo, (
prefixME_ +
"/EETriggerTowerTask/EETTT EmulError %s").c_str(),
Numbers::sEE(ism).c_str());
228 sprintf(histo, (
prefixME_ +
"/EETriggerTowerTask/EETTT EmulFineGrainVetoError %s").c_str(),
Numbers::sEE(ism).c_str());
233 sprintf(histo, (
prefixME_ +
"/EETriggerTowerTask/EETTT EmulMatch %s").c_str(),
Numbers::sEE(ism).c_str());
241 for (
int ix = 1; ix <= 50; ix++) {
242 for (
int iy = 1; iy <= 50; iy++) {
249 for (
int j=0;
j<6;
j++) {
250 double sampleEntries =
o01_[ism-1]->GetBinContent(ix, iy,
j+1);
251 if(sampleEntries > max) {
255 total += sampleEntries;
264 double fraction = (total > 0) ? 1.0 - max/total : 0.;
static void printBadChannels(const MonitorElement *me, const T *hi, bool positive_only=false)
Print the bad channels.
MonitorElement * meo01_[18]
T getUntrackedParameter(std::string const &, T const &) const
void beginJob(void)
BeginJob.
void setBinContent(int binx, double content)
set content of bin (1-D)
static int iy0EE(const int ism)
MonitorElement * me_o01_[18]
Some "id" conversions.
static std::string sEE(const int ism)
void beginRun(void)
BeginRun.
virtual ~EETriggerTowerClient()
Destructor.
std::vector< int > superModules_
const T & max(const T &a, const T &b)
void removeElement(const std::string &name)
std::string getName(Reflex::Type &cc)
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.
static int ix0EE(const int ism)
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)
void setCurrentFolder(const std::string &fullpath)