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 Attributes
MuonSeedMerger Class Reference

#include <MuonSeedMerger.h>

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

Public Member Functions

 MuonSeedMerger (const edm::ParameterSet &)
 Constructor. More...
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
virtual ~MuonSeedMerger ()
 Destructor. More...
 
- 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 Attributes

std::vector< edm::InputTagtheSeedCollectionLabels
 

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

Module to merge two or more muon seed collections. Currently it does not contain any seed cleaner, so the number of ghosts seed can be high. This is still a preliminary implementation.

Date:
2008/10/17 22:36:09
Revision:
1.1
Author
R. Bellan - CERN ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Module to merge two or more muon seed collections. Currently it does not contain any seed cleaner, so the number of ghosts seed can be high. This is still a preliminary implementation.

Date:
2010/02/16 17:08:40
Revision:
1.2
Author
R. Bellan - CERN ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition at line 20 of file MuonSeedMerger.h.

Constructor & Destructor Documentation

MuonSeedMerger::MuonSeedMerger ( const edm::ParameterSet parameterSet)

Constructor.

Definition at line 28 of file MuonSeedMerger.cc.

References edm::ParameterSet::getParameter(), diffTwoXMLs::label, LogTrace, and metname.

28  {
29  const string metname = "Muon|RecoMuon|MuonSeedMerger";
30 
31  theSeedCollectionLabels = parameterSet.getParameter<vector<InputTag> >("SeedCollections");
32 
33  LogTrace(metname)<< "MuonSeedMerger will Merge the following seed collections:";
34  for(vector<InputTag>::const_iterator label = theSeedCollectionLabels.begin();
36  LogTrace(metname) << *label;
37 
38 
39  produces<TrajectorySeedCollection>();
40 }
T getParameter(std::string const &) const
const std::string metname
std::vector< edm::InputTag > theSeedCollectionLabels
#define LogTrace(id)
MuonSeedMerger::~MuonSeedMerger ( )
virtual

Destructor.

Definition at line 43 of file MuonSeedMerger.cc.

43 {}

Member Function Documentation

void MuonSeedMerger::produce ( edm::Event event,
const edm::EventSetup eventSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 45 of file MuonSeedMerger.cc.

References diffTwoXMLs::label, LogTrace, metname, and convertSQLitetoXML_cfg::output.

45  {
46 
47  const string metname = "Muon|RecoMuon|MuonSeedMerger";
48 
49  std::auto_ptr<TrajectorySeedCollection> output(new TrajectorySeedCollection());
50 
52 
53  for(vector<InputTag>::const_iterator label = theSeedCollectionLabels.begin();
54  label != theSeedCollectionLabels.end(); ++label){
55  event.getByLabel(*label,seeds);
56  LogTrace(metname) << *label << " has "<< seeds->size() <<" seeds";
57  for(View<TrajectorySeed>::const_iterator seed = seeds->begin(); seed != seeds->end(); ++seed)
58  output->push_back(*seed);
59  }
60 
61  event.put(output);
62 }
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:81
const std::string metname
std::vector< edm::InputTag > theSeedCollectionLabels
std::vector< TrajectorySeed > TrajectorySeedCollection
#define LogTrace(id)

Member Data Documentation

std::vector<edm::InputTag> MuonSeedMerger::theSeedCollectionLabels
private

Definition at line 35 of file MuonSeedMerger.h.