CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
10  private:
11 
12  oracle::occi::Environment *env;
13  oracle::occi::Connection *con;
14 
15  public :
19  cscmap () throw (oracle::occi::SQLException);
23  ~cscmap () throw (oracle::occi::SQLException);
24 
25 /* Method 'crate0_chamber' returns for a given logical crate
26 | number 'crate0' (values 0-59) and DMB number 'dmb'
27 | (1-5,7-10; for station 4 (no ring 2) DMB No 1-3)
28 | chamber identifiers: 'chamber_id' is a string like 'ME+2/2/27'
29 | and 'chamber_num' - a corresponding numeric identifier:
30 | 'ME+2/2/27' => 220122270. Digits from left to right mean:
31 | 2 - Muon system, 2 - CSC (1=DT,3=RPC), 0 - to separate from further
32 | digits, 1 - +Endcap (2 - -Endcap), 2 - station number, 2 - ring number,
33 | 27 - chamber number, 0 - digit reserved for layer number (=0 for
34 | the whole chamber). 'sector' - returns trigger sector number.
35 | If 'chamber_num' and 'sector' return -100, it means that 'crate0'
36 | is outside the permitted range; -10 means that 'dmb' is outside
37 | the permitted range.
38 */
39  void crate0_chamber (int crate0, int dmb, std::string *chamber_id,
40  int *chamber_num, int *sector,
41  int *first_strip_index, int *strips_per_layer,
42  int *chamber_index);
43 /* Method 'crate_chamber' returns similar to previous information,
44 | but for physical (installed) 'crate' number. By now (2005/11/16)
45 | only 2 crates are installed (0 and 1).
46 | -1 returned means that infor mation for non-installed crate is requested.
47 */
48  void crate_chamber (int crate, int dmb, std::string *chamber_id,
49  int *chamber_num, int *sector,
50  int *first_strip_index, int *strips_per_layer,
51  int *chamber_index);
52 /* Method 'chamber_crate' returns information for a given chamber,
53 | 'chamber_id', (like 'ME+2/2/27'). 'crate' - physical (installed)
54 | crate number (-1 means that crate for the given chamber is not
55 | installed), 'dmb' - DMB number (1-5,7-10), 'sector' - trigger sector
56 | number, 'chamber_num' - numeric chamber identifier (see above),
57 | 'crate0' - logical crate number.
58 | -100 returned means that 'chamber_id' format is incorrect.
59 */
60  void chamber_crate (std::string chamber_id, int *crate, int *dmb,
61  int *sector, int *chamber_num, int *crate0,
62  int *first_strip_index, int *strips_per_layer,
63  int *chamber_index);
64 
65 }; // end of class cscmap
66 #endif
oracle::occi::Environment * env
Definition: CSCMap.h:12
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
Definition: CSCMap.h:8
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:84
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:28
oracle::occi::Connection * con
Definition: CSCMap.h:13
cscmap()
Definition: CSCMap.cc:7
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:56