EcalBxOrbitNumberGrapher

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

// -*- C++ -*-
//
// Package:   EcalBxOrbitNumberGrapher
// Class:     EcalBxOrbitNumberGrapher
//
/**\class EcalBxOrbitNumberGrapher EcalBxOrbitNumberGrapher.cc

 Description: <one line class summary>

 Implementation:
     <Notes on implementation>
*/
//
// Original Author:  Seth COOPER
//         Created:  Th Nov 22 5:46:22 CEST 2007
//
//

// system include files
#include <memory>
#include <vector>
#include <map>
#include <set>

// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"

//#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"

#include "DataFormats/EcalRawData/interface/EcalRawDataCollections.h"

#include "TFile.h"
#include "TH1F.h"

//
// class declaration
//

class EcalBxOrbitNumberGrapher : public edm::one::EDAnalyzer<> {
public:
  explicit EcalBxOrbitNumberGrapher(const edm::ParameterSet&);
  ~EcalBxOrbitNumberGrapher() override;

private:
  void beginJob() override;
  void analyze(const edm::Event&, const edm::EventSetup&) override;
  void endJob() override;
  void initHists(int);

  // ----------member data ---------------------------

  const edm::EDGetTokenT<EcalRawDataCollection> digiProducer_;
  int runNum_;
  std::string fileName_;

  TH1F* bxnumberPlot_;
  TH1F* orbitErrorPlot_;
  TH1F* orbitErrorBxDiffPlot_;
  TH1F* numberofOrbitDiffPlot_;

  TFile* file;
};