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
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
const SiStripFolderOrganizer & operator=(const SiStripFolderOrganizer &)=delete
void setSiStripFolderName(std::string name)
void getSubDetFolder(const uint32_t &detid, const TrackerTopology *tTopo, std::string &folder_name)
std::pair< const std::string, const char * > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
std::string getSiStripTopControlFolder()
void getRingFolderName(std::stringstream &ss, uint32_t rawdetid, const TrackerTopology *tTopo)
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)
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
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_)
static unsigned short const all_
std::pair< std::string, int32_t > GetSubDetAndLayerThickness(const uint32_t &detid, const TrackerTopology *tTopo, std::string &cThickness)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=false)
dqm::legacy::DQMStore DQMStore
void setRingFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0)
void getFolderName(int32_t rawdetid, const TrackerTopology *tTopo, std::string &lokal_folder)