Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-30 22:38:35

0001 
0002 // -*- C++ -*-
0003 //
0004 // Package:   EcalBxOrbitNumberGrapher
0005 // Class:     EcalBxOrbitNumberGrapher
0006 //
0007 /**\class EcalBxOrbitNumberGrapher EcalBxOrbitNumberGrapher.cc
0008 
0009  Description: <one line class summary>
0010 
0011  Implementation:
0012      <Notes on implementation>
0013 */
0014 //
0015 // Original Author:  Seth COOPER
0016 //         Created:  Th Nov 22 5:46:22 CEST 2007
0017 //
0018 //
0019 
0020 // system include files
0021 #include <memory>
0022 #include <vector>
0023 #include <map>
0024 #include <set>
0025 
0026 // user include files
0027 #include "FWCore/Framework/interface/Frameworkfwd.h"
0028 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0029 #include "FWCore/Framework/interface/Event.h"
0030 #include "FWCore/Framework/interface/MakerMacros.h"
0031 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0032 #include "FWCore/Framework/interface/ESHandle.h"
0033 #include "FWCore/Framework/interface/EventSetup.h"
0034 
0035 //#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0036 
0037 #include "DataFormats/EcalRawData/interface/EcalRawDataCollections.h"
0038 
0039 #include "TFile.h"
0040 #include "TH1F.h"
0041 
0042 //
0043 // class declaration
0044 //
0045 
0046 class EcalBxOrbitNumberGrapher : public edm::one::EDAnalyzer<> {
0047 public:
0048   explicit EcalBxOrbitNumberGrapher(const edm::ParameterSet&);
0049   ~EcalBxOrbitNumberGrapher() override;
0050 
0051 private:
0052   void beginJob() override;
0053   void analyze(const edm::Event&, const edm::EventSetup&) override;
0054   void endJob() override;
0055   void initHists(int);
0056 
0057   // ----------member data ---------------------------
0058 
0059   const edm::EDGetTokenT<EcalRawDataCollection> digiProducer_;
0060   int runNum_;
0061   std::string fileName_;
0062 
0063   TH1F* bxnumberPlot_;
0064   TH1F* orbitErrorPlot_;
0065   TH1F* orbitErrorBxDiffPlot_;
0066   TH1F* numberofOrbitDiffPlot_;
0067 
0068   TFile* file;
0069 };