CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCMap1Read.cc
Go to the documentation of this file.
2 #include "string"
3 
6 
8 {
9 
11  cscmap1 *map = new cscmap1 ();
12  std::cout << " Connected cscmap ... " << std::endl;
13 
14  // Get information by chamber ID.
15  int chamberid = 122090;
16  std::cout<<std::endl;
17  std::cout<<std::endl;
18  std::cout<<"Method chamberid, input: chamberID "<<chamberid<<std::endl;
19  std::cout<<std::endl;
20  map->chamber(chamberid,&item);
21 
22  std::cout<<"cscLabel "<<" "<<item.chamberLabel<<std::endl;
23  std::cout<<"cscId "<<" "<<item.chamberId<<std::endl;
24  std::cout<<"endcap "<<" "<<item.endcap<<std::endl;
25  std::cout<<"station "<<" "<<item.station<<std::endl;
26  std::cout<<"ring "<<" "<<item.ring<<std::endl;
27  std::cout<<"chamber "<<" "<<item.chamber<<std::endl;
28  std::cout<<"cscIndex "<<" "<<item.cscIndex<<std::endl;
29  std::cout<<"layerIndex "<<" "<<item.layerIndex<<std::endl;
30  std::cout<<"stripIndex "<<" "<<item.stripIndex<<std::endl;
31  std::cout<<"anodeIndex "<<" "<<item.anodeIndex<<std::endl;
32  std::cout<<"strips "<<" "<<item.strips<<std::endl;
33  std::cout<<"anodes "<<" "<<item.anodes<<std::endl;
34  std::cout<<"crateLabel "<<" "<<item.crateLabel<<std::endl;
35  std::cout<<"crateid "<<" "<<item.crateid<<std::endl;
36  std::cout<<"sector "<<" "<<item.sector<<std::endl;
37  std::cout<<"trig_sector "<<" "<<item.trig_sector<<std::endl;
38  std::cout<<"dmb "<<" "<<item.dmb<<std::endl;
39  std::cout<<"cscid "<<" "<<item.cscid<<std::endl;
40  std::cout<<"ddu "<<" "<<item.ddu<<std::endl;
41  std::cout<<"ddu_input "<<" "<<item.ddu_input<<std::endl;
42  std::cout<<"slink "<<" "<<item.slink<<std::endl;
43  std::cout<<"fed_crate "<<" "<<item.fed_crate<<std::endl;
44  std::cout<<"ddu_slot "<<" "<<item.ddu_slot<<std::endl;
45  std::cout<<"dcc_fifo "<<" "<<item.dcc_fifo<<std::endl;
46  std::cout<<"fiber_crate "<<" "<<item.fiber_crate<<std::endl;
47  std::cout<<"fiber_pos "<<" "<<item.fiber_pos<<std::endl;
48  std::cout<<"fiber_socket "<<" "<<item.fiber_socket<<std::endl;
49 
50 
51  // Get information by crateid and dmb.
52  int crateid = 33;
53  int dmb = 7;
54  std::cout<<std::endl;
55  std::cout<<std::endl;
56  std::cout<<"Method cratedmb, input: crateid "<<crateid<<", dmb "<<dmb<<std::endl;
57  std::cout<<std::endl;
58  map->cratedmb(crateid,dmb,&item);
59 
60  std::cout<<"cscLabel "<<" "<<item.chamberLabel<<std::endl;
61  std::cout<<"cscId "<<" "<<item.chamberId<<std::endl;
62  std::cout<<"endcap "<<" "<<item.endcap<<std::endl;
63  std::cout<<"station "<<" "<<item.station<<std::endl;
64  std::cout<<"ring "<<" "<<item.ring<<std::endl;
65  std::cout<<"chamber "<<" "<<item.chamber<<std::endl;
66  std::cout<<"cscIndex "<<" "<<item.cscIndex<<std::endl;
67  std::cout<<"layerIndex "<<" "<<item.layerIndex<<std::endl;
68  std::cout<<"stripIndex "<<" "<<item.stripIndex<<std::endl;
69  std::cout<<"anodeIndex "<<" "<<item.anodeIndex<<std::endl;
70  std::cout<<"strips "<<" "<<item.strips<<std::endl;
71  std::cout<<"anodes "<<" "<<item.anodes<<std::endl;
72  std::cout<<"crateLabel "<<" "<<item.crateLabel<<std::endl;
73  std::cout<<"crateid "<<" "<<item.crateid<<std::endl;
74  std::cout<<"sector "<<" "<<item.sector<<std::endl;
75  std::cout<<"trig_sector "<<" "<<item.trig_sector<<std::endl;
76  std::cout<<"dmb "<<" "<<item.dmb<<std::endl;
77  std::cout<<"cscid "<<" "<<item.cscid<<std::endl;
78  std::cout<<"ddu "<<" "<<item.ddu<<std::endl;
79  std::cout<<"ddu_input "<<" "<<item.ddu_input<<std::endl;
80  std::cout<<"slink "<<" "<<item.slink<<std::endl;
81  std::cout<<"fed_crate "<<" "<<item.fed_crate<<std::endl;
82  std::cout<<"ddu_slot "<<" "<<item.ddu_slot<<std::endl;
83  std::cout<<"dcc_fifo "<<" "<<item.dcc_fifo<<std::endl;
84  std::cout<<"fiber_crate "<<" "<<item.fiber_crate<<std::endl;
85  std::cout<<"fiber_pos "<<" "<<item.fiber_pos<<std::endl;
86  std::cout<<"fiber_socket "<<" "<<item.fiber_socket<<std::endl;
87 
88 
89  // Get information by rui and ddu_input.
90  int rui = 2;
91  int ddu_input = 2;
92  std::cout<<std::endl;
93  std::cout<<std::endl;
94  std::cout<<"Method ruiddu, input: rui "<<rui<<", ddu_input "<<ddu_input<<std::endl;
95  std::cout<<std::endl;
96  map->ruiddu(rui,ddu_input,&item);
97 
98  std::cout<<"cscLabel "<<" "<<item.chamberLabel<<std::endl;
99  std::cout<<"cscId "<<" "<<item.chamberId<<std::endl;
100  std::cout<<"endcap "<<" "<<item.endcap<<std::endl;
101  std::cout<<"station "<<" "<<item.station<<std::endl;
102  std::cout<<"ring "<<" "<<item.ring<<std::endl;
103  std::cout<<"chamber "<<" "<<item.chamber<<std::endl;
104  std::cout<<"cscIndex "<<" "<<item.cscIndex<<std::endl;
105  std::cout<<"layerIndex "<<" "<<item.layerIndex<<std::endl;
106  std::cout<<"stripIndex "<<" "<<item.stripIndex<<std::endl;
107  std::cout<<"anodeIndex "<<" "<<item.anodeIndex<<std::endl;
108  std::cout<<"strips "<<" "<<item.strips<<std::endl;
109  std::cout<<"anodes "<<" "<<item.anodes<<std::endl;
110  std::cout<<"crateLabel "<<" "<<item.crateLabel<<std::endl;
111  std::cout<<"crateid "<<" "<<item.crateid<<std::endl;
112  std::cout<<"sector "<<" "<<item.sector<<std::endl;
113  std::cout<<"trig_sector "<<" "<<item.trig_sector<<std::endl;
114  std::cout<<"dmb "<<" "<<item.dmb<<std::endl;
115  std::cout<<"cscid "<<" "<<item.cscid<<std::endl;
116  std::cout<<"ddu "<<" "<<item.ddu<<std::endl;
117  std::cout<<"ddu_input "<<" "<<item.ddu_input<<std::endl;
118  std::cout<<"slink "<<" "<<item.slink<<std::endl;
119  std::cout<<"fed_crate "<<" "<<item.fed_crate<<std::endl;
120  std::cout<<"ddu_slot "<<" "<<item.ddu_slot<<std::endl;
121  std::cout<<"dcc_fifo "<<" "<<item.dcc_fifo<<std::endl;
122  std::cout<<"fiber_crate "<<" "<<item.fiber_crate<<std::endl;
123  std::cout<<"fiber_pos "<<" "<<item.fiber_pos<<std::endl;
124  std::cout<<"fiber_socket "<<" "<<item.fiber_socket<<std::endl;
125 }
127  std::cout << "Here is the start" << std::endl;
128  std::cout << "-----------------" << std::endl;
129 }
131  std::cout << "---------------" << std::endl;
132  std::cout << "Here is the end" << std::endl;
133 }
CSCMap1Read(const edm::ParameterSet &)
Definition: CSCMap1Read.cc:4
void ruiddu(int rui, int ddu_input, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:211
std::string fiber_socket
Definition: CSCMapItem.h:38
std::string dcc_fifo
Definition: CSCMapItem.h:35
void chamber(int chamberid, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:29
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: CSCMap1Read.cc:7
dictionary map
Definition: Association.py:196
std::string crateLabel
Definition: CSCMapItem.h:24
virtual void beginJob()
Definition: CSCMap1Read.cc:126
std::string chamberLabel
Definition: CSCMapItem.h:12
Definition: CSCMap1.h:9
tuple cout
Definition: gather_cfg.py:121
virtual void endJob()
Definition: CSCMap1Read.cc:130
void cratedmb(int crate, int dmb, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:121