30 #define CONTROL_FOLDER_NAME "ControlView"
31 #define MECHANICAL_FOLDER_NAME "MechanicalView"
82 std::stringstream lokal_folder;
87 lokal_folder <<
SEP <<
"FecSlot" << slot;
89 lokal_folder <<
SEP <<
"FecRing" <<
ring;
91 lokal_folder <<
SEP <<
"CcuAddr" << addr;
93 lokal_folder <<
SEP <<
"CcuChan" << chan;
102 std::string folder_name = lokal_folder.str();
148 edm::LogWarning(
"SiStripMonitorTrack") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
150 return std::make_pair(cSubDet,layer);
155 std::string folder_name;
164 ss <<
SEP <<
"TIB" <<
SEP <<
"layer_" << layer <<
SEP;
166 ss <<
SEP <<
"TID" <<
SEP <<
"side_" << side <<
SEP <<
"wheel_" << layer <<
SEP;
168 ss <<
SEP <<
"TOB" <<
SEP <<
"layer_" << layer <<
SEP;
170 ss <<
SEP <<
"TEC" <<
SEP <<
"side_" << side <<
SEP <<
"wheel_" << layer <<
SEP;
173 edm::LogWarning(
"SiStripTkDQM|WrongInput")<<
"no such SubDet :"<< subDet <<
" no folder set!"<<std::endl;
183 std::stringstream rest;
191 else rest <<
"forward_strings" <<
SEP;
193 else rest <<
"internal_strings" <<
SEP;
194 rest <<
"string_" << tib.
stringNumber() << SEP <<
"module_" << rawdetid;
199 rest<<
"ring_" << tid.
ring() <<
SEP;
201 if (tid.
isStereo()) rest <<
"stereo_modules" <<
SEP;
202 else rest <<
"mono_modules" <<
SEP;
203 rest <<
"module_" << rawdetid;
209 else rest <<
"forward_rods" <<
SEP;
210 rest <<
"rod_" << tob.
rodNumber() << SEP<<
"module_" << rawdetid;
216 else rest <<
"forward_petals" <<
SEP;
221 if (tec.
isStereo()) rest <<
"stereo_modules" << SEP;
222 else rest <<
"mono_modules" <<
SEP;
224 rest <<
"module_" << rawdetid;
227 edm::LogWarning(
"SiStripTkDQM|WrongInput")<<
"no such subdetector type :"<<stripdet.
subDetector() <<
" no folder set!"<<std::endl;
230 lokal_folder += rest.str();
241 std::ostringstream rest;
246 int tib_layer = tib1.
layer();
247 if (
abs(layer) != tib_layer) {
248 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tib1.
layer() <<std::endl;
255 int tid_ring = tid1.
ring();
257 if(
abs(layer) != tid_ring) {
258 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tid1.
ring() <<std::endl;
263 int tid_wheel = tid1.
wheel();
264 if (
abs(layer) != tid_wheel) {
265 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tid1.
wheel() <<std::endl;
273 int tob_layer = tob1.
layer();
274 if (
abs(layer) != tob_layer) {
275 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tob1.
layer() <<std::endl;
283 int tec_ring = tec1.
ring();
284 if (
abs(layer) != tec_ring) {
285 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tec1.
ring() <<std::endl;
290 int tec_wheel = tec1.
wheel();
291 if (
abs(layer) != tec_wheel) {
292 edm::LogWarning(
"SiStripTkDQM|Layer mismatch!!!")<<
" expect "<<
abs(layer) <<
" but getting " << tec1.
wheel() <<std::endl;
299 edm::LogWarning(
"SiStripTkDQM|WrongInput")<<
"no such subdetector type :"<<stripdet.
subDetector()<<
" no folder set!"<<std::endl;
303 lokal_folder += rest.str();
310 folder_name = subdet_and_tag.first;
348 edm::LogWarning(
"SiStripTkDQM|WrongInput")<<
"no such subdetector type :"<<stripdet.
subDetector()<<
" no folder set!"<<std::endl;
356 std::pair<std::string, std::string>
result;
358 std::string subdet_folder;
362 subdet_folder =
"TIB";
363 result.second = subdet_folder;
366 subdet_folder =
"TOB";
367 result.second = subdet_folder;
371 subdet_folder =
"TID/side_2";
372 result.second =
"TID__side__2";
373 }
else if (
TIDDetId(detid).side() == 1) {
374 subdet_folder =
"TID/side_1";
375 result.second =
"TID__side__1";
380 subdet_folder =
"TEC/side_2";
381 result.second =
"TEC__side__2";
382 }
else if (
TECDetId(detid).side() == 1) {
383 subdet_folder =
"TEC/side_1";
384 result.second =
"TEC__side__1";
389 edm::LogWarning(
"SiStripCommon") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
393 result.first += subdet_folder;
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
bool isZMinusSide() const
unsigned int rodNumber() const
void setSiStripTopControlFolder()
unsigned int petalNumber() const
unsigned int stringNumber() const
void setSiStripFolderName(std::string name)
unsigned int layer() const
layer id
void getSubDetFolder(const uint32_t &detid, std::string &folder_name)
std::string getSiStripTopControlFolder()
#define CONTROL_FOLDER_NAME
unsigned int side() const
positive or negative id
unsigned int layerNumber() const
void getSubDetLayerFolderName(std::stringstream &ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0)
std::string getSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
bool isExternalString() const
bool isZMinusSide() const
std::pair< std::string, std::string > getSubDetFolderAndTag(const uint32_t &detid)
unsigned int layerNumber() const
unsigned int ring() const
ring id
static unsigned short const all_
void getLayerFolderName(std::stringstream &ss, uint32_t rawdetid, bool ring_flag=0)
void setDetectorFolder(uint32_t rawdetid=0)
virtual ~SiStripFolderOrganizer()
std::string TopFolderName
Detector identifier class for the strip tracker.
SubDetector subDetector() const
void getFolderName(int32_t rawdetid, std::string &lokal_folder)
std::string getSiStripFolder()
unsigned int side() const
positive or negative id
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
unsigned int ringNumber() const
unsigned int ring() const
ring id
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, bool ring_flag=0)
void setLayerFolder(uint32_t rawdetid=0, int32_t layer=0, bool ring_flag=0)
void setCurrentFolder(const std::string &fullpath)
#define MECHANICAL_FOLDER_NAME
unsigned int wheel() const
wheel id