4 : gainToken_{esConsumes<edm::Transition::BeginRun>()}, tTopoToken_{esConsumes<edm::Transition::BeginRun>()} {
6 file =
new TFile(
"correlTest.root",
"RECREATE");
21 std::vector<TH1F *>
histos;
31 for (; iter != iterE; ++iter) {
36 size_t apv = 0, apvE = (
range.second -
range.first);
37 for (; apv < apvE; apv += 2) {
40 for (
size_t i = 0;
i <
histos.size(); ++
i)
65 int index = 100 + subdet * 100 + component;
86 for (
size_t i = 0;
i <
vTH1.size();
i++)
87 if (
vTH1[
i] !=
nullptr)
93 tkmap->
save(
false, 0, 0,
"testTkMap.png");
unsigned int tobLayer(const DetId &id) const
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Registry::const_iterator RegistryConstIterator
unsigned int tidSide(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &)
unsigned int tecSide(const DetId &id) const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
std::pair< ContainerIterator, ContainerIterator > Range
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Log< level::Info, false > LogInfo
TH1F * getHisto(const long unsigned int &index)
edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd > gainToken_
bool check(const edm::EventSetup &iSetup)
SiStripPlotGain(const edm::ParameterSet &)
std::vector< TH1F * > vTH1
unsigned int tibLayer(const DetId &id) const
edm::ESWatcher< SiStripApvGainRcd > gainWatcher_
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
void fill(int layer, int ring, int nmod, float x)
void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector< TH1F *> &histos)