CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
CSCMap1Read Class Reference

#include <CSCMap1Read.h>

Inheritance diagram for CSCMap1Read:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 CSCMap1Read (const edm::ParameterSet &)
 
 ~CSCMap1Read () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 18 of file CSCMap1Read.h.

Constructor & Destructor Documentation

◆ CSCMap1Read()

CSCMap1Read::CSCMap1Read ( const edm::ParameterSet )
explicit

Definition at line 4 of file CSCMap1Read.cc.

4 {}

◆ ~CSCMap1Read()

CSCMap1Read::~CSCMap1Read ( )
override

Definition at line 5 of file CSCMap1Read.cc.

5 {}

Member Function Documentation

◆ analyze()

void CSCMap1Read::analyze ( const edm::Event ,
const edm::EventSetup  
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 7 of file CSCMap1Read.cc.

7  {
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 }

References gather_cfg::cout, B2GTnPMonitor_cfi::item, and genParticles_cff::map.

◆ beginJob()

void CSCMap1Read::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 203 of file CSCMap1Read.cc.

203  {
204  std::cout << "Here is the start" << std::endl;
205  std::cout << "-----------------" << std::endl;
206 }

References gather_cfg::cout.

◆ endJob()

void CSCMap1Read::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 207 of file CSCMap1Read.cc.

207  {
208  std::cout << "---------------" << std::endl;
209  std::cout << "Here is the end" << std::endl;
210 }

References gather_cfg::cout.

gather_cfg.cout
cout
Definition: gather_cfg.py:144
CSCMapItem::MapItem
Definition: CSCMapItem.h:13
cscmap1
Definition: CSCMap1.h:9
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
genParticles_cff.map
map
Definition: genParticles_cff.py:11