File indexing completed on 2024-04-06 12:00:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <memory>
0022 #include <vector>
0023 #include <map>
0024 #include <set>
0025
0026
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
0036
0037 #include "DataFormats/EcalRawData/interface/EcalRawDataCollections.h"
0038
0039 #include "TFile.h"
0040 #include "TH1F.h"
0041
0042
0043
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
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 };