39 std::cout <<
" *** Ecal Barrel 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 < 36;
i++) {
139 if (
debug_ )
std::cout <<
"EcalBarrelMonitorModule: beginJob" << std::endl;
158 if (
debug_ )
std::cout <<
"EcalBarrelMonitorModule: beginRun" << std::endl;
166 if (
debug_ )
std::cout <<
"EcalBarrelMonitorModule: 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 < 36;
i++) {
260 for (
int i = 0;
i < 36;
i++) {
267 for (
int i = 0;
i < 36;
i++) {
274 for (
int i = 0;
i < 36;
i++) {
280 for (
int i = 0;
i < 36;
i++) {
320 for (
int i = 0;
i < 2;
i++) {
337 for (
int i = 0;
i < 36;
i++) {
380 LogDebug(
"EcalBarrelMonitorModule") <<
"processing event " <<
ievt_;
390 if ( dcchs->size() == 0 ) {
422 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
427 LogDebug(
"EcalBarrelMonitorModule") <<
"event: " <<
ievt_ <<
" DCC headers collection size: " << nebc;
431 if ( evtType_ < 0 || evtType_ > 22 )
evtType_ = -1;
464 int nebd = digis->size();
465 LogDebug(
"EcalBarrelMonitorModule") <<
"event " <<
ievt_ <<
" digi collection size " << nebd;
467 int counter[36] = { 0 };
483 for (
int i = 0;
i < 36;
i++) {
501 int nebh = hits->size();
502 LogDebug(
"EcalBarrelMonitorModule") <<
"event " <<
ievt_ <<
" hits collection size " << nebh;
508 int counter[36] = { 0 };
515 int ie = (ic-1)/20 + 1;
516 int ip = (ic-1)%20 + 1;
522 float xie = ie - 0.5;
523 float xip = ip - 0.5;
525 float xval = hitItr->energy();
537 for (
int i = 0;
i < 36;
i++) {
556 int counter[36] = { 0 };
571 LogDebug(
"EcalBarrelMonitorModule") <<
"event " <<
ievt_ <<
" TP digi collection size " << nebtpd;
576 for (
int i = 0;
i < 36;
i++) {
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
MonitorElement * meStatus_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void cleanup(void)
Cleanup.
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
MonitorElement * meEvtType_
Some "id" conversions.
static std::string sEB(const unsigned ism)
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 * meRunType_
MonitorElement * meEBhits_[2]
MonitorElement * meEBdigis_[2]
void tag(MonitorElement *me, unsigned int myTag)
edm::InputTag EBDigiCollection_
void removeElement(const std::string &name)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meEBtpdigis_[2]
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")
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int ic() const
get ECAL/crystal number inside SM
virtual ~EcalBarrelMonitorModule()
Destructor.
EcalBarrelMonitorModule(const edm::ParameterSet &ps)
Constructor.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * meEBDCC_
edm::InputTag EcalRawDataCollection_
edm::InputTag EcalRecHitCollection_
MonitorElement * meEvent_[36]
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.
edm::InputTag EcalTrigPrimDigiCollection_
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 endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void setCurrentFolder(const std::string &fullpath)