test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
21 //
23 
24 #include <string>
25 
26 class DQMStore;
27 class TrackerTopology;
29 {
30 
31  public:
32  static unsigned short const all_ = 65535;
33 
35  virtual ~SiStripFolderOrganizer();
36 
37  // top folder
40  void setSiStripFolder();
41 
42  // control folder
46  // unsigned short crate,
47  unsigned short slot = all_,
48  unsigned short ring = all_,
49  unsigned short addr = all_,
50  unsigned short chan = all_
51  // unsigned short i2c
52  );
54  // unsigned short crate,
55  unsigned short slot = all_,
56  unsigned short ring = all_,
57  unsigned short addr = all_,
58  unsigned short chan = all_
59  // unsigned short i2c
60  );
61 
62  std::pair<std::string,int32_t> GetSubDetAndLayer(const uint32_t& detid, const TrackerTopology* tTopo, bool ring_flag = 0);
63  std::pair<std::string,int32_t> GetSubDetAndLayerThickness(const uint32_t& detid, const TrackerTopology* tTopo, std::string & cThickness);
64  std::pair<std::string,int32_t> GetSubDetAndRing(const uint32_t& detid, const TrackerTopology* tTopo);
65  // detector folders
66  void setDetectorFolder(uint32_t rawdetid, const TrackerTopology* tTopo);
67  void getFolderName(int32_t rawdetid, const TrackerTopology* tTopo, std::string& lokal_folder);
68  void getFolderName(int32_t rawdetid, std::string& lokal_folder); // deprecated version, still needed for now
69 
70  // layer folders
71  void setLayerFolder(uint32_t rawdetid,const TrackerTopology* tTopo,int32_t layer=0,bool ring_flag = 0);
72  void getLayerFolderName(std::stringstream& ss, uint32_t rawdetid, const TrackerTopology* tTopo, bool ring_flag = 0);
73  void getSubDetLayerFolderName(std::stringstream& ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0);
74  // ring folder
75  void setRingFolder(uint32_t rawdetid,const TrackerTopology* tTopo,int32_t layer=0) { setLayerFolder(rawdetid,tTopo,layer,true); }
76  void getRingFolderName(std::stringstream& ss, uint32_t rawdetid, const TrackerTopology* tTopo) { getLayerFolderName(ss,rawdetid,tTopo,true); }
77  // SubDetector Folder
78  void getSubDetFolder(const uint32_t& detid, const TrackerTopology* tTopo, std::string& folder_name);
79  std::pair<const std::string, const char *> getSubDetFolderAndTag(const uint32_t& detid, const TrackerTopology* tTopo);
80  private:
81  SiStripFolderOrganizer(const SiStripFolderOrganizer&); // stop default
82  const SiStripFolderOrganizer& operator=(const SiStripFolderOrganizer&); // stop default
83 
84  private:
87 };
88 #endif
void setSiStripControlFolder(unsigned short slot=all_, unsigned short ring=all_, unsigned short addr=all_, unsigned short chan=all_)
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=0)
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=0)
std::pair< std::string, int32_t > GetSubDetAndRing(const uint32_t &detid, const TrackerTopology *tTopo)
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_)
static unsigned short const all_
std::pair< std::string, int32_t > GetSubDetAndLayerThickness(const uint32_t &detid, const TrackerTopology *tTopo, std::string &cThickness)
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=0)
void setRingFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0)
void getFolderName(int32_t rawdetid, const TrackerTopology *tTopo, std::string &lokal_folder)
const SiStripFolderOrganizer & operator=(const SiStripFolderOrganizer &)