CMS 3D CMS Logo

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< DTDigiSimLinkCollectionDTdigisimlinkToken
 
edm::InputTag DTdigiTag
 
edm::EDGetTokenT< DTDigiCollectionDTdigiToken
 
edm::InputTag DTrechitTag
 
edm::EDGetTokenT< DTRecHitCollectionDTrechitToken
 
edm::InputTag DTsimhitsTag
 
edm::EDGetTokenT< edm::PSimHitContainerDTsimhitsToken
 
edm::InputTag DTsimhitsXFTag
 
edm::EDGetTokenT< CrossingFrame< PSimHit > > DTsimhitsXFToken
 
bool dumpDT
 
edm::ESGetToken< DTGeometry, MuonGeometryRecordgeomToken
 
bool links_exist
 

Friends

class DTHitAssociator
 

Detailed Description

Definition at line 34 of file DTHitAssociator.h.

Constructor & Destructor Documentation

◆ Config()

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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< DTDigiCollection > DTdigiToken
std::string const & label() const
Definition: InputTag.h:36
#define LogTrace(id)
edm::InputTag DTsimhitsXFTag
edm::EDGetTokenT< DTRecHitCollection > DTrechitToken
edm::EDGetTokenT< DTDigiSimLinkCollection > DTdigisimlinkToken
edm::ESGetToken< DTGeometry, MuonGeometryRecord > geomToken
edm::EDGetTokenT< edm::PSimHitContainer > DTsimhitsToken
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<IndexType...

Friends And Related Function Documentation

◆ DTHitAssociator

friend class DTHitAssociator
friend

Definition at line 39 of file DTHitAssociator.h.

Member Data Documentation

◆ associatorByWire

bool DTHitAssociator::Config::associatorByWire
private

◆ crossingframe

bool DTHitAssociator::Config::crossingframe
private

Definition at line 56 of file DTHitAssociator.h.

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

◆ DTdigisimlinkTag

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

Definition at line 44 of file DTHitAssociator.h.

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

◆ DTdigisimlinkToken

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

Definition at line 50 of file DTHitAssociator.h.

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

◆ DTdigiTag

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

Definition at line 43 of file DTHitAssociator.h.

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

◆ DTdigiToken

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

Definition at line 49 of file DTHitAssociator.h.

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

◆ DTrechitTag

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

Definition at line 45 of file DTHitAssociator.h.

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

◆ DTrechitToken

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

Definition at line 51 of file DTHitAssociator.h.

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

◆ DTsimhitsTag

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

Definition at line 41 of file DTHitAssociator.h.

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

◆ DTsimhitsToken

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

Definition at line 47 of file DTHitAssociator.h.

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

◆ DTsimhitsXFTag

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

Definition at line 42 of file DTHitAssociator.h.

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

◆ DTsimhitsXFToken

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

Definition at line 48 of file DTHitAssociator.h.

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

◆ dumpDT

bool DTHitAssociator::Config::dumpDT
private

Definition at line 55 of file DTHitAssociator.h.

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

◆ geomToken

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

Definition at line 53 of file DTHitAssociator.h.

Referenced by DTHitAssociator::initEvent().

◆ links_exist

bool DTHitAssociator::Config::links_exist
private

Definition at line 57 of file DTHitAssociator.h.

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