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 // $Id: SiStripFolderOrganizer.h,v 1.17 2013/01/03 18:59:35 wmtan Exp $
21 
22 //
24 
25 #include <string>
26 
27 class DQMStore;
28 class TrackerTopology;
30 {
31 
32  public:
33  static unsigned short const all_ = 65535;
34 
36  virtual ~SiStripFolderOrganizer();
37 
38  // top folder
41  void setSiStripFolder();
42 
43  // control folder
47  // unsigned short crate,
48  unsigned short slot = all_,
49  unsigned short ring = all_,
50  unsigned short addr = all_,
51  unsigned short chan = all_
52  // unsigned short i2c
53  );
55  // unsigned short crate,
56  unsigned short slot = all_,
57  unsigned short ring = all_,
58  unsigned short addr = all_,
59  unsigned short chan = all_
60  // unsigned short i2c
61  );
62 
63  std::pair<std::string,int32_t> GetSubDetAndLayer(const uint32_t& detid, const TrackerTopology* tTopo, bool ring_flag = 0);
64  // detector folders
65  void setDetectorFolder(uint32_t rawdetid, const TrackerTopology* tTopo);
66  void getFolderName(int32_t rawdetid, const TrackerTopology* tTopo, std::string& lokal_folder);
67  void getFolderName(int32_t rawdetid, std::string& lokal_folder); // deprecated version, still needed for now
68 
69  // layer folders
70  void setLayerFolder(uint32_t rawdetid,const TrackerTopology* tTopo,int32_t layer=0,bool ring_flag = 0);
71  void getLayerFolderName(std::stringstream& ss, uint32_t rawdetid, const TrackerTopology* tTopo, bool ring_flag = 0);
72  void getSubDetLayerFolderName(std::stringstream& ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0);
73  // SubDetector Folder
74  void getSubDetFolder(const uint32_t& detid, const TrackerTopology* tTopo, std::string& folder_name);
75  std::pair<std::string, std::string> getSubDetFolderAndTag(const uint32_t& detid, const TrackerTopology* tTopo);
76  private:
77  SiStripFolderOrganizer(const SiStripFolderOrganizer&); // stop default
78  const SiStripFolderOrganizer& operator=(const SiStripFolderOrganizer&); // stop default
79 
80  private:
83 };
84 #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::string getSiStripTopControlFolder()
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)
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_
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=0)
std::pair< std::string, std::string > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
void getFolderName(int32_t rawdetid, const TrackerTopology *tTopo, std::string &lokal_folder)
const SiStripFolderOrganizer & operator=(const SiStripFolderOrganizer &)