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
70
71
|
// -*- C++ -*-
//
// Package: SiStripPlotGain
// Class: SiStripPlotGain
//
/**\class SiStripPlotGain SiStripPlotGain.cc
DQM/SiStripMonitorSummary/plugins/SiStripPlotGain.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: Domenico GIORDANO
// Created: Mon Aug 10 10:42:04 CEST 2009
//
//
// system include files
#include <memory>
// user include files
#include "CalibTracker/Records/interface/SiStripDependentRecords.h"
#include "CommonTools/TrackerMap/interface/TrackerMap.h"
#include "CondFormats/SiStripObjects/interface/SiStripApvGain.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESWatcher.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
// ROOT includes
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
//
// class decleration
//
class TrackerTopology;
class SiStripPlotGain : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
public:
explicit SiStripPlotGain(const edm::ParameterSet &);
~SiStripPlotGain() override = default;
private:
void beginRun(const edm::Run &run, const edm::EventSetup &es) override;
void analyze(const edm::Event &, const edm::EventSetup &) override {}
void endRun(const edm::Run &run, const edm::EventSetup &es) override {}
void endJob() override;
void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &);
void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector<TH1F *> &histos);
TH1F *getHisto(const long unsigned int &index);
// ----------member data ---------------------------
edm::ESWatcher<SiStripApvGainRcd> gainWatcher_;
edm::ESGetToken<SiStripApvGain, SiStripApvGainRcd> gainToken_;
edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> tTopoToken_;
TFile *file;
std::vector<TH1F *> vTH1;
TrackerMap *tkmap;
};
|