CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
CSCMap1Read Class Reference
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
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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 12 of file CSCMap1Read.cc.

Constructor & Destructor Documentation

◆ CSCMap1Read()

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

Definition at line 26 of file CSCMap1Read.cc.

26 {}

◆ ~CSCMap1Read()

CSCMap1Read::~CSCMap1Read ( )
override

Definition at line 27 of file CSCMap1Read.cc.

27 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 29 of file CSCMap1Read.cc.

29  {
31  cscmap1 *map = new cscmap1();
32  std::cout << " Connected cscmap ... " << std::endl;
33 
34  // Get information by chamber ID.
35  int chamberid = 122090;
36  std::cout << std::endl;
37  std::cout << std::endl;
38  std::cout << "Method chamberid, input: chamberID " << chamberid << std::endl;
39  std::cout << std::endl;
40  map->chamber(chamberid, &item);
41 
42  std::cout << "cscLabel "
43  << " " << item.chamberLabel << std::endl;
44  std::cout << "cscId "
45  << " " << item.chamberId << std::endl;
46  std::cout << "endcap "
47  << " " << item.endcap << std::endl;
48  std::cout << "station "
49  << " " << item.station << std::endl;
50  std::cout << "ring "
51  << " " << item.ring << std::endl;
52  std::cout << "chamber "
53  << " " << item.chamber << std::endl;
54  std::cout << "cscIndex "
55  << " " << item.cscIndex << std::endl;
56  std::cout << "layerIndex "
57  << " " << item.layerIndex << std::endl;
58  std::cout << "stripIndex "
59  << " " << item.stripIndex << std::endl;
60  std::cout << "anodeIndex "
61  << " " << item.anodeIndex << std::endl;
62  std::cout << "strips "
63  << " " << item.strips << std::endl;
64  std::cout << "anodes "
65  << " " << item.anodes << std::endl;
66  std::cout << "crateLabel "
67  << " " << item.crateLabel << std::endl;
68  std::cout << "crateid "
69  << " " << item.crateid << std::endl;
70  std::cout << "sector "
71  << " " << item.sector << std::endl;
72  std::cout << "trig_sector "
73  << " " << item.trig_sector << std::endl;
74  std::cout << "dmb "
75  << " " << item.dmb << std::endl;
76  std::cout << "cscid "
77  << " " << item.cscid << std::endl;
78  std::cout << "ddu "
79  << " " << item.ddu << std::endl;
80  std::cout << "ddu_input "
81  << " " << item.ddu_input << std::endl;
82  std::cout << "slink "
83  << " " << item.slink << std::endl;
84  std::cout << "fed_crate "
85  << " " << item.fed_crate << std::endl;
86  std::cout << "ddu_slot "
87  << " " << item.ddu_slot << std::endl;
88  std::cout << "dcc_fifo "
89  << " " << item.dcc_fifo << std::endl;
90  std::cout << "fiber_crate "
91  << " " << item.fiber_crate << std::endl;
92  std::cout << "fiber_pos "
93  << " " << item.fiber_pos << std::endl;
94  std::cout << "fiber_socket "
95  << " " << item.fiber_socket << std::endl;
96 
97  // Get information by crateid and dmb.
98  int crateid = 33;
99  int dmb = 7;
100  std::cout << std::endl;
101  std::cout << std::endl;
102  std::cout << "Method cratedmb, input: crateid " << crateid << ", dmb " << dmb << std::endl;
103  std::cout << std::endl;
104  map->cratedmb(crateid, dmb, &item);
105 
106  std::cout << "cscLabel "
107  << " " << item.chamberLabel << std::endl;
108  std::cout << "cscId "
109  << " " << item.chamberId << std::endl;
110  std::cout << "endcap "
111  << " " << item.endcap << std::endl;
112  std::cout << "station "
113  << " " << item.station << std::endl;
114  std::cout << "ring "
115  << " " << item.ring << std::endl;
116  std::cout << "chamber "
117  << " " << item.chamber << std::endl;
118  std::cout << "cscIndex "
119  << " " << item.cscIndex << std::endl;
120  std::cout << "layerIndex "
121  << " " << item.layerIndex << std::endl;
122  std::cout << "stripIndex "
123  << " " << item.stripIndex << std::endl;
124  std::cout << "anodeIndex "
125  << " " << item.anodeIndex << std::endl;
126  std::cout << "strips "
127  << " " << item.strips << std::endl;
128  std::cout << "anodes "
129  << " " << item.anodes << std::endl;
130  std::cout << "crateLabel "
131  << " " << item.crateLabel << std::endl;
132  std::cout << "crateid "
133  << " " << item.crateid << std::endl;
134  std::cout << "sector "
135  << " " << item.sector << std::endl;
136  std::cout << "trig_sector "
137  << " " << item.trig_sector << std::endl;
138  std::cout << "dmb "
139  << " " << item.dmb << std::endl;
140  std::cout << "cscid "
141  << " " << item.cscid << std::endl;
142  std::cout << "ddu "
143  << " " << item.ddu << std::endl;
144  std::cout << "ddu_input "
145  << " " << item.ddu_input << std::endl;
146  std::cout << "slink "
147  << " " << item.slink << std::endl;
148  std::cout << "fed_crate "
149  << " " << item.fed_crate << std::endl;
150  std::cout << "ddu_slot "
151  << " " << item.ddu_slot << std::endl;
152  std::cout << "dcc_fifo "
153  << " " << item.dcc_fifo << std::endl;
154  std::cout << "fiber_crate "
155  << " " << item.fiber_crate << std::endl;
156  std::cout << "fiber_pos "
157  << " " << item.fiber_pos << std::endl;
158  std::cout << "fiber_socket "
159  << " " << item.fiber_socket << std::endl;
160 
161  // Get information by rui and ddu_input.
162  int rui = 2;
163  int ddu_input = 2;
164  std::cout << std::endl;
165  std::cout << std::endl;
166  std::cout << "Method ruiddu, input: rui " << rui << ", ddu_input " << ddu_input << std::endl;
167  std::cout << std::endl;
168  map->ruiddu(rui, ddu_input, &item);
169 
170  std::cout << "cscLabel "
171  << " " << item.chamberLabel << std::endl;
172  std::cout << "cscId "
173  << " " << item.chamberId << std::endl;
174  std::cout << "endcap "
175  << " " << item.endcap << std::endl;
176  std::cout << "station "
177  << " " << item.station << std::endl;
178  std::cout << "ring "
179  << " " << item.ring << std::endl;
180  std::cout << "chamber "
181  << " " << item.chamber << std::endl;
182  std::cout << "cscIndex "
183  << " " << item.cscIndex << std::endl;
184  std::cout << "layerIndex "
185  << " " << item.layerIndex << std::endl;
186  std::cout << "stripIndex "
187  << " " << item.stripIndex << std::endl;
188  std::cout << "anodeIndex "
189  << " " << item.anodeIndex << std::endl;
190  std::cout << "strips "
191  << " " << item.strips << std::endl;
192  std::cout << "anodes "
193  << " " << item.anodes << std::endl;
194  std::cout << "crateLabel "
195  << " " << item.crateLabel << std::endl;
196  std::cout << "crateid "
197  << " " << item.crateid << std::endl;
198  std::cout << "sector "
199  << " " << item.sector << std::endl;
200  std::cout << "trig_sector "
201  << " " << item.trig_sector << std::endl;
202  std::cout << "dmb "
203  << " " << item.dmb << std::endl;
204  std::cout << "cscid "
205  << " " << item.cscid << std::endl;
206  std::cout << "ddu "
207  << " " << item.ddu << std::endl;
208  std::cout << "ddu_input "
209  << " " << item.ddu_input << std::endl;
210  std::cout << "slink "
211  << " " << item.slink << std::endl;
212  std::cout << "fed_crate "
213  << " " << item.fed_crate << std::endl;
214  std::cout << "ddu_slot "
215  << " " << item.ddu_slot << std::endl;
216  std::cout << "dcc_fifo "
217  << " " << item.dcc_fifo << std::endl;
218  std::cout << "fiber_crate "
219  << " " << item.fiber_crate << std::endl;
220  std::cout << "fiber_pos "
221  << " " << item.fiber_pos << std::endl;
222  std::cout << "fiber_socket "
223  << " " << item.fiber_socket << std::endl;
224 }

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

◆ beginJob()

void CSCMap1Read::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 225 of file CSCMap1Read.cc.

225  {
226  std::cout << "Here is the start" << std::endl;
227  std::cout << "-----------------" << std::endl;
228 }

References gather_cfg::cout.

◆ endJob()

void CSCMap1Read::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 229 of file CSCMap1Read.cc.

229  {
230  std::cout << "---------------" << std::endl;
231  std::cout << "Here is the end" << std::endl;
232 }

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