CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HLTDummyCollections Class Reference

#include <HLTrigger/HLTDummyCollections/src/HLTDummyCollections.cc>

Inheritance diagram for HLTDummyCollections:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HLTDummyCollections (const edm::ParameterSet &)
 
 ~HLTDummyCollections ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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 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

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 68 of file HLTDummyCollections.cc.

Constructor & Destructor Documentation

HLTDummyCollections::HLTDummyCollections ( const edm::ParameterSet iConfig)
explicit

Definition at line 105 of file HLTDummyCollections.cc.

References action_, doEcal_, doEcalPreshower_, doGCT_, doHcal_, doMuonCSCDigis_, doMuonDTDigis_, doObjectMap_, doSiPixelDigis_, doSiStrip_, ESdigiCollection_, edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and unpackZDC_.

106 {
107  action_ = iConfig.getParameter<std::string>("action");
108  unpackZDC_ = iConfig.getParameter<bool>("UnpackZDC");
109  ESdigiCollection_ = iConfig.getParameter<std::string>("ESdigiCollection");
110 
111  doEcal_ = ( action_ == "doEcal");
112  doHcal_ = ( action_ == "doHcal");
113  doEcalPreshower_ = ( action_ == "doEcalPreshower");
114  doMuonDTDigis_ = ( action_ == "doMuonDT");
115  doMuonCSCDigis_ = ( action_ == "doMuonCSC");
116  doSiPixelDigis_ = ( action_ == "doSiPixel");
117  doSiStrip_ = ( action_ == "doSiStrip");
118  doObjectMap_ = ( action_ == "doObjectMap");
119  doGCT_ = ( action_ == "doGCT");
120 
121  if (doEcal_) {
122  // ECAL unpacking :
123  produces< edm::LazyGetter<EcalRecHit> >();
124  }
125 
126  if (doHcal_) {
127  // HCAL unpacking
128  produces<HBHEDigiCollection>();
129  produces<HFDigiCollection>();
130  produces<HODigiCollection>();
131  produces<HcalTrigPrimDigiCollection>();
132  produces<HOTrigPrimDigiCollection>();
133  if (unpackZDC_) {
134  produces<ZDCDigiCollection>();
135  }
136  }
137 
138  if (doEcalPreshower_) {
139  produces<ESDigiCollection>();
140  }
141 
142  if (doMuonDTDigis_) {
143  produces<DTDigiCollection>();
144  produces<DTLocalTriggerCollection>();
145  }
146 
147  if (doMuonCSCDigis_) {
148  produces<CSCWireDigiCollection>("MuonCSCWireDigi");
149  produces<CSCStripDigiCollection>("MuonCSCStripDigi");
150  produces<CSCALCTDigiCollection>("MuonCSCALCTDigi");
151  produces<CSCCLCTDigiCollection>("MuonCSCCLCTDigi");
152  produces<CSCComparatorDigiCollection>("MuonCSCComparatorDigi");
153  produces<CSCRPCDigiCollection>("MuonCSCRPCDigi");
154  produces<CSCCorrelatedLCTDigiCollection>("MuonCSCCorrelatedLCTDigi");
155  }
156 
157 
158  if (doSiPixelDigis_) {
159  produces< edm::DetSetVector<PixelDigi> >();
160  }
161 
162  if (doSiStrip_) {
163  produces< edm::LazyGetter<SiStripCluster> >();
164  }
165 
166  if (doGCT_) {
167  // GCT output collections
168  produces<L1GctEmCandCollection>("isoEm");
169  produces<L1GctEmCandCollection>("nonIsoEm");
170  produces<L1GctJetCandCollection>("cenJets");
171  produces<L1GctJetCandCollection>("forJets");
172  produces<L1GctJetCandCollection>("tauJets");
173  produces<L1GctHFBitCountsCollection>();
174  produces<L1GctHFRingEtSumsCollection>();
175  produces<L1GctEtTotalCollection>();
176  produces<L1GctEtHadCollection>();
177  produces<L1GctEtMissCollection>();
178  produces<L1GctHtMissCollection>();
179  produces<L1GctJetCountsCollection>(); // Deprecated (empty collection still needed by GT)
180  }
181 
182  if (doObjectMap_) {
183  produces<L1GlobalTriggerObjectMapRecord>();
184  }
185 }
T getParameter(std::string const &) const
HLTDummyCollections::~HLTDummyCollections ( )

