CMS 3D CMS Logo

CSCMap.h
Go to the documentation of this file.
1 #ifndef GUARD_cscmap_H
2 #define GUARD_cscmap_H
3 
4 #include <iostream>
6 #include <string>
7 
8 class cscmap {
9 private:
10  oracle::occi::Environment *env;
11  oracle::occi::Connection *con;
12 
13 public:
17  cscmap() noexcept(false);
21  ~cscmap() noexcept(false);
22 
23  /* Method 'crate0_chamber' returns for a given logical crate
24 | number 'crate0' (values 0-59) and DMB number 'dmb'
25 | (1-5,7-10; for station 4 (no ring 2) DMB No 1-3)
26 | chamber identifiers: 'chamber_id' is a string like 'ME+2/2/27'
27 | and 'chamber_num' - a corresponding numeric identifier:
28 | 'ME+2/2/27' => 220122270. Digits from left to right mean:
29 | 2 - Muon system, 2 - CSC (1=DT,3=RPC), 0 - to separate from further
30 | digits, 1 - +Endcap (2 - -Endcap), 2 - station number, 2 - ring number,
31 | 27 - chamber number, 0 - digit reserved for layer number (=0 for
32 | the whole chamber). 'sector' - returns trigger sector number.
33 | If 'chamber_num' and 'sector' return -100, it means that 'crate0'
34 | is outside the permitted range; -10 means that 'dmb' is outside
35 | the permitted range.
36 */
37  void crate0_chamber(int crate0,
38  int dmb,
39  std::string *chamber_id,
40  int *chamber_num,
41  int *sector,
42  int *first_strip_index,
43  int *strips_per_layer,
44  int *chamber_index);
45  /* Method 'crate_chamber' returns similar to previous information,
46 | but for physical (installed) 'crate' number. By now (2005/11/16)
47 | only 2 crates are installed (0 and 1).
48 | -1 returned means that infor mation for non-installed crate is requested.
49 */
50  void crate_chamber(int crate,
51  int dmb,
52  std::string *chamber_id,
53  int *chamber_num,
54  int *sector,
55  int *first_strip_index,
56  int *strips_per_layer,
57  int *chamber_index);
58  /* Method 'chamber_crate' returns information for a given chamber,
59 | 'chamber_id', (like 'ME+2/2/27'). 'crate' - physical (installed)
60 | crate number (-1 means that crate for the given chamber is not
61 | installed), 'dmb' - DMB number (1-5,7-10), 'sector' - trigger sector
62 | number, 'chamber_num' - numeric chamber identifier (see above),
63 | 'crate0' - logical crate number.
64 | -100 returned means that 'chamber_id' format is incorrect.
65 */
66  void chamber_crate(std::string chamber_id,
67  int *crate,
68  int *dmb,
69  int *sector,
70  int *chamber_num,
71  int *crate0,
72  int *first_strip_index,
73  int *strips_per_layer,
74  int *chamber_index);
75 
76 }; // end of class cscmap
77 #endif
funct::false
false
Definition: Factorize.h:34
cscmap::chamber_crate
void chamber_crate(std::string chamber_id, int *crate, int *dmb, int *sector, int *chamber_num, int *crate0, int *first_strip_index, int *strips_per_layer, int *chamber_index)
Definition: CSCMap.cc:90
cscmap
Definition: CSCMap.h:8
cscmap::crate0_chamber
void crate0_chamber(int crate0, int dmb, std::string *chamber_id, int *chamber_num, int *sector, int *first_strip_index, int *strips_per_layer, int *chamber_index)
Definition: CSCMap.cc:26
cscmap::crate_chamber
void crate_chamber(int crate, int dmb, std::string *chamber_id, int *chamber_num, int *sector, int *first_strip_index, int *strips_per_layer, int *chamber_index)
Definition: CSCMap.cc:58
cscmap::con
oracle::occi::Connection * con
Definition: CSCMap.h:11
cscmap::cscmap
cscmap() noexcept(false)
Definition: CSCMap.cc:7
std
Definition: JetResolutionObject.h:76
cscmap::env
oracle::occi::Environment * env
Definition: CSCMap.h:10
Oracle.h