27 #define CONTROL_FOLDER_NAME "ControlView" 28 #define MECHANICAL_FOLDER_NAME "MechanicalView" 69 std::stringstream lokal_folder;
74 lokal_folder <<
SEP <<
"FecSlot" <<
slot;
76 lokal_folder <<
SEP <<
"FecRing" <<
ring;
78 lokal_folder <<
SEP <<
"CcuAddr" <<
addr;
80 lokal_folder <<
SEP <<
"CcuChan" <<
chan;
135 edm::LogWarning(
"SiStripMonitorTrack") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
137 return std::make_pair(cSubDet,
layer);
155 cThickness =
"THICK";
169 cThickness =
"THICK";
172 edm::LogWarning(
"SiStripMonitorTrack") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
174 return std::make_pair(cSubDet,
layer);
197 edm::LogWarning(
"SiStripMonitorTrack") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
199 return std::make_pair(cSubDet,
ring);
215 std::stringstream sside;
218 }
else if (
side == 2) {
232 edm::LogWarning(
"SiStripTkDQM|WrongInput") <<
"no such SubDet :" << subDet <<
" no folder set!" << std::endl;
241 std::stringstream
rest;
250 rest <<
"backward_strings" <<
SEP;
252 rest <<
"forward_strings" <<
SEP;
254 rest <<
"external_strings" <<
SEP;
256 rest <<
"internal_strings" <<
SEP;
257 rest <<
"string_" << tTopo->
tibString(rawdetid) <<
SEP <<
"module_" << rawdetid;
265 rest <<
"stereo_modules" <<
SEP;
268 rest <<
"module_" << rawdetid;
274 rest <<
"backward_rods" <<
SEP;
277 rest <<
"rod_" << tTopo->
tobRod(rawdetid) <<
SEP <<
"module_" << rawdetid;
283 rest <<
"backward_petals" <<
SEP;
285 rest <<
"forward_petals" <<
SEP;
290 rest <<
"stereo_modules" <<
SEP;
294 rest <<
"module_" << rawdetid;
298 <<
"no such subdetector type :" << stripdet.
subDetector() <<
" no folder set!" << std::endl;
301 lokal_folder +=
rest.str();
314 std::ostringstream
rest;
319 int tib_layer = tTopo->
tibLayer(rawdetid);
322 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tibLayer(rawdetid) << std::endl;
329 int tid_ring = tTopo->
tidRing(rawdetid);
333 std::stringstream sside;
336 }
else if (
side == 2) {
343 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tidRing(rawdetid) << std::endl;
348 int tid_wheel = tTopo->
tidWheel(rawdetid);
351 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tidWheel(rawdetid) << std::endl;
359 int tob_layer = tTopo->
tobLayer(rawdetid);
362 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tobLayer(rawdetid) << std::endl;
371 std::stringstream sside;
374 }
else if (
side == 2) {
379 int tec_ring = tTopo->
tecRing(rawdetid);
382 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tecRing(rawdetid) << std::endl;
387 int tec_wheel = tTopo->
tecWheel(rawdetid);
390 <<
" expect " <<
abs(
layer) <<
" but getting " << tTopo->
tecWheel(rawdetid) << std::endl;
398 <<
"no such subdetector type :" << stripdet.
subDetector() <<
" no folder set!" << std::endl;
402 lokal_folder +=
rest.str();
433 std::stringstream sside;
436 }
else if (
side == 2) {
441 ss <<
SEP <<
"TID" <<
SEP << sside.str() <<
SEP <<
"ring_" << tTopo->
tidRing(rawdetid);
453 std::stringstream sside;
456 }
else if (
side == 2) {
461 ss <<
SEP <<
"TEC" <<
SEP << sside.str() <<
SEP <<
"ring_" << tTopo->
tecRing(rawdetid);
468 <<
"no such subdetector type :" << stripdet.
subDetector() <<
" no folder set!" << std::endl;
477 const char* subdet_folder =
"";
478 const char*
tag =
"";
481 subdet_folder =
"TIB";
485 subdet_folder =
"TOB";
489 if (tTopo->
tidSide(detid) == 2) {
490 subdet_folder =
"TID/PLUS";
492 }
else if (tTopo->
tidSide(detid) == 1) {
493 subdet_folder =
"TID/MINUS";
498 if (tTopo->
tecSide(detid) == 2) {
499 subdet_folder =
"TEC/PLUS";
501 }
else if (tTopo->
tecSide(detid) == 1) {
502 subdet_folder =
"TEC/MINUS";
507 edm::LogWarning(
"SiStripCommon") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
516 return std::pair<const std::string, const char*>(
folder,
tag);
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
unsigned int tecPetalNumber(const DetId &id) const
static constexpr auto TEC
void setSiStripTopControlFolder()
unsigned int tobLayer(const DetId &id) const
void setSiStripFolderName(std::string name)
void getSubDetFolder(const uint32_t &detid, const TrackerTopology *tTopo, std::string &folder_name)
bool tobIsZMinusSide(const DetId &id) const
std::pair< const std::string, const char * > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
std::string getSiStripTopControlFolder()
static constexpr auto TID
unsigned int tidSide(const DetId &id) const
#define CONTROL_FOLDER_NAME
bool tibIsExternalString(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
bool tibIsZMinusSide(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
void setCurrentFolder(std::string const &fullpath) override
unsigned int tibString(const DetId &id) const
ALPAKA_FN_ACC int side(int ieta, int iphi)
SubDetector subDetector() const
void getLayerFolderName(std::stringstream &ss, uint32_t rawdetid, const TrackerTopology *tTopo, bool ring_flag=false)
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=false)
std::pair< std::string, int32_t > GetSubDetAndRing(const uint32_t &detid, const TrackerTopology *tTopo)
unsigned int tecRing(const DetId &id) const
ring id
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
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_)
unsigned int tecSide(const DetId &id) const
Abs< T >::type abs(const T &t)
static unsigned short const all_
static constexpr auto TOB
virtual ~SiStripFolderOrganizer()
static constexpr auto TOB
std::string TopFolderName
std::pair< std::string, int32_t > GetSubDetAndLayerThickness(const uint32_t &detid, const TrackerTopology *tTopo, std::string &cThickness)
Detector identifier class for the strip tracker.
bool tecIsBackPetal(const DetId &id) const
std::string getSiStripFolder()
static constexpr auto TIB
bool tecIsStereo(const DetId &id) const
unsigned int tobRod(const DetId &id) const
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
static constexpr auto TIB
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=false)
bool tidIsStereo(const DetId &id) const
void getFolderName(int32_t rawdetid, const TrackerTopology *tTopo, std::string &lokal_folder)
unsigned int tidRing(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
Log< level::Warning, false > LogWarning
static constexpr auto TID
static constexpr auto TEC
#define MECHANICAL_FOLDER_NAME