CMS 3D CMS Logo

CSCMap1Read.cc
Go to the documentation of this file.
2 #include <string>
3 
6 
9  cscmap1 *map = new cscmap1();
10  std::cout << " Connected cscmap ... " << std::endl;
11 
12  // Get information by chamber ID.
13  int chamberid = 122090;
14  std::cout << std::endl;
15  std::cout << std::endl;
16  std::cout << "Method chamberid, input: chamberID " << chamberid << std::endl;
17  std::cout << std::endl;
18  map->chamber(chamberid, &item);
19 
20  std::cout << "cscLabel "
21  << " " << item.chamberLabel << std::endl;
22  std::cout << "cscId "
23  << " " << item.chamberId << std::endl;
24  std::cout << "endcap "
25  << " " << item.endcap << std::endl;
26  std::cout << "station "
27  << " " << item.station << std::endl;
28  std::cout << "ring "
29  << " " << item.ring << std::endl;
30  std::cout << "chamber "
31  << " " << item.chamber << std::endl;
32  std::cout << "cscIndex "
33  << " " << item.cscIndex << std::endl;
34  std::cout << "layerIndex "
35  << " " << item.layerIndex << std::endl;
36  std::cout << "stripIndex "
37  << " " << item.stripIndex << std::endl;
38  std::cout << "anodeIndex "
39  << " " << item.anodeIndex << std::endl;
40  std::cout << "strips "
41  << " " << item.strips << std::endl;
42  std::cout << "anodes "
43  << " " << item.anodes << std::endl;
44  std::cout << "crateLabel "
45  << " " << item.crateLabel << std::endl;
46  std::cout << "crateid "
47  << " " << item.crateid << std::endl;
48  std::cout << "sector "
49  << " " << item.sector << std::endl;
50  std::cout << "trig_sector "
51  << " " << item.trig_sector << std::endl;
52  std::cout << "dmb "
53  << " " << item.dmb << std::endl;
54  std::cout << "cscid "
55  << " " << item.cscid << std::endl;
56  std::cout << "ddu "
57  << " " << item.ddu << std::endl;
58  std::cout << "ddu_input "
59  << " " << item.ddu_input << std::endl;
60  std::cout << "slink "
61  << " " << item.slink << std::endl;
62  std::cout << "fed_crate "
63  << " " << item.fed_crate << std::endl;
64  std::cout << "ddu_slot "
65  << " " << item.ddu_slot << std::endl;
66  std::cout << "dcc_fifo "
67  << " " << item.dcc_fifo << std::endl;
68  std::cout << "fiber_crate "
69  << " " << item.fiber_crate << std::endl;
70  std::cout << "fiber_pos "
71  << " " << item.fiber_pos << std::endl;
72  std::cout << "fiber_socket "
73  << " " << item.fiber_socket << std::endl;
74 
75  // Get information by crateid and dmb.
76  int crateid = 33;
77  int dmb = 7;
78  std::cout << std::endl;
79  std::cout << std::endl;
80  std::cout << "Method cratedmb, input: crateid " << crateid << ", dmb " << dmb << std::endl;
81  std::cout << std::endl;
82  map->cratedmb(crateid, dmb, &item);
83 
84  std::cout << "cscLabel "
85  << " " << item.chamberLabel << std::endl;
86  std::cout << "cscId "
87  << " " << item.chamberId << std::endl;
88  std::cout << "endcap "
89  << " " << item.endcap << std::endl;
90  std::cout << "station "
91  << " " << item.station << std::endl;
92  std::cout << "ring "
93  << " " << item.ring << std::endl;
94  std::cout << "chamber "
95  << " " << item.chamber << std::endl;
96  std::cout << "cscIndex "
97  << " " << item.cscIndex << std::endl;
98  std::cout << "layerIndex "
99  << " " << item.layerIndex << std::endl;
100  std::cout << "stripIndex "
101  << " " << item.stripIndex << std::endl;
102  std::cout << "anodeIndex "
103  << " " << item.anodeIndex << std::endl;
104  std::cout << "strips "
105  << " " << item.strips << std::endl;
106  std::cout << "anodes "
107  << " " << item.anodes << std::endl;
108  std::cout << "crateLabel "
109  << " " << item.crateLabel << std::endl;
110  std::cout << "crateid "
111  << " " << item.crateid << std::endl;
112  std::cout << "sector "
113  << " " << item.sector << std::endl;
114  std::cout << "trig_sector "
115  << " " << item.trig_sector << std::endl;
116  std::cout << "dmb "
117  << " " << item.dmb << std::endl;
118  std::cout << "cscid "
119  << " " << item.cscid << std::endl;
120  std::cout << "ddu "
121  << " " << item.ddu << std::endl;
122  std::cout << "ddu_input "
123  << " " << item.ddu_input << std::endl;
124  std::cout << "slink "
125  << " " << item.slink << std::endl;
126  std::cout << "fed_crate "
127  << " " << item.fed_crate << std::endl;
128  std::cout << "ddu_slot "
129  << " " << item.ddu_slot << std::endl;
130  std::cout << "dcc_fifo "
131  << " " << item.dcc_fifo << std::endl;
132  std::cout << "fiber_crate "
133  << " " << item.fiber_crate << std::endl;
134  std::cout << "fiber_pos "
135  << " " << item.fiber_pos << std::endl;
136  std::cout << "fiber_socket "
137  << " " << item.fiber_socket << std::endl;
138 
139  // Get information by rui and ddu_input.
140  int rui = 2;
141  int ddu_input = 2;
142  std::cout << std::endl;
143  std::cout << std::endl;
144  std::cout << "Method ruiddu, input: rui " << rui << ", ddu_input " << ddu_input << std::endl;
145  std::cout << std::endl;
146  map->ruiddu(rui, ddu_input, &item);
147 
148  std::cout << "cscLabel "
149  << " " << item.chamberLabel << std::endl;
150  std::cout << "cscId "
151  << " " << item.chamberId << std::endl;
152  std::cout << "endcap "
153  << " " << item.endcap << std::endl;
154  std::cout << "station "
155  << " " << item.station << std::endl;
156  std::cout << "ring "
157  << " " << item.ring << std::endl;
158  std::cout << "chamber "
159  << " " << item.chamber << std::endl;
160  std::cout << "cscIndex "
161  << " " << item.cscIndex << std::endl;
162  std::cout << "layerIndex "
163  << " " << item.layerIndex << std::endl;
164  std::cout << "stripIndex "
165  << " " << item.stripIndex << std::endl;
166  std::cout << "anodeIndex "
167  << " " << item.anodeIndex << std::endl;
168  std::cout << "strips "
169  << " " << item.strips << std::endl;
170  std::cout << "anodes "
171  << " " << item.anodes << std::endl;
172  std::cout << "crateLabel "
173  << " " << item.crateLabel << std::endl;
174  std::cout << "crateid "
175  << " " << item.crateid << std::endl;
176  std::cout << "sector "
177  << " " << item.sector << std::endl;
178  std::cout << "trig_sector "
179  << " " << item.trig_sector << std::endl;
180  std::cout << "dmb "
181  << " " << item.dmb << std::endl;
182  std::cout << "cscid "
183  << " " << item.cscid << std::endl;
184  std::cout << "ddu "
185  << " " << item.ddu << std::endl;
186  std::cout << "ddu_input "
187  << " " << item.ddu_input << std::endl;
188  std::cout << "slink "
189  << " " << item.slink << std::endl;
190  std::cout << "fed_crate "
191  << " " << item.fed_crate << std::endl;
192  std::cout << "ddu_slot "
193  << " " << item.ddu_slot << std::endl;
194  std::cout << "dcc_fifo "
195  << " " << item.dcc_fifo << std::endl;
196  std::cout << "fiber_crate "
197  << " " << item.fiber_crate << std::endl;
198  std::cout << "fiber_pos "
199  << " " << item.fiber_pos << std::endl;
200  std::cout << "fiber_socket "
201  << " " << item.fiber_socket << std::endl;
202 }
204  std::cout << "Here is the start" << std::endl;
205  std::cout << "-----------------" << std::endl;
206 }
208  std::cout << "---------------" << std::endl;
209  std::cout << "Here is the end" << std::endl;
210 }
CSCMap1Read::CSCMap1Read
CSCMap1Read(const edm::ParameterSet &)
Definition: CSCMap1Read.cc:4
gather_cfg.cout
cout
Definition: gather_cfg.py:144
CSCMap1Read.h
CSCMapItem::MapItem
Definition: CSCMapItem.h:13
edm::ParameterSet
Definition: ParameterSet.h:36
cscmap1
Definition: CSCMap1.h:9
CSCMap1Read::~CSCMap1Read
~CSCMap1Read() override
Definition: CSCMap1Read.cc:5
CSCMap1Read::endJob
void endJob() override
Definition: CSCMap1Read.cc:207
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
edm::EventSetup
Definition: EventSetup.h:57
CSCMap1Read::beginJob
void beginJob() override
Definition: CSCMap1Read.cc:203
genParticles_cff.map
map
Definition: genParticles_cff.py:11
CSCMap1Read::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCMap1Read.cc:7
edm::Event
Definition: Event.h:73