CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQMServices/Components/src/DQMDaqInfo.h

Go to the documentation of this file.
00001 #ifndef DQMSERVICES_COMPONENTS_DQMDaqInfo_H
00002 # define DQMSERVICES_COMPONENTS_DQMDaqInfo_H
00003 // -*- C++ -*-
00004 //
00005 // Package:    DQMDaqInfo
00006 // Class:      DQMDaqInfo
00007 // 
00015 //
00016 // Original Author:  Ilaria SEGONI
00017 //         Created:  Thu Sep 25 11:17:43 CEST 2008
00018 // $Id: DQMDaqInfo.h,v 1.8 2009/12/15 08:59:49 dellaric Exp $
00019 //
00020 //
00021 
00022 // system include files
00023 #include <memory>
00024 #include <iostream>
00025 #include <fstream>
00026 
00027 // user include files
00028 #include "FWCore/Framework/interface/Frameworkfwd.h"
00029 #include "FWCore/Framework/interface/LuminosityBlock.h"
00030 #include "FWCore/Framework/interface/EDAnalyzer.h"
00031 #include "FWCore/Framework/interface/Event.h"
00032 #include "FWCore/Framework/interface/MakerMacros.h"
00033 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00034 #include "FWCore/Framework/interface/ESHandle.h"
00035 #include "FWCore/Framework/interface/EventSetup.h"
00036 
00037 //Run Info
00038 #include "CondFormats/DataRecord/interface/RunSummaryRcd.h"
00039 #include "CondFormats/RunInfo/interface/RunSummary.h"
00040 #include "CondFormats/RunInfo/interface/RunInfo.h"
00041 
00042 //DQM
00043 #include "DQMServices/Core/interface/DQMStore.h"
00044 #include "FWCore/ServiceRegistry/interface/Service.h"
00045 #include "DQMServices/Core/interface/MonitorElement.h"
00046 
00047 
00048 
00049 class DQMDaqInfo : public edm::EDAnalyzer {
00050 public:
00051   explicit DQMDaqInfo(const edm::ParameterSet&);
00052   ~DQMDaqInfo();
00053   
00054 
00055 private:
00056   virtual void beginJob() ;
00057   virtual void beginLuminosityBlock(const edm::LuminosityBlock& , const  edm::EventSetup&);
00058   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00059   virtual void endLuminosityBlock(const edm::LuminosityBlock& , const  edm::EventSetup&);
00060   virtual void endJob() ;
00061   
00062   DQMStore *dbe_;  
00063 
00064   enum subDetList { Pixel, SiStrip, EcalBarrel, EcalEndcap, Hcal, DT, CSC, RPC, L1T };  
00065   
00066   MonitorElement*  DaqFraction[9];
00067 
00068   std::pair<int,int> PixelRange;
00069   std::pair<int,int> TrackerRange;
00070   std::pair<int,int> CSCRange;
00071   std::pair<int,int> RPCRange;
00072   std::pair<int,int> DTRange;
00073   std::pair<int,int> HcalRange;  
00074   std::pair<int,int> ECALBarrRange;
00075   std::pair<int,int> ECALEndcapRangeLow;
00076   std::pair<int,int> ECALEndcapRangeHigh;
00077   std::pair<int,int> L1TRange;
00078   
00079   float  NumberOfFeds[9];
00080  
00081 };
00082 
00083 #endif