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.15 2011/05/31 10:38:46 eulisse Exp $
21 
22 //
24 
25 #include <string>
26 
27 class DQMStore;
28 
30 {
31 
32  public:
33  static unsigned short const all_ = 65535;
34 
36  virtual ~SiStripFolderOrganizer();
37 
38  // top folder
39  void setSiStripFolderName(std::string name);
40  std::string getSiStripFolder();
41  void setSiStripFolder();
42 
43  // control folder
44  std::string getSiStripTopControlFolder();
46  std::string getSiStripControlFolder(
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, bool ring_flag = 0);
64  // detector folders
65  void setDetectorFolder(uint32_t rawdetid=0);
66  void getFolderName(int32_t rawdetid, std::string& lokal_folder);
67 
68  // layer folders
69  void setLayerFolder(uint32_t rawdetid=0,int32_t layer=0,bool ring_flag = 0);
70  void getLayerFolderName(std::stringstream& ss, uint32_t rawdetid,bool ring_flag = 0);
71  void getSubDetLayerFolderName(std::stringstream& ss, SiStripDetId::SubDetector subDet, uint32_t layer, uint32_t side=0);
72  // SubDetector Folder
73  void getSubDetFolder(const uint32_t& detid, std::string& folder_name);
74  std::pair<std::string, std::string> getSubDetFolderAndTag(const uint32_t& detid);
75  private:
76  SiStripFolderOrganizer(const SiStripFolderOrganizer&); // stop default
77  const SiStripFolderOrganizer& operator=(const SiStripFolderOrganizer&); // stop default
78 
79  private:
80  std::string TopFolderName;
82 };
83 #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, std::string &folder_name)
std::string getSiStripTopControlFolder()
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_)
std::pair< std::string, std::string > getSubDetFolderAndTag(const uint32_t &detid)
static unsigned short const all_
void getLayerFolderName(std::stringstream &ss, uint32_t rawdetid, bool ring_flag=0)
void setDetectorFolder(uint32_t rawdetid=0)
void getFolderName(int32_t rawdetid, std::string &lokal_folder)
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, bool ring_flag=0)
void setLayerFolder(uint32_t rawdetid=0, int32_t layer=0, bool ring_flag=0)
const SiStripFolderOrganizer & operator=(const SiStripFolderOrganizer &)