16 "\n------------------------------------------"
17 "\nUnAvailable Service SiStripDetInfoFileReader: please insert in the configuration file an instance like"
18 "\n\tprocess.SiStripDetInfoFileReader = cms.Service(\"SiStripDetInfoFileReader\")"
19 "\n------------------------------------------";
23 file =
new TFile(
"correlTest.root",
"RECREATE");
63 for(;iter!=iterE;++iter){
67 edm::LogInfo(
"") <<
"[Doanalysis] detid " << *iter <<
" range " << range.second-range.first;
68 size_t apv=0, apvE= (range.second-range.first);
69 for (;apv<apvE;apv+=2){
72 for(
size_t i=0;
i<histos.size();++
i)
73 histos[
i]->
Fill(value);
85 int subdet=-999;
int component=-999;
101 int index=100+subdet*100+component;
104 histos.push_back(
getHisto(subdet+1));
111 if(
vTH1.size()<index+1)
112 vTH1.resize(index+1,0);
116 sprintf(name,
"%lu",index);
117 edm::LogInfo(
"")<<
"[getHisto] creating index " << index << std::endl;
118 vTH1[
index]=
new TH1F(name,name,150,0.,5.);
126 for(
size_t i=0;
i<
vTH1.size();
i++)
ContainerIterator getFirstElement(RegistryConstIterator &idet)
unsigned long long getCache(const edm::EventSetup &eSetup)
unsigned int layer() const
layer id
Registry::const_iterator RegistryConstIterator
RegistryConstIterator detid_end
RegistryConstIterator detid_begin
unsigned long long cacheID
unsigned int side() const
positive or negative id
void getHistos(const uint32_t &detid, std::vector< TH1F * > &histos)
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
void DoAnalysis(const SiStripApvGain &)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< TH1F * > vTH1
Detector identifier class for the strip tracker.
SiStripDetInfoFileReader * fr
ContainerIterator getLastElement(RegistryConstIterator &idet)
unsigned int side() const
positive or negative id
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es)
T const * product() const
TH1F * getHisto(const long unsigned int &index)
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
SiStripPlotGain(const edm::ParameterSet &)
edm::ESHandle< SiStripApvGain > Handle_
RegistryPointers getRegistryPointers() const
float getApvGain(const uint16_t &apv, const Range &range) const
void fill(int layer, int ring, int nmod, float x)
unsigned int wheel() const
wheel id