CMS 3D CMS Logo

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

#include <DTHitAssociator.h>

Public Member Functions

 Config (const edm::ParameterSet &, edm::ConsumesCollector iC)
 

Private Attributes

bool associatorByWire
 
bool crossingframe
 
edm::InputTag DTdigisimlinkTag
 
edm::EDGetTokenT
< DTDigiSimLinkCollection
DTdigisimlinkToken
 
edm::InputTag DTdigiTag
 
edm::EDGetTokenT
< DTDigiCollection
DTdigiToken
 
edm::InputTag DTrechitTag
 
edm::EDGetTokenT
< DTRecHitCollection
DTrechitToken
 
edm::InputTag DTsimhitsTag
 
edm::EDGetTokenT
< edm::PSimHitContainer
DTsimhitsToken
 
edm::InputTag DTsimhitsXFTag
 
edm::EDGetTokenT
< CrossingFrame< PSimHit > > 
DTsimhitsXFToken
 
bool dumpDT
 
edm::ESGetToken< DTGeometry,
MuonGeometryRecord
geomToken
 
bool links_exist
 

Friends

class DTHitAssociator
 

Detailed Description

Definition at line 34 of file DTHitAssociator.h.

Constructor & Destructor Documentation

DTHitAssociator::Config::Config ( const edm::ParameterSet conf,
edm::ConsumesCollector  iC 
)

Definition at line 17 of file DTHitAssociator.cc.

References associatorByWire, edm::ConsumesCollector::consumes(), crossingframe, DTdigisimlinkTag, DTdigisimlinkToken, DTdigiTag, DTdigiToken, DTrechitTag, DTrechitToken, DTsimhitsTag, DTsimhitsToken, DTsimhitsXFTag, DTsimhitsXFToken, dumpDT, edm::InputTag::label(), links_exist, and LogTrace.

18  : DTsimhitsTag(conf.getParameter<edm::InputTag>("DTsimhitsTag")),
19  DTsimhitsXFTag(conf.getParameter<edm::InputTag>("DTsimhitsXFTag")),
20  DTdigiTag(conf.getParameter<edm::InputTag>("DTdigiTag")),
21  DTdigisimlinkTag(conf.getParameter<edm::InputTag>("DTdigisimlinkTag")),
22  DTrechitTag(conf.getParameter<edm::InputTag>("DTrechitTag")),
23  geomToken(iC.esConsumes()),
24  // nice printout of DT hits
25  dumpDT(conf.getParameter<bool>("dumpDT")),
26  // CrossingFrame used or not ?
27  crossingframe(conf.getParameter<bool>("crossingframe")),
28  // Event contain the DTDigiSimLink collection ?
29  links_exist(conf.getParameter<bool>("links_exist")),
30  // associatorByWire links to a RecHit all the "valid" SimHits on the same
31  // DT wire
32  associatorByWire(conf.getParameter<bool>("associatorByWire")) {
33  if (crossingframe) {
35  } else if (!DTsimhitsTag.label().empty()) {
37  }
40 
41  if (dumpDT) {
43  }
44 
45  if (!links_exist && !associatorByWire) {
46  LogTrace("DTHitAssociator") << "*** WARNING in DTHitAssociator::DTHitAssociator: associatorByWire "
47  "reset to TRUE !"
48  << " \t (missing DTDigiSimLinkCollection ?)";
49  associatorByWire = true;
50  }
51 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::InputTag DTdigisimlinkTag
edm::EDGetTokenT< DTDigiCollection > DTdigiToken
#define LogTrace(id)
edm::InputTag DTsimhitsXFTag
edm::EDGetTokenT< DTRecHitCollection > DTrechitToken
edm::EDGetTokenT< DTDigiSimLinkCollection > DTdigisimlinkToken
edm::ESGetToken< DTGeometry, MuonGeometryRecord > geomToken
edm::EDGetTokenT< edm::PSimHitContainer > DTsimhitsToken
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string const & label() const
Definition: InputTag.h:36
edm::InputTag DTsimhitsTag
std::vector< PSimHit > PSimHitContainer
edm::EDGetTokenT< CrossingFrame< PSimHit > > DTsimhitsXFToken
A container for a generic type of digis indexed by some index, implemented with a map&lt;IndexType...

Friends And Related Function Documentation

friend class DTHitAssociator
friend

Definition at line 39 of file DTHitAssociator.h.

Member Data Documentation

bool DTHitAssociator::Config::associatorByWire
private
bool DTHitAssociator::Config::crossingframe
private

Definition at line 56 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::InputTag DTHitAssociator::Config::DTdigisimlinkTag
private

Definition at line 44 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::EDGetTokenT<DTDigiSimLinkCollection> DTHitAssociator::Config::DTdigisimlinkToken
private

Definition at line 50 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::InputTag DTHitAssociator::Config::DTdigiTag
private

Definition at line 43 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::EDGetTokenT<DTDigiCollection> DTHitAssociator::Config::DTdigiToken
private

Definition at line 49 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::InputTag DTHitAssociator::Config::DTrechitTag
private

Definition at line 45 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::EDGetTokenT<DTRecHitCollection> DTHitAssociator::Config::DTrechitToken
private

Definition at line 51 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::InputTag DTHitAssociator::Config::DTsimhitsTag
private

Definition at line 41 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::EDGetTokenT<edm::PSimHitContainer> DTHitAssociator::Config::DTsimhitsToken
private

Definition at line 47 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::InputTag DTHitAssociator::Config::DTsimhitsXFTag
private

Definition at line 42 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::EDGetTokenT<CrossingFrame<PSimHit> > DTHitAssociator::Config::DTsimhitsXFToken
private

Definition at line 48 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

bool DTHitAssociator::Config::dumpDT
private

Definition at line 55 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().

edm::ESGetToken<DTGeometry, MuonGeometryRecord> DTHitAssociator::Config::geomToken
private

Definition at line 53 of file DTHitAssociator.h.

Referenced by DTHitAssociator::initEvent().

bool DTHitAssociator::Config::links_exist
private

Definition at line 57 of file DTHitAssociator.h.

Referenced by Config(), and DTHitAssociator::initEvent().