Definition at line 187 of file HLTDummyCollections.cc.

188 {
189  // do anything here that needs to be done at desctruction time
190  // (e.g. close files, deallocate resources etc.)
191 }

Member Function Documentation

void HLTDummyCollections::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDProducer.

Definition at line 200 of file HLTDummyCollections.cc.

References doEcal_, doEcalPreshower_, doGCT_, doHcal_, doMuonCSCDigis_, doMuonDTDigis_, doObjectMap_, doSiPixelDigis_, doSiStrip_, ESdigiCollection_, edm::Event::put(), and unpackZDC_.

201 {
202  using namespace edm;
203 
204  if (doEcal_) {
205  std::auto_ptr< edm::LazyGetter<EcalRecHit> > Ecalcollection( new edm::LazyGetter<EcalRecHit> );
206  iEvent.put(Ecalcollection);
207  }
208 
209  if (doHcal_) {
210  std::auto_ptr<HBHEDigiCollection> hbhe_prod(new HBHEDigiCollection());
211  std::auto_ptr<HFDigiCollection> hf_prod(new HFDigiCollection());
212  std::auto_ptr<HODigiCollection> ho_prod(new HODigiCollection());
213  std::auto_ptr<HcalTrigPrimDigiCollection> htp_prod(new HcalTrigPrimDigiCollection());
214  std::auto_ptr<HOTrigPrimDigiCollection> hotp_prod(new HOTrigPrimDigiCollection());
215  iEvent.put(hbhe_prod);
216  iEvent.put(hf_prod);
217  iEvent.put(ho_prod);
218  iEvent.put(htp_prod);
219  iEvent.put(hotp_prod);
220  if (unpackZDC_) {
221  std::auto_ptr<ZDCDigiCollection> zdcprod(new ZDCDigiCollection());
222  iEvent.put(zdcprod);
223  }
224  }
225 
226  if (doEcalPreshower_) {
227  std::auto_ptr<ESDigiCollection> productDigis(new ESDigiCollection);
228  iEvent.put(productDigis, ESdigiCollection_);
229  }
230 
231  if (doMuonDTDigis_) {
232  std::auto_ptr<DTDigiCollection> detectorProduct(new DTDigiCollection);
233  std::auto_ptr<DTLocalTriggerCollection> triggerProduct(new DTLocalTriggerCollection);
234  iEvent.put(detectorProduct);
235  iEvent.put(triggerProduct);
236  }
237 
238  if (doMuonCSCDigis_) {
239  std::auto_ptr<CSCWireDigiCollection> wireProduct(new CSCWireDigiCollection);
240  std::auto_ptr<CSCStripDigiCollection> stripProduct(new CSCStripDigiCollection);
241  std::auto_ptr<CSCALCTDigiCollection> alctProduct(new CSCALCTDigiCollection);
242  std::auto_ptr<CSCCLCTDigiCollection> clctProduct(new CSCCLCTDigiCollection);
243  std::auto_ptr<CSCComparatorDigiCollection> comparatorProduct(new CSCComparatorDigiCollection);
244  std::auto_ptr<CSCRPCDigiCollection> rpcProduct(new CSCRPCDigiCollection);
245  std::auto_ptr<CSCCorrelatedLCTDigiCollection> corrlctProduct(new CSCCorrelatedLCTDigiCollection);
246 
247  iEvent.put(wireProduct,"MuonCSCWireDigi");
248  iEvent.put(stripProduct,"MuonCSCStripDigi");
249  iEvent.put(alctProduct,"MuonCSCALCTDigi");
250  iEvent.put(clctProduct,"MuonCSCCLCTDigi");
251  iEvent.put(comparatorProduct,"MuonCSCComparatorDigi");
252  iEvent.put(rpcProduct,"MuonCSCRPCDigi");
253  iEvent.put(corrlctProduct,"MuonCSCCorrelatedLCTDigi");
254  }
255 
256  if (doSiPixelDigis_) {
257  std::auto_ptr< edm::DetSetVector<PixelDigi> > SiPicollection( new edm::DetSetVector<PixelDigi> );
258  iEvent.put(SiPicollection);
259  }
260 
261  if (doSiStrip_) {
262  std::auto_ptr< edm::LazyGetter<SiStripCluster> > SiStripcollection( new edm::LazyGetter<SiStripCluster> );
263  iEvent.put(SiStripcollection);
264  }
265 
266  if (doGCT_) {
267  std::auto_ptr<L1GctEmCandCollection> m_gctIsoEm( new L1GctEmCandCollection) ;
268  std::auto_ptr<L1GctEmCandCollection> m_gctNonIsoEm(new L1GctEmCandCollection);
269  std::auto_ptr<L1GctJetCandCollection> m_gctCenJets(new L1GctJetCandCollection);
270  std::auto_ptr<L1GctJetCandCollection> m_gctForJets(new L1GctJetCandCollection);
271  std::auto_ptr<L1GctJetCandCollection> m_gctTauJets(new L1GctJetCandCollection);
272  std::auto_ptr<L1GctHFBitCountsCollection> m_gctHfBitCounts(new L1GctHFBitCountsCollection);
273  std::auto_ptr<L1GctHFRingEtSumsCollection> m_gctHfRingEtSums(new L1GctHFRingEtSumsCollection);
274  std::auto_ptr<L1GctEtTotalCollection> m_gctEtTot(new L1GctEtTotalCollection);
275  std::auto_ptr<L1GctEtHadCollection> m_gctEtHad(new L1GctEtHadCollection);
276  std::auto_ptr<L1GctEtMissCollection> m_gctEtMiss(new L1GctEtMissCollection);
277  std::auto_ptr<L1GctHtMissCollection> m_gctHtMiss(new L1GctHtMissCollection);
278  std::auto_ptr<L1GctJetCountsCollection> m_gctJetCounts(new L1GctJetCountsCollection); // DEPRECATED
279 
280  iEvent.put(m_gctIsoEm, "isoEm");
281  iEvent.put(m_gctNonIsoEm, "nonIsoEm");
282  iEvent.put(m_gctCenJets,"cenJets");
283  iEvent.put(m_gctForJets,"forJets");
284  iEvent.put(m_gctTauJets,"tauJets");
285  iEvent.put(m_gctHfBitCounts);
286  iEvent.put(m_gctHfRingEtSums);
287  iEvent.put(m_gctEtTot);
288  iEvent.put(m_gctEtHad);
289  iEvent.put(m_gctEtMiss);
290  iEvent.put(m_gctHtMiss);
291  iEvent.put(m_gctJetCounts); // Deprecated (empty collection still needed by GT)
292  }
293 
294  if (doObjectMap_) {
295  std::auto_ptr<L1GlobalTriggerObjectMapRecord> gtObjectMapRecord(
297  iEvent.put(gtObjectMapRecord);
298  }
299 
300 }
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
std::vector< L1GctEtMiss > L1GctEtMissCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
std::vector< L1GctEtHad > L1GctEtHadCollection
std::vector< L1GctJetCounts > L1GctJetCountsCollection
edm::SortedCollection< HOTriggerPrimitiveDigi > HOTrigPrimDigiCollection
edm::SortedCollection< ZDCDataFrame > ZDCDigiCollection
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
edm::SortedCollection< HODataFrame > HODigiCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
std::vector< L1GctHtMiss > L1GctHtMissCollection
edm::SortedCollection< HFDataFrame > HFDigiCollection
edm::SortedCollection< HBHEDataFrame > HBHEDigiCollection
std::vector< L1GctEmCand > L1GctEmCandCollection

Member Data Documentation

std::string HLTDummyCollections::action_
private

Definition at line 78 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections().

bool HLTDummyCollections::doEcal_
private

Definition at line 79 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doEcalPreshower_
private

Definition at line 82 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doGCT_
private

Definition at line 88 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doHcal_
private

Definition at line 80 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doMuonCSCDigis_
private

Definition at line 85 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doMuonDTDigis_
private

Definition at line 84 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doObjectMap_
private

Definition at line 89 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doSiPixelDigis_
private

Definition at line 86 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::doSiStrip_
private

Definition at line 87 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

std::string HLTDummyCollections::ESdigiCollection_
private

Definition at line 83 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().

bool HLTDummyCollections::unpackZDC_
private

Definition at line 81 of file HLTDummyCollections.cc.

Referenced by HLTDummyCollections(), and produce().