14 std::cout <<
"L1DummyProducer::L1DummyProducer...\n" << std::flush;
16 std::vector<unsigned int> compColls
20 m_doSys[
i] = compColls[
i];
23 std::cout <<
"[L1DummyProducer] do sys? ";
35 for(
int j=0; j<5; j++)
38 CollInstName[
GCT][0]+=
"isoEm" ;
39 CollInstName[
GCT][1]+=
"nonIsoEm";
40 CollInstName[
GCT][2]+=
"cenJets" ;
41 CollInstName[
GCT][3]+=
"forJets" ;
42 CollInstName[
GCT][4]+=
"tauJets" ;
43 CollInstName[
DTF][0]+=
"DT" ;
44 CollInstName[
DTF][1]+=
"DTTF" ;
45 CollInstName[
CTF][0]+=
"CSC" ;
46 CollInstName[
CTF][1]+=
"" ;
47 CollInstName[
RPC][0]+=
"RPCb" ;
48 CollInstName[
RPC][1]+=
"RPCf" ;
51 for(
int j=0; j<5; j++)
52 instName[
i][j] = CollInstName[
i][j];
55 std::cout <<
"[L1DummyProducer] instName:\n";
57 for(
int j=0; j<5; j++)
58 if(instName[
i][j] !=
"")
60 << instName[
i][j] << std::endl;
65 assert(
ETP==0); assert(
HTP==1); assert(
RCT== 2); assert(
GCT== 3);
66 assert(
DTP==4); assert(
DTF==5); assert(
CTP== 6); assert(
CTF== 7);
67 assert(
RPC==8); assert(
LTC==9); assert(
GMT==10); assert(
GLT==11);
70 if(m_doSys[
ETP]) produces<EcalTrigPrimDigiCollection> (instName[
ETP][0]);
71 if(m_doSys[
HTP]) produces<HcalTrigPrimDigiCollection> (instName[
HTP][0]);
72 if(m_doSys[
RCT]) produces<L1CaloEmCollection> (instName[
RCT][0]);
73 if(m_doSys[RCT]) produces<L1CaloRegionCollection> (instName[
RCT][0]);
74 if(m_doSys[
GCT]) produces<L1GctEmCandCollection> (instName[
GCT][0]);
75 if(m_doSys[GCT]) produces<L1GctEmCandCollection> (instName[
GCT][1]);
76 if(m_doSys[GCT]) produces<L1GctJetCandCollection> (instName[
GCT][2]);
77 if(m_doSys[GCT]) produces<L1GctJetCandCollection> (instName[
GCT][3]);
78 if(m_doSys[GCT]) produces<L1GctJetCandCollection> (instName[
GCT][4]);
79 if(m_doSys[
DTP]) produces<L1MuDTChambPhContainer> (instName[
DTP][0]);
80 if(m_doSys[DTP]) produces<L1MuDTChambThContainer> (instName[
DTP][0]);
81 if(m_doSys[
DTF]) produces<L1MuRegionalCandCollection> (instName[
DTF][0]);
82 if(m_doSys[DTF]) produces<L1MuDTTrackContainer> (instName[
DTF][1]);
83 if(m_doSys[
CTP]) produces<CSCCorrelatedLCTDigiCollection> (instName[
CTP][0]);
84 if(m_doSys[
CTF]) produces<L1MuRegionalCandCollection> (instName[
CTF][0]);
85 if(m_doSys[CTF]) produces<L1CSCTrackCollection> (instName[
CTF][1]);
86 if(m_doSys[
RPC]) produces<L1MuRegionalCandCollection> (instName[
RPC][0]);
87 if(m_doSys[RPC]) produces<L1MuRegionalCandCollection> (instName[
RPC][1]);
88 if(m_doSys[
LTC]) produces<LTCDigiCollection> (instName[
LTC][0]);
89 if(m_doSys[
GMT]) produces<L1MuGMTCandCollection> (instName[
GMT][0]);
90 if(m_doSys[GMT]) produces<L1MuGMTReadoutCollection> (instName[
GMT][0]);
91 if(m_doSys[
GLT]) produces<L1GlobalTriggerReadoutRecord> (instName[
GLT][0]);
92 if(m_doSys[GLT]) produces<L1GlobalTriggerEvmReadoutRecord>(instName[
GLT][0]);
93 if(m_doSys[GLT]) produces<L1GlobalTriggerObjectMapRecord> (instName[
GLT][0]);
97 if(!rng.isAvailable()) {
99 <<
"L1DummyProducer requires the RandomNumberGeneratorService\n" 100 "which is not present in the configuration file. You must add the service\n" 101 "in the configuration file or remove the modules that require it.";
120 std::cout <<
"L1DummyProducer::produce...\n" << std::flush;
149 if(m_doSys[
ETP]) SimpleDigi(engine, ecal_tp_data );
150 if(m_doSys[
HTP]) SimpleDigi(engine, hcal_tp_data );
151 if(m_doSys[
RCT]) SimpleDigi(engine, rct_em_data );
152 if(m_doSys[RCT]) SimpleDigi(engine, rct_rgn_data );
153 if(m_doSys[
GCT]) SimpleDigi(engine, gct_isolaem_data,0);
154 if(m_doSys[GCT]) SimpleDigi(engine, gct_noisoem_data,1);
155 if(m_doSys[GCT]) SimpleDigi(engine, gct_cenjets_data,0);
156 if(m_doSys[GCT]) SimpleDigi(engine, gct_forjets_data,1);
157 if(m_doSys[GCT]) SimpleDigi(engine, gct_taujets_data,2);
158 if(m_doSys[
DTP]) SimpleDigi(engine, dtp_ph_data );
159 if(m_doSys[DTP]) SimpleDigi(engine, dtp_th_data );
160 if(m_doSys[
DTF]) SimpleDigi(engine, dtf_data,0);
161 if(m_doSys[DTF]) SimpleDigi(engine, dtf_trk_data );
162 if(m_doSys[
CTP]) SimpleDigi(engine, ctp_data );
163 if(m_doSys[
CTF]) SimpleDigi(engine, ctf_data,2);
164 if(m_doSys[CTF]) SimpleDigi(engine, ctf_trk_data );
165 if(m_doSys[
RPC]) SimpleDigi(engine, rpc_cen_data,1);
166 if(m_doSys[RPC]) SimpleDigi(engine, rpc_for_data,3);
167 if(m_doSys[
LTC]) SimpleDigi(engine, ltc_data );
168 if(m_doSys[
GMT]) SimpleDigi(engine, gmt_data );
169 if(m_doSys[GMT]) SimpleDigi(engine, gmt_rdt_data );
170 if(m_doSys[
GLT]) SimpleDigi(engine, glt_rdt_data );
171 if(m_doSys[GLT]) SimpleDigi(engine, glt_evm_data );
172 if(m_doSys[GLT]) SimpleDigi(engine, glt_obj_data );
175 if(m_doSys[ETP]) iEvent.
put(
std::move(ecal_tp_data),instName[ETP][0]);
176 if(m_doSys[HTP]) iEvent.
put(
std::move(hcal_tp_data),instName[HTP][0]);
177 if(m_doSys[RCT]) iEvent.
put(
std::move(rct_em_data),instName[RCT][0]);
178 if(m_doSys[RCT]) iEvent.
put(
std::move(rct_rgn_data),instName[RCT][0]);
179 if(m_doSys[GCT]) iEvent.
put(
std::move(gct_isolaem_data),instName[GCT][0]);
180 if(m_doSys[GCT]) iEvent.
put(
std::move(gct_noisoem_data),instName[GCT][1]);
181 if(m_doSys[GCT]) iEvent.
put(
std::move(gct_cenjets_data),instName[GCT][2]);
182 if(m_doSys[GCT]) iEvent.
put(
std::move(gct_forjets_data),instName[GCT][3]);
183 if(m_doSys[GCT]) iEvent.
put(
std::move(gct_taujets_data),instName[GCT][4]);
184 if(m_doSys[DTP]) iEvent.
put(
std::move(dtp_ph_data),instName[DTP][0]);
185 if(m_doSys[DTP]) iEvent.
put(
std::move(dtp_th_data),instName[DTP][0]);
186 if(m_doSys[DTF]) iEvent.
put(
std::move(dtf_data),instName[DTF][0]);
187 if(m_doSys[DTF]) iEvent.
put(
std::move(dtf_trk_data),instName[DTF][1]);
188 if(m_doSys[CTP]) iEvent.
put(
std::move(ctp_data),instName[CTP][0]);
189 if(m_doSys[CTF]) iEvent.
put(
std::move(ctf_data),instName[CTF][0]);
190 if(m_doSys[CTF]) iEvent.
put(
std::move(ctf_trk_data),instName[CTF][1]);
191 if(m_doSys[RPC]) iEvent.
put(
std::move(rpc_cen_data),instName[RPC][0]);
192 if(m_doSys[RPC]) iEvent.
put(
std::move(rpc_for_data),instName[RPC][1]);
193 if(m_doSys[LTC]) iEvent.
put(
std::move(ltc_data),instName[LTC][0]);
194 if(m_doSys[GMT]) iEvent.
put(
std::move(gmt_data),instName[GMT][0]);
195 if(m_doSys[GMT]) iEvent.
put(
std::move(gmt_rdt_data),instName[GMT][0]);
196 if(m_doSys[GLT]) iEvent.
put(
std::move(glt_rdt_data),instName[GLT][0]);
197 if(m_doSys[GLT]) iEvent.
put(
std::move(glt_evm_data),instName[GLT][0]);
198 if(m_doSys[GLT]) iEvent.
put(
std::move(glt_obj_data),instName[GLT][0]);
203 std::cout <<
"L1DummyProducer::produce end.\n" << std::flush;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1CaloEmCand > L1CaloEmCollection
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< L1CSCTrack > L1CSCTrackCollection
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
std::vector< L1GctJetCand > L1GctJetCandCollection
L1DummyProducer(const edm::ParameterSet &)
std::vector< LTCDigi > LTCDigiCollection
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
virtual void produce(edm::Event &, const edm::EventSetup &)
const std::string SystLabel[DEnsys]
StreamID streamID() const
std::vector< L1CaloRegion > L1CaloRegionCollection
std::vector< L1MuGMTCand > L1MuGMTCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection