CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
MuonDetRecHitMixer< T1, T2 > Class Template Reference

#include <MuonDetRecHitMixer.h>

Inheritance diagram for MuonDetRecHitMixer< T1, T2 >:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  TodoListEntry
 

Public Member Functions

 MuonDetRecHitMixer (const edm::ParameterSet &)
 
 ~MuonDetRecHitMixer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 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
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Types

typedef std::map< uint32_t, int > detIdToIntMap
 
typedef edm::RangeMap< T1,
edm::OwnVector< T2 > > 
RecHitCollection
 

Private Member Functions

void addRecHits (std::map< T1, std::vector< T2 > > &, const RecHitCollection &, bool, const detIdToIntMap &, const detIdToIntMap &, int &)
 
template<>
uint32_t getRawDetId (const CSCRecHit2D &recHit)
 
template<>
uint32_t getRawDetId (const DTRecHit1DPair &recHit)
 
template<>
uint32_t getRawDetId (const RPCRecHit &recHit)
 
uint32_t getRawDetId (const T2 &)
 
void printHitMapRH (const edm::EventSetup &, const RecHitCollection &)
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 

Private Attributes

std::string moduleLabel_
 
edm::InputTag srcHitMapMuMinus_
 
edm::InputTag srcHitMapMuPlus_
 
std::vector< TodoListEntrytodoList_
 
int verbosity_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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::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

template<typename T1, typename T2>
class MuonDetRecHitMixer< T1, T2 >

Merge collections of hits in muon detectors (CSC, DT and RPC) for original Zmumu event and "embedded" simulated tau decay products

Author
Christian Veelken, LLR
Version
Revision:
1.2
Id:
MuonDetRecHitMixer.h,v 1.2 2012/12/13 09:52:06 veelken Exp

Definition at line 30 of file MuonDetRecHitMixer.h.

Member Typedef Documentation

template<typename T1 , typename T2 >
typedef std::map<uint32_t, int> MuonDetRecHitMixer< T1, T2 >::detIdToIntMap
private

Definition at line 41 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
typedef edm::RangeMap<T1, edm::OwnVector<T2> > MuonDetRecHitMixer< T1, T2 >::RecHitCollection
private

Definition at line 39 of file MuonDetRecHitMixer.h.

Constructor & Destructor Documentation

template<typename T1 , typename T2 >
MuonDetRecHitMixer< T1, T2 >::MuonDetRecHitMixer ( const edm::ParameterSet cfg)
explicit

Definition at line 67 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
MuonDetRecHitMixer< T1, T2 >::~MuonDetRecHitMixer ( )

Definition at line 104 of file MuonDetRecHitMixer.h.

Member Function Documentation

template<typename T1 , typename T2 >
void MuonDetRecHitMixer< T1, T2 >::addRecHits ( std::map< T1, std::vector< T2 > > &  recHits_output,
const RecHitCollection recHitCollection_input,
bool  applyCleaning,
const detIdToIntMap hitMapMuPlus,
const detIdToIntMap hitMapMuMinus,
int &  numHits_cleaned 
)
private

Definition at line 165 of file MuonDetRecHitMixer.h.

template<>
uint32_t MuonDetRecHitMixer< CSCDetId, CSCRecHit2D >::getRawDetId ( const CSCRecHit2D recHit)
private

Definition at line 27 of file MuonDetRecHitMixer.cc.

References CSCRecHit2D::cscDetId(), and DetId::rawId().

28 {
29  return recHit.cscDetId().rawId();
30 }
CSCDetId cscDetId() const
Definition: CSCRecHit2D.h:52
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
template<>
uint32_t MuonDetRecHitMixer< DTLayerId, DTRecHit1DPair >::getRawDetId ( const DTRecHit1DPair recHit)
private

Definition at line 33 of file MuonDetRecHitMixer.cc.

References DTRecHit1DPair::geographicalId(), and DetId::rawId().

34 {
35  return recHit.geographicalId().rawId();
36 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
virtual DetId geographicalId() const
Return the detId of the Det (a DTLayer).
template<>
uint32_t MuonDetRecHitMixer< RPCDetId, RPCRecHit >::getRawDetId ( const RPCRecHit recHit)
private

Definition at line 39 of file MuonDetRecHitMixer.cc.

References DetId::rawId(), and RPCRecHit::rpcId().

40 {
41  return recHit.rpcId().rawId();
42 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:97
template<typename T1 , typename T2 >
uint32_t MuonDetRecHitMixer< T1, T2 >::getRawDetId ( const T2 &  recHit)
private

Definition at line 19 of file MuonDetRecHitMixer.cc.

References assert().

20 {
21  assert(0); // CV: make sure general function never gets called;
22  // always use template specializations
23 }
assert(m_qm.get())
template<typename T1 , typename T2 >
void MuonDetRecHitMixer< T1, T2 >::printHitMapRH ( const edm::EventSetup es,
const RecHitCollection recHits 
)
private

Definition at line 188 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
void MuonDetRecHitMixer< T1, T2 >::produce ( edm::Event evt,
const edm::EventSetup es 
)
privatevirtual

Implements edm::EDProducer.

Definition at line 110 of file MuonDetRecHitMixer.h.

Member Data Documentation

template<typename T1 , typename T2 >
std::string MuonDetRecHitMixer< T1, T2 >::moduleLabel_
private

Definition at line 49 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
edm::InputTag MuonDetRecHitMixer< T1, T2 >::srcHitMapMuMinus_
private

Definition at line 61 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
edm::InputTag MuonDetRecHitMixer< T1, T2 >::srcHitMapMuPlus_
private

Definition at line 60 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
std::vector<TodoListEntry> MuonDetRecHitMixer< T1, T2 >::todoList_
private

Definition at line 58 of file MuonDetRecHitMixer.h.

template<typename T1 , typename T2 >
int MuonDetRecHitMixer< T1, T2 >::verbosity_
private

Definition at line 63 of file MuonDetRecHitMixer.h.