39 std::cout <<
" *** Ecal Endcap Generic Monitor ***" << std::endl;
54 if ( runNumber_ != 0 ) fixedRunNumber_ =
true;
56 if ( fixedRunNumber_ ) {
58 std::cout <<
" fixed Run Number = " << runNumber_ << std::endl;
83 std::cout <<
" debug switch is ON" << std::endl;
87 std::cout <<
" debug switch is OFF" << std::endl;
100 if ( enableCleanup_ ) {
102 std::cout <<
" enableCleanup switch is ON" << std::endl;
106 std::cout <<
" enableCleanup switch is OFF" << std::endl;
121 for (
int i = 0;
i < 2;
i++) {
127 for (
int i = 0;
i < 18;
i++) {
139 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: beginJob" << std::endl;
158 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: beginRun" << std::endl;
166 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: endRun" << std::endl;
182 for (
int i = 0;
i < 2;
i++) {
191 for (
int i = 0;
i < 18;
i++) {
253 for (
int i = 0;
i < 18;
i++) {
260 for (
int i = 0;
i < 18;
i++) {
267 for (
int i = 0;
i < 18;
i++) {
274 for (
int i = 0;
i < 18;
i++) {
280 for (
int i = 0;
i < 18;
i++) {
321 for (
int i = 0;
i < 2;
i++) {
338 for (
int i = 0;
i < 18;
i++) {
381 LogDebug(
"EcalEndcapMonitorModule") <<
"processing event " <<
ievt_;
391 if ( dcchs->size() == 0 ) {
423 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
428 LogDebug(
"EcalEndcapMonitorModule") <<
"event: " <<
ievt_ <<
" DCC headers collection size: " << neec;
432 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
465 int need = digis->size();
466 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" digi collection size " << need;
468 int counter[18] = { 0 };
484 for (
int i = 0;
i < 18;
i++) {
502 int neeh = hits->size();
503 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" hits collection size " << neeh;
509 int counter[18] = { 0 };
522 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
524 float xix = ix - 0.5;
525 float xiy = iy - 0.5;
527 float xval = hitItr->energy();
539 for (
int i = 0;
i < 18;
i++) {
558 int counter[18] = { 0 };
573 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" TP digi collection size " << neetpd;
578 for (
int i = 0;
i < 18;
i++) {
void cleanup(void)
Cleanup.
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
static std::string sEE(const unsigned ism)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
MonitorElement * meEEhits_[2]
Some "id" conversions.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * meEEDCC_
std::vector< T >::const_iterator const_iterator
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * meEEtpdigis_[2]
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
edm::InputTag EEDigiCollection_
void tag(MonitorElement *me, unsigned int myTag)
MonitorElement * meEEdigis_[2]
void removeElement(const std::string &name)
MonitorElement * meStatus_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
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")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
EcalEndcapMonitorModule(const edm::ParameterSet &ps)
Constructor.
edm::InputTag EcalRecHitCollection_
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
edm::InputTag EcalTrigPrimDigiCollection_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
edm::InputTag EcalRawDataCollection_
MonitorElement * meEvtType_
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
static EcalSubdetector subDet(const EBDetId &id)
MonitorElement * bookInt(const char *name)
Book int.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * meRunType_
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)
virtual ~EcalEndcapMonitorModule()
Destructor.
MonitorElement * meEvent_[18]