34 std::cout <<
" *** Ecal Endcap Generic Monitor ***" << std::endl;
51 if ( fixedRunNumber_ ) {
78 std::cout <<
" debug switch is ON" << std::endl;
82 std::cout <<
" debug switch is OFF" << std::endl;
95 if ( enableCleanup_ ) {
97 std::cout <<
" enableCleanup switch is ON" << std::endl;
101 std::cout <<
" enableCleanup switch is OFF" << std::endl;
116 for (
int i = 0;
i < 2;
i++) {
122 for (
int i = 0;
i < 18;
i++) {
134 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: beginJob" << std::endl;
153 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: beginRun" << std::endl;
161 if (
debug_ )
std::cout <<
"EcalEndcapMonitorModule: endRun" << std::endl;
177 for (
int i = 0;
i < 2;
i++) {
186 for (
int i = 0;
i < 18;
i++) {
248 for (
int i = 0;
i < 18;
i++) {
255 for (
int i = 0;
i < 18;
i++) {
262 for (
int i = 0;
i < 18;
i++) {
269 for (
int i = 0;
i < 18;
i++) {
275 for (
int i = 0;
i < 18;
i++) {
316 for (
int i = 0;
i < 2;
i++) {
333 for (
int i = 0;
i < 18;
i++) {
376 LogDebug(
"EcalEndcapMonitorModule") <<
"processing event " <<
ievt_;
386 if ( dcchs->size() == 0 ) {
387 LogDebug(
"EcalEndcapMonitorModule") <<
"EcalRawDataCollection is empty";
418 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
423 LogDebug(
"EcalEndcapMonitorModule") <<
"event: " <<
ievt_ <<
" DCC headers collection size: " << neec;
427 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
430 edm::LogWarning(
"EcalEndcapMonitorModule") <<
"EcalRawDataCollection not available";
460 int need = digis->size();
461 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" digi collection size " << need;
479 for (
int i = 0;
i < 18;
i++) {
489 edm::LogWarning(
"EcalEndcapMonitorModule") <<
"EEDigiCollection not available";
497 int neeh = hits->size();
498 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" hits collection size " << neeh;
517 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
519 float xix = ix - 0.5;
520 float xiy = iy - 0.5;
522 float xval = hitItr->energy();
534 for (
int i = 0;
i < 18;
i++) {
544 edm::LogWarning(
"EcalEndcapMonitorModule") <<
"EcalRecHitCollection not available";
568 LogDebug(
"EcalEndcapMonitorModule") <<
"event " <<
ievt_ <<
" TP digi collection size " << neetpd;
573 for (
int i = 0;
i < 18;
i++) {
583 edm::LogWarning(
"EcalEndcapMonitorModule") <<
"EcalTrigPrimDigiCollection not available";
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]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
edm::EDGetTokenT< EcalTrigPrimDigiCollection > EcalTrigPrimDigiCollection_
MonitorElement * meEEDCC_
std::vector< EcalDCCHeaderBlock >::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)
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")
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitCollection_
EcalEndcapMonitorModule(const edm::ParameterSet &ps)
Constructor.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * meEvtType_
static std::atomic< unsigned int > counter
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_
edm::EDGetTokenT< EEDigiCollection > EEDigiCollection_
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]