|
|
Go to the documentation of this file.
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;
123 layer = tTopo->
tidRing(detid) * (tTopo->
tidSide(detid) == 1 ? -1 : +1);
125 layer = tTopo->
tidWheel(detid) * (tTopo->
tidSide(detid) == 1 ? -1 : +1);
130 layer = tTopo->
tecRing(detid) * (tTopo->
tecSide(detid) == 1 ? -1 : +1);
132 layer = tTopo->
tecWheel(detid) * (tTopo->
tecSide(detid) == 1 ? -1 : +1);
135 edm::LogWarning(
"SiStripMonitorTrack") <<
"WARNING!!! this detid does not belong to tracker" << std::endl;
137 return std::make_pair(cSubDet, layer);
155 cThickness =
"THICK";
159 layer = tTopo->
tidWheel(detid) * (tTopo->
tidSide(detid) == 1 ? -1 : +1);
164 layer = tTopo->
tecWheel(detid) * (tTopo->
tecSide(detid) == 1 ? -1 : +1);
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) {
223 ss <<
SEP <<
"TIB" <<
SEP <<
"layer_" << layer <<
SEP;
225 ss <<
SEP <<
"TID" <<
SEP << sside.str() <<
SEP <<
"wheel_" << layer <<
SEP;
227 ss <<
SEP <<
"TOB" <<
SEP <<
"layer_" << layer <<
SEP;
229 ss <<
SEP <<
"TEC" <<
SEP << sside.str() <<
SEP <<
"wheel_" << layer <<
SEP;
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);
320 if (
abs(layer) != tib_layer) {
322 <<
" expect " <<
abs(layer) <<
" but getting " << tTopo->
tibLayer(rawdetid) << std::endl;
329 int tid_ring = tTopo->
tidRing(rawdetid);
332 uint32_t side = tTopo->
tidSide(rawdetid);
333 std::stringstream sside;
336 }
else if (side == 2) {
341 if (
abs(layer) != tid_ring) {
343 <<
" expect " <<
abs(layer) <<
" but getting " << tTopo->
tidRing(rawdetid) << std::endl;
348 int tid_wheel = tTopo->
tidWheel(rawdetid);
349 if (
abs(layer) != tid_wheel) {
351 <<
" expect " <<
abs(layer) <<
" but getting " << tTopo->
tidWheel(rawdetid) << std::endl;
359 int tob_layer = tTopo->
tobLayer(rawdetid);
360 if (
abs(layer) != tob_layer) {
362 <<
" expect " <<
abs(layer) <<
" but getting " << tTopo->
tobLayer(rawdetid) << std::endl;
370 uint32_t side = tTopo->
tecSide(rawdetid);
371 std::stringstream sside;
374 }
else if (side == 2) {
379 int tec_ring = tTopo->
tecRing(rawdetid);
380 if (
abs(layer) != tec_ring) {
382 <<
" expect " <<
abs(layer) <<
" but getting " << tTopo->
tecRing(rawdetid) << std::endl;
387 int tec_wheel = tTopo->
tecWheel(rawdetid);
388 if (
abs(layer) != tec_wheel) {
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();
432 uint32_t side = tTopo->
tidSide(rawdetid);
433 std::stringstream sside;
436 }
else if (side == 2) {
441 ss <<
SEP <<
"TID" <<
SEP << sside.str() <<
SEP <<
"ring_" << tTopo->
tidRing(rawdetid);
452 uint32_t side = tTopo->
tecSide(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);
virtual ~SiStripFolderOrganizer()
bool tibIsExternalString(const DetId &id) const
std::pair< std::string, int32_t > GetSubDetAndLayerThickness(const uint32_t &detid, const TrackerTopology *tTopo, std::string &cThickness)
#define CONTROL_FOLDER_NAME
std::string getSiStripFolder()
bool tecIsStereo(const DetId &id) const
std::string TopFolderName
unsigned int tidRing(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
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)
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
void setCurrentFolder(std::string const &fullpath) override
static constexpr auto TIB
std::pair< const std::string, const char * > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
static constexpr auto TEC
std::string getSiStripTopControlFolder()
unsigned int tibString(const DetId &id) const
void getSubDetFolder(const uint32_t &detid, const TrackerTopology *tTopo, std::string &folder_name)
unsigned int tecPetalNumber(const DetId &id) const
#define MECHANICAL_FOLDER_NAME
bool tobIsZMinusSide(const DetId &id) const
static unsigned const short all_
unsigned int tidSide(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
void setSiStripFolderName(std::string name)
static constexpr auto TOB
void setSiStripTopControlFolder()
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
static constexpr auto TID
unsigned int tobLayer(const DetId &id) const
static constexpr auto TEC
std::pair< std::string, int32_t > GetSubDetAndRing(const uint32_t &detid, const TrackerTopology *tTopo)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi....
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=false)
SubDetector subDetector() const
static constexpr auto TOB
void getSubDetLayerFolderName(std::stringstream &ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0)
static constexpr auto TIB
std::string getSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
void getLayerFolderName(std::stringstream &ss, uint32_t rawdetid, const TrackerTopology *tTopo, bool ring_flag=false)
Abs< T >::type abs(const T &t)
Detector identifier class for the strip tracker.
bool tecIsBackPetal(const DetId &id) const
bool tibIsZMinusSide(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const