#include <HLTrigger/HLTDummyCollections/src/HLTDummyCollections.cc>
Public Member Functions | |
HLTDummyCollections (const edm::ParameterSet &) | |
~HLTDummyCollections () | |
Private Member Functions | |
virtual void | beginJob (const edm::EventSetup &) |
virtual void | endJob () |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
std::string | action_ |
bool | doEcal_ |
bool | doEcalPreshower_ |
bool | doGCT_ |
bool | doHcal_ |
bool | doMuonCSCDigis_ |
bool | doMuonDTDigis_ |
bool | doObjectMap_ |
bool | doSiPixelDigis_ |
bool | doSiStrip_ |
std::string | ESdigiCollection_ |
bool | unpackZDC_ |
Implementation: <Notes on="" implementation>="">
Definition at line 68 of file HLTDummyCollections.cc.
HLTDummyCollections::HLTDummyCollections | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 109 of file HLTDummyCollections.cc.
References action_, doEcal_, doEcalPreshower_, doGCT_, doHcal_, doMuonCSCDigis_, doMuonDTDigis_, doObjectMap_, doSiPixelDigis_, doSiStrip_, ESdigiCollection_, edm::ParameterSet::getParameter(), and unpackZDC_.
00110 { 00111 action_ = iConfig.getParameter<std::string>("action"); 00112 00113 doEcal_ = ( action_ == "doEcal"); 00114 doHcal_ = ( action_ == "doHcal"); 00115 doEcalPreshower_ = ( action_ == "doEcalPreshower"); 00116 doMuonDTDigis_ = ( action_ == "doMuonDT"); 00117 doMuonCSCDigis_ = ( action_ == "doMuonCSC"); 00118 doSiPixelDigis_ = ( action_ == "doSiPixel"); 00119 doSiStrip_ = ( action_ == "doSiStrip"); 00120 doObjectMap_ = ( action_ == "doObjectMap"); 00121 doGCT_ = ( action_ == "doGCT"); 00122 00123 if (doHcal_) { 00124 unpackZDC_ = iConfig.getParameter<bool>("UnpackZDC"); 00125 } 00126 00127 if (doEcalPreshower_) { 00128 ESdigiCollection_ = iConfig.getParameter<string>("ESdigiCollection"); 00129 } 00130 00131 if (doEcal_) { 00132 // ECAL unpacking : 00133 produces<EBDigiCollection>("ebDigis"); 00134 produces<EEDigiCollection>("eeDigis"); 00135 produces<EcalTrigPrimDigiCollection>("EcalTriggerPrimitives"); 00136 } 00137 00138 if (doHcal_) { 00139 // HCAL unpacking 00140 produces<HBHEDigiCollection>(); 00141 produces<HFDigiCollection>(); 00142 produces<HODigiCollection>(); 00143 produces<HcalTrigPrimDigiCollection>(); 00144 produces<HOTrigPrimDigiCollection>(); 00145 if (unpackZDC_) { 00146 produces<ZDCDigiCollection>(); 00147 } 00148 } 00149 00150 if (doEcalPreshower_) { 00151 produces<ESDigiCollection>(); 00152 } 00153 00154 if (doMuonDTDigis_) { 00155 produces<DTDigiCollection>(); 00156 produces<DTLocalTriggerCollection>(); 00157 } 00158 00159 if (doMuonCSCDigis_) { 00160 produces<CSCWireDigiCollection>("MuonCSCWireDigi"); 00161 produces<CSCStripDigiCollection>("MuonCSCStripDigi"); 00162 produces<CSCALCTDigiCollection>("MuonCSCALCTDigi"); 00163 produces<CSCCLCTDigiCollection>("MuonCSCCLCTDigi"); 00164 produces<CSCComparatorDigiCollection>("MuonCSCComparatorDigi"); 00165 produces<CSCRPCDigiCollection>("MuonCSCRPCDigi"); 00166 produces<CSCCorrelatedLCTDigiCollection>("MuonCSCCorrelatedLCTDigi"); 00167 } 00168 00169 00170 if (doSiPixelDigis_) { 00171 produces< edm::DetSetVector<PixelDigi> >(); 00172 } 00173 00174 if (doSiStrip_) { 00175 produces< edm::LazyGetter<SiStripCluster> >(); 00176 } 00177 00178 if (doGCT_) { 00179 // GCT output collections 00180 produces<L1GctEmCandCollection>("isoEm"); 00181 produces<L1GctEmCandCollection>("nonIsoEm"); 00182 produces<L1GctJetCandCollection>("cenJets"); 00183 produces<L1GctJetCandCollection>("forJets"); 00184 produces<L1GctJetCandCollection>("tauJets"); 00185 produces<L1GctHFBitCountsCollection>(); 00186 produces<L1GctHFRingEtSumsCollection>(); 00187 produces<L1GctEtTotalCollection>(); 00188 produces<L1GctEtHadCollection>(); 00189 produces<L1GctEtMissCollection>(); 00190 produces<L1GctJetCountsCollection>(); // Deprecated (empty collection still needed by GT) 00191 } 00192 00193 if (doObjectMap_) { 00194 produces<L1GlobalTriggerObjectMapRecord>(); 00195 } 00196 00197 00198 }
HLTDummyCollections::~HLTDummyCollections | ( | ) |
Definition at line 201 of file HLTDummyCollections.cc.
00202 { 00203 00204 // do anything here that needs to be done at desctruction time 00205 // (e.g. close files, deallocate resources etc.) 00206 00207 }
void HLTDummyCollections::beginJob | ( | const edm::EventSetup & | ) | [private, virtual] |
void HLTDummyCollections::produce | ( | edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [private, virtual] |
Implements edm::EDProducer.
Definition at line 216 of file HLTDummyCollections.cc.
References doEcal_, doEcalPreshower_, doGCT_, doHcal_, doMuonCSCDigis_, doMuonDTDigis_, doObjectMap_, doSiPixelDigis_, doSiStrip_, ESdigiCollection_, edm::Event::put(), and unpackZDC_.
00217 { 00218 using namespace edm; 00219 00220 if (doEcal_) { 00221 std::auto_ptr<EBDigiCollection> productDigisEB(new EBDigiCollection); 00222 std::auto_ptr<EEDigiCollection> productDigisEE(new EEDigiCollection); 00223 std::auto_ptr<EcalTrigPrimDigiCollection> productEcalTps(new EcalTrigPrimDigiCollection); 00224 iEvent.put(productDigisEB,"ebDigis"); 00225 iEvent.put(productDigisEE,"eeDigis"); 00226 iEvent.put(productEcalTps,"EcalTriggerPrimitives"); 00227 } 00228 00229 00230 if (doHcal_) { 00231 std::auto_ptr<HBHEDigiCollection> hbhe_prod(new HBHEDigiCollection()); 00232 std::auto_ptr<HFDigiCollection> hf_prod(new HFDigiCollection()); 00233 std::auto_ptr<HODigiCollection> ho_prod(new HODigiCollection()); 00234 std::auto_ptr<HcalTrigPrimDigiCollection> htp_prod(new HcalTrigPrimDigiCollection()); 00235 std::auto_ptr<HOTrigPrimDigiCollection> hotp_prod(new HOTrigPrimDigiCollection()); 00236 iEvent.put(hbhe_prod); 00237 iEvent.put(hf_prod); 00238 iEvent.put(ho_prod); 00239 iEvent.put(htp_prod); 00240 iEvent.put(hotp_prod); 00241 if (unpackZDC_) { 00242 std::auto_ptr<ZDCDigiCollection> zdcprod(new ZDCDigiCollection()); 00243 iEvent.put(zdcprod); 00244 } 00245 } 00246 00247 if (doEcalPreshower_) { 00248 auto_ptr<ESDigiCollection> productDigis(new ESDigiCollection); 00249 iEvent.put(productDigis, ESdigiCollection_); 00250 } 00251 00252 if (doMuonDTDigis_) { 00253 auto_ptr<DTDigiCollection> detectorProduct(new DTDigiCollection); 00254 auto_ptr<DTLocalTriggerCollection> triggerProduct(new DTLocalTriggerCollection); 00255 iEvent.put(detectorProduct); 00256 iEvent.put(triggerProduct); 00257 } 00258 00259 if (doMuonCSCDigis_) { 00260 std::auto_ptr<CSCWireDigiCollection> wireProduct(new CSCWireDigiCollection); 00261 std::auto_ptr<CSCStripDigiCollection> stripProduct(new CSCStripDigiCollection); 00262 std::auto_ptr<CSCALCTDigiCollection> alctProduct(new CSCALCTDigiCollection); 00263 std::auto_ptr<CSCCLCTDigiCollection> clctProduct(new CSCCLCTDigiCollection); 00264 std::auto_ptr<CSCComparatorDigiCollection> comparatorProduct(new CSCComparatorDigiCollection); 00265 std::auto_ptr<CSCRPCDigiCollection> rpcProduct(new CSCRPCDigiCollection); 00266 std::auto_ptr<CSCCorrelatedLCTDigiCollection> corrlctProduct(new CSCCorrelatedLCTDigiCollection); 00267 // std::auto_ptr<CSCDCCFormatStatusDigiCollection> formatStatusProduct(new CSCDCCFormatStatusDigiCollection); 00268 00269 iEvent.put(wireProduct,"MuonCSCWireDigi"); 00270 iEvent.put(stripProduct,"MuonCSCStripDigi"); 00271 iEvent.put(alctProduct,"MuonCSCALCTDigi"); 00272 iEvent.put(clctProduct,"MuonCSCCLCTDigi"); 00273 iEvent.put(comparatorProduct,"MuonCSCComparatorDigi"); 00274 iEvent.put(rpcProduct,"MuonCSCRPCDigi"); 00275 iEvent.put(corrlctProduct,"MuonCSCCorrelatedLCTDigi"); 00276 } 00277 00278 00279 if (doSiPixelDigis_) { 00280 std::auto_ptr< edm::DetSetVector<PixelDigi> > SiPicollection( new edm::DetSetVector<PixelDigi> ); 00281 iEvent.put(SiPicollection); 00282 } 00283 00284 if (doSiStrip_) { 00285 std::auto_ptr< edm::LazyGetter<SiStripCluster> > SiStripcollection( new edm::LazyGetter<SiStripCluster> ); 00286 iEvent.put(SiStripcollection); 00287 } 00288 00289 if (doGCT_) { 00290 std::auto_ptr<L1GctEmCandCollection> m_gctIsoEm( new L1GctEmCandCollection) ; 00291 std::auto_ptr<L1GctEmCandCollection> m_gctNonIsoEm(new L1GctEmCandCollection); 00292 std::auto_ptr<L1GctJetCandCollection> m_gctCenJets(new L1GctJetCandCollection); 00293 std::auto_ptr<L1GctJetCandCollection> m_gctForJets(new L1GctJetCandCollection); 00294 std::auto_ptr<L1GctJetCandCollection> m_gctTauJets(new L1GctJetCandCollection); 00295 std::auto_ptr<L1GctHFBitCountsCollection> m_gctHfBitCounts(new L1GctHFBitCountsCollection); 00296 std::auto_ptr<L1GctHFRingEtSumsCollection> m_gctHfRingEtSums(new L1GctHFRingEtSumsCollection); 00297 std::auto_ptr<L1GctEtTotalCollection> m_gctEtTot(new L1GctEtTotalCollection); 00298 std::auto_ptr<L1GctEtHadCollection> m_gctEtHad(new L1GctEtHadCollection); 00299 std::auto_ptr<L1GctEtMissCollection> m_gctEtMiss(new L1GctEtMissCollection); 00300 std::auto_ptr<L1GctJetCountsCollection> m_gctJetCounts(new L1GctJetCountsCollection); // DEPRECATED 00301 00302 iEvent.put(m_gctIsoEm, "isoEm"); 00303 iEvent.put(m_gctNonIsoEm, "nonIsoEm"); 00304 iEvent.put(m_gctCenJets,"cenJets"); 00305 iEvent.put(m_gctForJets,"forJets"); 00306 iEvent.put(m_gctTauJets,"tauJets"); 00307 iEvent.put(m_gctHfBitCounts); 00308 iEvent.put(m_gctHfRingEtSums); 00309 iEvent.put(m_gctEtTot); 00310 iEvent.put(m_gctEtHad); 00311 iEvent.put(m_gctEtMiss); 00312 iEvent.put(m_gctJetCounts); // Deprecated (empty collection still needed by GT) 00313 } 00314 00315 00316 if (doObjectMap_) { 00317 std::auto_ptr<L1GlobalTriggerObjectMapRecord> gtObjectMapRecord( 00318 new L1GlobalTriggerObjectMapRecord() ); 00319 iEvent.put(gtObjectMapRecord); 00320 } 00321 00322 }
std::string HLTDummyCollections::action_ [private] |
bool HLTDummyCollections::doEcal_ [private] |
Definition at line 82 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doEcalPreshower_ [private] |
Definition at line 85 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doGCT_ [private] |
Definition at line 91 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doHcal_ [private] |
Definition at line 83 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doMuonCSCDigis_ [private] |
Definition at line 88 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doMuonDTDigis_ [private] |
Definition at line 87 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doObjectMap_ [private] |
Definition at line 93 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doSiPixelDigis_ [private] |
Definition at line 89 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::doSiStrip_ [private] |
Definition at line 90 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
std::string HLTDummyCollections::ESdigiCollection_ [private] |
Definition at line 86 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().
bool HLTDummyCollections::unpackZDC_ [private] |
Definition at line 84 of file HLTDummyCollections.cc.
Referenced by HLTDummyCollections(), and produce().