9 LogTrace(
"TkHistoMap") <<
"TkHistoMap::constructor without parameters";
10 load(tkDetMap,
"", 0.0
f,
false,
false,
false);
17 LogTrace(
"TkHistoMap") <<
"TkHistoMap::constructor with parameters";
18 load(tkDetMap, path, baseline, mechanicalView,
false);
25 LogTrace(
"TkHistoMap") <<
"TkHistoMap::constructor with parameters";
26 load(tkDetMap, path, baseline, mechanicalView, isTH2F);
33 LogTrace(
"TkHistoMap") <<
"TkHistoMap::constructor with parameters";
34 load(tkDetMap, path, baseline, mechanicalView,
false);
50 "\n------------------------------------------" 51 "\nUnAvailable Service DQMStore: please insert in the configuration file an instance like" 52 "\n\tprocess.load(\"DQMServices.Core.DQMStore_cfg\")" 53 "\n------------------------------------------";
74 #ifdef debug_TkHistoMap 75 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::loadTkHistoMap] folder " << folder <<
" histoName " << fullName <<
" find " << folder.find_last_of(
"/") <<
" length " << folder.length();
77 if(folder.find_last_of(
"/")!=folder.length()-1)
80 #ifdef debug_TkHistoMap 81 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::loadTkHistoMap] folder " << folder <<
" histoName " << fullName <<
" layer " << layer <<
" ptr " <<
tkHistoMap_[layer] <<
" find " << folder.find_last_of(
"/") <<
" length " << folder.length();
113 for(
size_t ix = 1; ix <= (
unsigned int) nchX; ++ix)
114 for(
size_t iy = 1;iy <= (
unsigned int) nchY; ++iy)
116 me->
Fill(1.*(lowX+ix-.5),1.*(lowY+iy-.5),baseline);
120 #ifdef debug_TkHistoMap 121 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::createTkHistoMap] folder " << folder <<
" histoName " << fullName <<
" layer " << layer <<
" ptr " <<
tkHistoMap_[layer];
133 std::stringstream ss;
139 uint32_t subdetlayer = 0, side = 0;
152 file.open(filename.c_str());
156 file >> detid >>
value;
165 #ifdef debug_TkHistoMap 166 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::fill] Fill detid " << detid.
rawId() <<
" Layer " << layer <<
" value " << value <<
" ix,iy " << xybin.
ix <<
" " << xybin.
iy <<
" " << xybin.
x <<
" " << xybin.
y <<
" " <<
tkHistoMap_[layer]->getTProfile2D()->GetName();
169 tkHistoMap_[layer]->getTProfile2D()->Fill(xybin.
x,xybin.
y,value);
173 #ifdef debug_TkHistoMap 174 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::fill] " <<
tkHistoMap_[layer]->getTProfile2D()->GetBinContent(xybin.
ix,xybin.
iy);
175 for(
size_t ii=0;
ii<4;
ii++)
176 for(
size_t jj=0;
jj<11;
jj++){
178 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::fill] " <<
ii <<
" " <<
jj <<
" " <<
tkHistoMap_[layer]->getTProfile2D()->GetBinContent(
ii,
jj);
196 #ifdef debug_TkHistoMap 197 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::setbincontent] setBinContent detid " << detid.
rawId() <<
" Layer " << layer <<
" value " << value <<
" ix,iy " << xybin.
ix <<
" " << xybin.
iy <<
" " << xybin.
x <<
" " << xybin.
y <<
" " <<
tkHistoMap_[layer]->getTProfile2D()->GetName() <<
" bin " <<
tkHistoMap_[layer]->getTProfile2D()->GetBin(xybin.
ix,xybin.
iy);
199 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::setbincontent] " <<
tkHistoMap_[layer]->getTProfile2D()->GetBinContent(xybin.
ix,xybin.
iy);
200 for(
size_t ii=0;
ii<4;
ii++)
201 for(
size_t jj=0;
jj<11;
jj++){
202 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::setbincontent] " <<
ii <<
" " <<
jj <<
" " <<
tkHistoMap_[layer]->getTProfile2D()->GetBinContent(
ii,
jj);
208 #ifdef debug_TkHistoMap 209 LogTrace(
"TkHistoMap") <<
"[TkHistoMap::add]";
242 for(
size_t i=0;
i<dets.size();++
i){
317 TFile *
f =
new TFile(filename.c_str(),mode.c_str());
std::string folderDefinition(std::string folder, const std::string &MapName, int layer, bool mechanicalView, std::string &fullName)
void setSiStripFolderName(std::string name)
static std::string getLayerName(int in)
static void getSubDetLayerSide(int in, SiStripDetId::SubDetector &, uint32_t &layer, uint32_t &side)
void setBinContent(DetId detid, float value)
MonitorElement * get(const std::string &path)
void fillFromAscii(const std::string &filename)
void load(const TkDetMap *tkDetMap, const std::string &path, float baseline, bool mechanicalView, bool isTH2F, bool createTkMap=true)
std::vector< DetId > getDetsForLayer(int layer) const
DQMStore::IBooker * ibooker_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
std::vector< MonitorElement * > tkHistoMap_
uint32_t rawId() const
get the raw id
void getSubDetLayerFolderName(std::stringstream &ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0)
void createTkHistoMap(const std::string &path, const std::string &MapName, float baseline, bool mechanicalView)
void save(const std::string &filename)
MonitorElement * bookProfile2D(Args &&...args)
TkLayerMap::XYbin cached_XYbin
TkHistoMap(const TkDetMap *tkDetMap, DQMStore::IBooker &ibooker, const std::string &path, const std::string &MapName, float baseline=0, bool mechanicalView=false)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
void dumpInTkMap(TrackerMap *tkmap, bool dumpEntries=false)
DQMStore::IGetter * igetter_
void getComponents(int layer, int &nchX, double &lowX, double &highX, int &nchY, double &lowY, double &highY) const
int16_t findLayer(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
void fill(DetId detid, float value)
const TkDetMap * tkdetmap_
void saveAsCanvas(const std::string &filename, const std::string &options="", const std::string &mode="RECREATE")
void loadTkHistoMap(const std::string &path, const std::string &MapName, bool mechanicalView=false)
DetId getDetFromBin(int layer, int ix, int iy) const
void add(DetId detid, float value)
const TkLayerMap::XYbin & getXY(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
void meBookerGetter(iFunc f)
float getEntries(DetId detid)
float getValue(DetId detid)
void fill(int layer, int ring, int nmod, float x)