Go to the documentation of this file.
9 file =
new TFile(
"correlTest.root",
"RECREATE");
36 std::vector<TH1F *>
histos;
46 for (; iter != iterE; ++iter) {
51 size_t apv = 0, apvE = (
range.second -
range.first);
52 for (; apv < apvE; apv += 2) {
55 for (
size_t i = 0;
i <
histos.size(); ++
i)
67 if (
a.subdetId() == 3) {
70 }
else if (
a.subdetId() == 4) {
73 }
else if (
a.subdetId() == 5) {
76 }
else if (
a.subdetId() == 6) {
81 int index = 100 + subdet * 100 + component;
102 for (
size_t i = 0;
i <
vTH1.size();
i++)
103 if (
vTH1[
i] !=
nullptr)
109 tkmap->
save(
false, 0, 0,
"testTkMap.png");
T const * product() const
void getHistos(const uint32_t &detid, const TrackerTopology *tTopo, std::vector< TH1F * > &histos)
void fill(int layer, int ring, int nmod, float x)
Log< level::Info, false > LogInfo
Registry::const_iterator RegistryConstIterator
unsigned int tidWheel(const DetId &id) const
~SiStripPlotGain() override
edm::ESHandle< SiStripApvGain > Handle_
unsigned long long getCache(const edm::EventSetup &eSetup)
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
unsigned int tidSide(const DetId &id) const
TH1F * getHisto(const long unsigned int &index)
void DoAnalysis(const edm::EventSetup &es, const SiStripApvGain &)
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)
unsigned int tobLayer(const DetId &id) const
std::pair< ContainerIterator, ContainerIterator > Range
unsigned long long cacheID
SiStripPlotGain(const edm::ParameterSet &)
Detector identifier class for the strip tracker.
std::vector< TH1F * > vTH1
unsigned int tecWheel(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const