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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, 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)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 18 of file CSCMap1Read.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file CSCMap1Read.cc.

4 {}
CSCMap1Read::~CSCMap1Read ( )
override

Definition at line 5 of file CSCMap1Read.cc.

5 {}

Member Function Documentation

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

Definition at line 7 of file CSCMap1Read.cc.

References CSCMapItem::MapItem::anodeIndex, CSCMapItem::MapItem::anodes, CSCMapItem::MapItem::chamber, cscmap1::chamber(), CSCMapItem::MapItem::chamberId, CSCMapItem::MapItem::chamberLabel, gather_cfg::cout, cscmap1::cratedmb(), CSCMapItem::MapItem::crateid, CSCMapItem::MapItem::crateLabel, CSCMapItem::MapItem::cscid, CSCMapItem::MapItem::cscIndex, CSCMapItem::MapItem::dcc_fifo, CSCMapItem::MapItem::ddu, CSCMapItem::MapItem::ddu_input, CSCMapItem::MapItem::ddu_slot, CSCMapItem::MapItem::dmb, CSCMapItem::MapItem::endcap, CSCMapItem::MapItem::fed_crate, CSCMapItem::MapItem::fiber_crate, CSCMapItem::MapItem::fiber_pos, CSCMapItem::MapItem::fiber_socket, CSCMapItem::MapItem::layerIndex, genParticles_cff::map, CSCMapItem::MapItem::ring, cscmap1::ruiddu(), CSCMapItem::MapItem::sector, CSCMapItem::MapItem::slink, CSCMapItem::MapItem::station, CSCMapItem::MapItem::stripIndex, CSCMapItem::MapItem::strips, and CSCMapItem::MapItem::trig_sector.

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 }
void ruiddu(int rui, int ddu_input, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:211
std::string fiber_socket
Definition: CSCMapItem.h:40
std::string dcc_fifo
Definition: CSCMapItem.h:37
void chamber(int chamberid, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:29
std::string crateLabel
Definition: CSCMapItem.h:26
std::string chamberLabel
Definition: CSCMapItem.h:14
Definition: CSCMap1.h:9
void cratedmb(int crate, int dmb, CSCMapItem::MapItem *item)
Definition: CSCMap1.cc:121
void CSCMap1Read::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 126 of file CSCMap1Read.cc.

References gather_cfg::cout.

126  {
127  std::cout << "Here is the start" << std::endl;
128  std::cout << "-----------------" << std::endl;
129 }
void CSCMap1Read::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 130 of file CSCMap1Read.cc.

References gather_cfg::cout.

130  {
131  std::cout << "---------------" << std::endl;
132  std::cout << "Here is the end" << std::endl;
133 }