CMS 3D CMS Logo

SiStripFolderOrganizer.h
Go to the documentation of this file.
1 #ifndef SiStripCommon_SiStripFolderOrganizer_h
2 #define SiStripCommon_SiStripFolderOrganizer_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripCommon
6 // Class : SiStripFolderOrganizer
7 //
16 //
17 // Original Author: dkcira
18 // Created: Thu Jan 26 23:49:46 CET 2006
19 
20 //
23 
24 #include <string>
25 
26 class TrackerTopology;
28 public:
30 
31  static unsigned short const all_ = 65535;
32 
34  virtual ~SiStripFolderOrganizer();
35 
36  // top folder
39  void setSiStripFolder();
40 
41  // control folder
45  // unsigned short crate,
46  unsigned short slot = all_,
47  unsigned short ring = all_,
48  unsigned short addr = all_,
49  unsigned short chan = all_
50  // unsigned short i2c
51  );
53  // unsigned short crate,
54  unsigned short slot = all_,
55  unsigned short ring = all_,
56  unsigned short addr = all_,
57  unsigned short chan = all_
58  // unsigned short i2c
59  );
60 
61  std::pair<std::string, int32_t> GetSubDetAndLayer(const uint32_t& detid,
62  const TrackerTopology* tTopo,
63  bool ring_flag = false);
64  std::pair<std::string, int32_t> GetSubDetAndLayerThickness(const uint32_t& detid,
65  const TrackerTopology* tTopo,
66  std::string& cThickness);
67  std::pair<std::string, int32_t> GetSubDetAndRing(const uint32_t& detid, const TrackerTopology* tTopo);
68  // detector folders
69  void setDetectorFolder(uint32_t rawdetid, const TrackerTopology* tTopo);
70  void getFolderName(int32_t rawdetid, const TrackerTopology* tTopo, std::string& lokal_folder);
71 
72  // layer folders
73  void setLayerFolder(uint32_t rawdetid, const TrackerTopology* tTopo, int32_t layer = 0, bool ring_flag = false);
74  void getLayerFolderName(std::stringstream& ss,
75  uint32_t rawdetid,
76  const TrackerTopology* tTopo,
77  bool ring_flag = false);
78  void getSubDetLayerFolderName(std::stringstream& ss,
80  uint32_t layer,
81  uint32_t side = 0);
82  // ring folder
83  void setRingFolder(uint32_t rawdetid, const TrackerTopology* tTopo, int32_t layer = 0) {
84  setLayerFolder(rawdetid, tTopo, layer, true);
85  }
86  void getRingFolderName(std::stringstream& ss, uint32_t rawdetid, const TrackerTopology* tTopo) {
87  getLayerFolderName(ss, rawdetid, tTopo, true);
88  }
89  // SubDetector Folder
90  void getSubDetFolder(const uint32_t& detid, const TrackerTopology* tTopo, std::string& folder_name);
91  std::pair<const std::string, const char*> getSubDetFolderAndTag(const uint32_t& detid, const TrackerTopology* tTopo);
92 
93  SiStripFolderOrganizer(const SiStripFolderOrganizer&) = delete; // stop default
94  const SiStripFolderOrganizer& operator=(const SiStripFolderOrganizer&) = delete; // stop default
95 
96 private:
99 };
100 #endif
SiStripFolderOrganizer::~SiStripFolderOrganizer
virtual ~SiStripFolderOrganizer()
Definition: SiStripFolderOrganizer.cc:39
TrackerTopology
Definition: TrackerTopology.h:16
SiStripFolderOrganizer::GetSubDetAndLayerThickness
std::pair< std::string, int32_t > GetSubDetAndLayerThickness(const uint32_t &detid, const TrackerTopology *tTopo, std::string &cThickness)
Definition: SiStripFolderOrganizer.cc:140
SiStripFolderOrganizer::getSiStripFolder
std::string getSiStripFolder()
Definition: SiStripFolderOrganizer.cc:43
DQMStore.h
SiStripFolderOrganizer::TopFolderName
std::string TopFolderName
Definition: SiStripFolderOrganizer.h:97
SiStripDetId.h
SiStripFolderOrganizer::setRingFolder
void setRingFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0)
Definition: SiStripFolderOrganizer.h:83
SiStripFolderOrganizer::GetSubDetAndLayer
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=false)
Definition: SiStripFolderOrganizer.cc:106
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripFolderOrganizer::getFolderName
void getFolderName(int32_t rawdetid, const TrackerTopology *tTopo, std::string &lokal_folder)
Definition: SiStripFolderOrganizer.cc:236
generateTowerEtThresholdLUT.addr
addr
Definition: generateTowerEtThresholdLUT.py:57
SiStripFolderOrganizer::setSiStripControlFolder
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
Definition: SiStripFolderOrganizer.cc:93
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripFolderOrganizer::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripFolderOrganizer.h:29
SiStripFolderOrganizer::getSubDetFolderAndTag
std::pair< const std::string, const char * > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
Definition: SiStripFolderOrganizer.cc:475
SiStripFolderOrganizer::getRingFolderName
void getRingFolderName(std::stringstream &ss, uint32_t rawdetid, const TrackerTopology *tTopo)
Definition: SiStripFolderOrganizer.h:86
SiStripFolderOrganizer::getSiStripTopControlFolder
std::string getSiStripTopControlFolder()
Definition: SiStripFolderOrganizer.cc:50
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripFolderOrganizer::operator=
const SiStripFolderOrganizer & operator=(const SiStripFolderOrganizer &)=delete
SiStripFolderOrganizer::getSubDetFolder
void getSubDetFolder(const uint32_t &detid, const TrackerTopology *tTopo, std::string &folder_name)
Definition: SiStripFolderOrganizer.cc:406
SiStripFolderOrganizer::all_
static unsigned const short all_
Definition: SiStripFolderOrganizer.h:31
fed_dqm_sourceclient-live_cfg.folder_name
folder_name
Definition: fed_dqm_sourceclient-live_cfg.py:42
SiStripFolderOrganizer::setSiStripFolderName
void setSiStripFolderName(std::string name)
Definition: SiStripFolderOrganizer.cc:41
SiStripFolderOrganizer::setSiStripFolder
void setSiStripFolder()
Definition: SiStripFolderOrganizer.cc:45
SiStripFolderOrganizer::setSiStripTopControlFolder
void setSiStripTopControlFolder()
Definition: SiStripFolderOrganizer.cc:55
SiStripFolderOrganizer::setDetectorFolder
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
Definition: SiStripFolderOrganizer.cc:202
SiStripFolderOrganizer::SiStripFolderOrganizer
SiStripFolderOrganizer()
Definition: SiStripFolderOrganizer.cc:33
SiStripFolderOrganizer::GetSubDetAndRing
std::pair< std::string, int32_t > GetSubDetAndRing(const uint32_t &detid, const TrackerTopology *tTopo)
Definition: SiStripFolderOrganizer.cc:177
officialStyle.chan
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi....
Definition: officialStyle.py:106
SiStripFolderOrganizer::setLayerFolder
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=false)
Definition: SiStripFolderOrganizer.cc:304
SiStripFolderOrganizer
Definition: SiStripFolderOrganizer.h:27
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
SiStripFolderOrganizer::getSubDetLayerFolderName
void getSubDetLayerFolderName(std::stringstream &ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0)
Definition: SiStripFolderOrganizer.cc:208
SiStripFolderOrganizer::getSiStripControlFolder
std::string getSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
Definition: SiStripFolderOrganizer.cc:61
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripFolderOrganizer::getLayerFolderName
void getLayerFolderName(std::stringstream &ss, uint32_t rawdetid, const TrackerTopology *tTopo, bool ring_flag=false)
Definition: SiStripFolderOrganizer.cc:415
SiStripSubdetector::Subdetector
Subdetector
Definition: SiStripEnums.h:5
SiStripFolderOrganizer::dbe_
DQMStore * dbe_
Definition: SiStripFolderOrganizer.h:98