CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
MuonTruth Class Reference

#include <MuonTruth.h>

Public Types

typedef edm::DetSetVector< StripDigiSimLinkDigiSimLinks
 
typedef edm::DetSet< StripDigiSimLinkLayerLinks
 
typedef std::pair< uint32_t, EncodedEventIdSimHitIdpr
 
typedef edm::DetSetVector< StripDigiSimLinkWireDigiSimLinks
 

Public Member Functions

void analyze (const CSCRecHit2D &recHit)
 
void analyze (const CSCStripDigi &stripDigi, int rawDetIdCorrespondingToCSCLayer)
 
void analyze (const CSCWireDigi &wireDigi, int rawDetIdCorrespondingToCSCLayer)
 
void initEvent (const edm::Event &, const edm::EventSetup &)
 
float muonFraction ()
 analyze() must be called before any of the following More...
 
std::vector< PSimHitmuonHits ()
 
 MuonTruth (const edm::ParameterSet &, edm::ConsumesCollector &&iC)
 
std::vector< PSimHitsimHits ()
 

Public Attributes

const CSCBadChamberscscBadChambers
 

Private Member Functions

void addChannel (const LayerLinks &layerLinks, int channel, float weight=1.)
 
std::vector< PSimHithitsFromSimTrack (SimHitIdpr truthId)
 
int particleType (SimHitIdpr truthId)
 

Private Attributes

const edm::ESGetToken< CSCBadChambers, CSCBadChambersRcdbadToken_
 
const bool crossingframe
 
const CSCGeometrycscgeom
 
const edm::InputTag CSCsimHitsTag
 
const edm::InputTag CSCsimHitsXFTag
 
const edm::ESGetToken< CSCGeometry, MuonGeometryRecordgeomToken_
 
const edm::InputTag linksTag
 
const edm::EDGetTokenT< DigiSimLinkslinksToken_
 
edm::EDGetTokenT< edm::PSimHitContainersimHitsToken_
 
edm::EDGetTokenT< CrossingFrame< PSimHit > > simHitsXFToken_
 
std::map< SimHitIdpr, float > theChargeMap
 
unsigned int theDetId
 
const DigiSimLinkstheDigiSimLinks
 
std::map< unsigned int, edm::PSimHitContainertheSimHitMap
 
float theTotalCharge
 
const DigiSimLinkstheWireDigiSimLinks
 
const edm::InputTag wireLinksTag
 
const edm::EDGetTokenT< DigiSimLinkswireLinksToken_
 

Detailed Description

Definition at line 25 of file MuonTruth.h.

Member Typedef Documentation

◆ DigiSimLinks

Definition at line 27 of file MuonTruth.h.

◆ LayerLinks

Definition at line 29 of file MuonTruth.h.

◆ SimHitIdpr

typedef std::pair<uint32_t, EncodedEventId> MuonTruth::SimHitIdpr

Definition at line 30 of file MuonTruth.h.

◆ WireDigiSimLinks

Definition at line 28 of file MuonTruth.h.

Constructor & Destructor Documentation

◆ MuonTruth()

MuonTruth::MuonTruth ( const edm::ParameterSet conf,
edm::ConsumesCollector &&  iC 
)

Definition at line 7 of file MuonTruth.cc.

References crossingframe, CSCsimHitsTag, CSCsimHitsXFTag, edm::InputTag::label(), simHitsToken_, and simHitsXFToken_.

8  : cscBadChambers(nullptr),
9  theTotalCharge(0.0),
10  theDetId(0),
11  theDigiSimLinks(nullptr),
12  theWireDigiSimLinks(nullptr),
13  linksTag(conf.getParameter<edm::InputTag>("CSClinksTag")),
14  wireLinksTag(conf.getParameter<edm::InputTag>("CSCwireLinksTag")),
15  // CrossingFrame used or not ?
16  crossingframe(conf.getParameter<bool>("crossingframe")),
17  CSCsimHitsTag(conf.getParameter<edm::InputTag>("CSCsimHitsTag")),
18  CSCsimHitsXFTag(conf.getParameter<edm::InputTag>("CSCsimHitsXFTag")),
23  cscgeom(nullptr) {
24  if (crossingframe) {
26  } else if (!CSCsimHitsTag.label().empty()) {
28  }
29 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
const DigiSimLinks * theWireDigiSimLinks
Definition: MuonTruth.h:62
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken_
Definition: MuonTruth.h:77
const CSCGeometry * cscgeom
Definition: MuonTruth.h:81
std::string const & label() const
Definition: InputTag.h:36
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: MuonTruth.h:71
const CSCBadChambers * cscBadChambers
Definition: MuonTruth.h:47
unsigned int theDetId
Definition: MuonTruth.h:59
const edm::InputTag wireLinksTag
Definition: MuonTruth.h:65
const edm::EDGetTokenT< DigiSimLinks > wireLinksToken_
Definition: MuonTruth.h:75
const edm::InputTag CSCsimHitsXFTag
Definition: MuonTruth.h:69
const edm::InputTag linksTag
Definition: MuonTruth.h:64
float theTotalCharge
Definition: MuonTruth.h:57
const edm::InputTag CSCsimHitsTag
Definition: MuonTruth.h:68
const edm::EDGetTokenT< DigiSimLinks > linksToken_
Definition: MuonTruth.h:74
edm::EDGetTokenT< CrossingFrame< PSimHit > > simHitsXFToken_
Definition: MuonTruth.h:76
edm::DetSetVector< StripDigiSimLink > DigiSimLinks
Definition: MuonTruth.h:27
std::vector< PSimHit > PSimHitContainer
const DigiSimLinks * theDigiSimLinks
Definition: MuonTruth.h:61
const bool crossingframe
Definition: MuonTruth.h:67
const edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badToken_
Definition: MuonTruth.h:72

Member Function Documentation

◆ addChannel()

void MuonTruth::addChannel ( const LayerLinks layerLinks,
int  channel,
float  weight = 1. 
)
private

Definition at line 193 of file MuonTruth.cc.

References edm::DetSet< T >::begin(), ALCARECOTkAlJpsiMuMu_cff::charge, edm::DetSet< T >::end(), theChargeMap, theTotalCharge, and mps_merge::weight.

Referenced by analyze().

193  {
194  LayerLinks::const_iterator linkItr = layerLinks.begin(), lastLayerLink = layerLinks.end();
195 
196  for (; linkItr != lastLayerLink; ++linkItr) {
197  int linkChannel = linkItr->channel();
198  if (linkChannel == channel) {
199  float charge = linkItr->fraction() * weight;
201  // see if it's in the map
202  SimHitIdpr truthId(linkItr->SimTrackId(), linkItr->eventId());
203  std::map<SimHitIdpr, float>::const_iterator chargeMapItr = theChargeMap.find(truthId);
204  if (chargeMapItr == theChargeMap.end()) {
205  theChargeMap[truthId] = charge;
206  } else {
207  theChargeMap[truthId] += charge;
208  }
209  }
210  }
211 }
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
float theTotalCharge
Definition: MuonTruth.h:57
std::pair< uint32_t, EncodedEventId > SimHitIdpr
collection_type::const_iterator const_iterator
Definition: DetSet.h:31

◆ analyze() [1/3]

void MuonTruth::analyze ( const CSCRecHit2D recHit)

Definition at line 143 of file MuonTruth.cc.

References addChannel(), CSCLayerGeometry::channel(), cscgeom, edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), relativeConstraints::geometry, CSCGeometry::layer(), rpcPointValidation_cfi::recHit, theChargeMap, theDetId, theDigiSimLinks, and theTotalCharge.

Referenced by CSCTruthTest::analyze().

143  {
144  theChargeMap.clear();
145  theTotalCharge = 0.;
146  theDetId = recHit.geographicalId().rawId();
147 
148  int nchannels = recHit.nStrips();
149  const CSCLayerGeometry *laygeom = cscgeom->layer(recHit.cscDetId())->geometry();
150 
151  for (int idigi = 0; idigi < nchannels; ++idigi) {
152  // strip and readout channel numbers may differ in ME1/1A
153  int istrip = recHit.channels(idigi);
154  int channel = laygeom->channel(istrip);
155  float weight = recHit.adcs(idigi, 0); // DL: I think this is wrong before and after...seems to
156  // assume one time binadcContainer[idigi];
157 
159 
160  if (layerLinks != theDigiSimLinks->end()) {
161  addChannel(*layerLinks, channel, weight);
162  }
163  }
164 }
iterator find(det_id_type id)
Definition: DetSetVector.h:255
Definition: weight.py:1
const CSCGeometry * cscgeom
Definition: MuonTruth.h:81
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
int channel(int strip) const
unsigned int theDetId
Definition: MuonTruth.h:59
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:316
float theTotalCharge
Definition: MuonTruth.h:57
const DigiSimLinks * theDigiSimLinks
Definition: MuonTruth.h:61
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to given DetId.
Definition: CSCGeometry.cc:105
void addChannel(const LayerLinks &layerLinks, int channel, float weight=1.)
Definition: MuonTruth.cc:193

◆ analyze() [2/3]

void MuonTruth::analyze ( const CSCStripDigi stripDigi,
int  rawDetIdCorrespondingToCSCLayer 
)

Definition at line 166 of file MuonTruth.cc.

References addChannel(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), CSCStripDigi::getStrip(), theChargeMap, theDetId, theDigiSimLinks, and theTotalCharge.

166  {
167  theDetId = rawDetIdCorrespondingToCSCLayer;
168  theChargeMap.clear();
169  theTotalCharge = 0.;
170 
172  if (layerLinks != theDigiSimLinks->end()) {
173  addChannel(*layerLinks, stripDigi.getStrip(), 1.);
174  }
175 }
iterator find(det_id_type id)
Definition: DetSetVector.h:255
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
int getStrip() const
Definition: CSCStripDigi.h:41
unsigned int theDetId
Definition: MuonTruth.h:59
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:316
float theTotalCharge
Definition: MuonTruth.h:57
const DigiSimLinks * theDigiSimLinks
Definition: MuonTruth.h:61
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
void addChannel(const LayerLinks &layerLinks, int channel, float weight=1.)
Definition: MuonTruth.cc:193

◆ analyze() [3/3]

void MuonTruth::analyze ( const CSCWireDigi wireDigi,
int  rawDetIdCorrespondingToCSCLayer 
)

Definition at line 177 of file MuonTruth.cc.

References addChannel(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), CSCWireDigi::getWireGroup(), theChargeMap, theDetId, theDigiSimLinks, theTotalCharge, and theWireDigiSimLinks.

177  {
178  theDetId = rawDetIdCorrespondingToCSCLayer;
179  theChargeMap.clear();
180  theTotalCharge = 0.;
181 
183 
184  if (layerLinks != theDigiSimLinks->end()) {
185  // In the simulation digis, the channel labels for wires and strips must be
186  // distinct, therefore:
187  int wireDigiInSimulation = wireDigi.getWireGroup() + 100;
188  //
189  addChannel(*layerLinks, wireDigiInSimulation, 1.);
190  }
191 }
iterator find(det_id_type id)
Definition: DetSetVector.h:255
const DigiSimLinks * theWireDigiSimLinks
Definition: MuonTruth.h:62
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
unsigned int theDetId
Definition: MuonTruth.h:59
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:316
float theTotalCharge
Definition: MuonTruth.h:57
const DigiSimLinks * theDigiSimLinks
Definition: MuonTruth.h:61
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
void addChannel(const LayerLinks &layerLinks, int channel, float weight=1.)
Definition: MuonTruth.cc:193
int getWireGroup() const
default
Definition: CSCWireDigi.h:22

◆ hitsFromSimTrack()

std::vector< PSimHit > MuonTruth::hitsFromSimTrack ( MuonTruth::SimHitIdpr  truthId)
private

Definition at line 117 of file MuonTruth.cc.

References newFWLiteAna::found, mps_fire::result, theDetId, and theSimHitMap.

Referenced by particleType(), and simHits().

117  {
118  std::vector<PSimHit> result;
119 
120  auto found = theSimHitMap.find(theDetId);
121  if (found != theSimHitMap.end()) {
122  for (auto const &hit : found->second) {
123  unsigned int hitTrack = hit.trackId();
124  EncodedEventId hitEvId = hit.eventId();
125 
126  if (hitTrack == truthId.first && hitEvId == truthId.second) {
127  result.push_back(hit);
128  }
129  }
130  }
131  return result;
132 }
std::map< unsigned int, edm::PSimHitContainer > theSimHitMap
Definition: MuonTruth.h:79
unsigned int theDetId
Definition: MuonTruth.h:59

◆ initEvent()

void MuonTruth::initEvent ( const edm::Event event,
const edm::EventSetup setup 
)

Definition at line 31 of file MuonTruth.cc.

References badToken_, crossingframe, cscBadChambers, cscgeom, CSCsimHitsTag, CSCsimHitsXFTag, TTClusterAssociation_cfi::digiSimLinks, geomToken_, edm::InputTag::label(), linksTag, linksToken_, LogTrace, edm::Handle< T >::product(), edm::ESHandle< T >::product(), singleTopDQM_cfi::setup, simHitsToken_, simHitsXFToken_, theChargeMap, theDetId, theDigiSimLinks, theSimHitMap, theTotalCharge, theWireDigiSimLinks, wireLinksTag, and wireLinksToken_.

Referenced by CSCTruthTest::analyze().

31  {
32  theChargeMap.clear();
33  theTotalCharge = 0.0;
34  theDetId = 0;
35 
36  LogTrace("MuonTruth") << "getting CSC Strip DigiSimLink collection - " << linksTag;
37  const edm::Handle<DigiSimLinks> &digiSimLinks = event.getHandle(linksToken_);
38  theDigiSimLinks = digiSimLinks.product();
39 
40  LogTrace("MuonTruth") << "getting CSC Wire DigiSimLink collection - " << wireLinksTag;
41  const edm::Handle<DigiSimLinks> &wireDigiSimLinks = event.getHandle(wireLinksToken_);
42  theWireDigiSimLinks = wireDigiSimLinks.product();
43 
44  // get CSC Geometry to use CSCLayer methods
45  const edm::ESHandle<CSCGeometry> &mugeom = setup.getHandle(geomToken_);
46  cscgeom = mugeom.product();
47 
48  // get CSC Bad Chambers (ME4/2)
49  const edm::ESHandle<CSCBadChambers> &badChambers = setup.getHandle(badToken_);
50  cscBadChambers = badChambers.product();
51 
52  theSimHitMap.clear();
53 
54  if (crossingframe) {
55  LogTrace("MuonTruth") << "getting CrossingFrame<PSimHit> collection - " << CSCsimHitsXFTag;
56  const edm::Handle<CrossingFrame<PSimHit>> &cf = event.getHandle(simHitsXFToken_);
57 
58  std::unique_ptr<MixCollection<PSimHit>> CSCsimhits(new MixCollection<PSimHit>(cf.product()));
59  LogTrace("MuonTruth") << "... size = " << CSCsimhits->size();
60 
61  for (MixCollection<PSimHit>::MixItr hitItr = CSCsimhits->begin(); hitItr != CSCsimhits->end(); ++hitItr) {
62  theSimHitMap[hitItr->detUnitId()].push_back(*hitItr);
63  }
64 
65  } else if (!CSCsimHitsTag.label().empty()) {
66  LogTrace("MuonTruth") << "getting PSimHit collection - " << CSCsimHitsTag;
67  const edm::Handle<edm::PSimHitContainer> &CSCsimhits = event.getHandle(simHitsToken_);
68  LogTrace("MuonTruth") << "... size = " << CSCsimhits->size();
69 
70  for (edm::PSimHitContainer::const_iterator hitItr = CSCsimhits->begin(); hitItr != CSCsimhits->end(); ++hitItr) {
71  theSimHitMap[hitItr->detUnitId()].push_back(*hitItr);
72  }
73  }
74 }
std::map< unsigned int, edm::PSimHitContainer > theSimHitMap
Definition: MuonTruth.h:79
T const * product() const
Definition: Handle.h:70
const DigiSimLinks * theWireDigiSimLinks
Definition: MuonTruth.h:62
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken_
Definition: MuonTruth.h:77
const CSCGeometry * cscgeom
Definition: MuonTruth.h:81
std::string const & label() const
Definition: InputTag.h:36
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: MuonTruth.h:71
#define LogTrace(id)
T const * product() const
Definition: ESHandle.h:86
const CSCBadChambers * cscBadChambers
Definition: MuonTruth.h:47
unsigned int theDetId
Definition: MuonTruth.h:59
const edm::InputTag wireLinksTag
Definition: MuonTruth.h:65
const edm::EDGetTokenT< DigiSimLinks > wireLinksToken_
Definition: MuonTruth.h:75
const edm::InputTag CSCsimHitsXFTag
Definition: MuonTruth.h:69
const edm::InputTag linksTag
Definition: MuonTruth.h:64
float theTotalCharge
Definition: MuonTruth.h:57
const edm::InputTag CSCsimHitsTag
Definition: MuonTruth.h:68
const edm::EDGetTokenT< DigiSimLinks > linksToken_
Definition: MuonTruth.h:74
edm::EDGetTokenT< CrossingFrame< PSimHit > > simHitsXFToken_
Definition: MuonTruth.h:76
const DigiSimLinks * theDigiSimLinks
Definition: MuonTruth.h:61
const bool crossingframe
Definition: MuonTruth.h:67
const edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badToken_
Definition: MuonTruth.h:72

◆ muonFraction()

float MuonTruth::muonFraction ( )

analyze() must be called before any of the following

Definition at line 76 of file MuonTruth.cc.

References funct::abs(), particleType(), theChargeMap, and theTotalCharge.

Referenced by CSCTruthTest::analyze().

76  {
77  if (theChargeMap.empty())
78  return 0.;
79 
80  float muonCharge = 0.;
81  for (std::map<SimHitIdpr, float>::const_iterator chargeMapItr = theChargeMap.begin();
82  chargeMapItr != theChargeMap.end();
83  ++chargeMapItr) {
84  if (abs(particleType(chargeMapItr->first)) == 13) {
85  muonCharge += chargeMapItr->second;
86  }
87  }
88 
89  return muonCharge / theTotalCharge;
90 }
int particleType(SimHitIdpr truthId)
Definition: MuonTruth.cc:134
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float theTotalCharge
Definition: MuonTruth.h:57

◆ muonHits()

std::vector< PSimHit > MuonTruth::muonHits ( )

Definition at line 104 of file MuonTruth.cc.

References funct::abs(), mps_fire::result, and simHits().

104  {
105  std::vector<PSimHit> result;
106  std::vector<PSimHit> allHits = simHits();
107  std::vector<PSimHit>::const_iterator hitItr = allHits.begin(), lastHit = allHits.end();
108 
109  for (; hitItr != lastHit; ++hitItr) {
110  if (abs((*hitItr).particleType()) == 13) {
111  result.push_back(*hitItr);
112  }
113  }
114  return result;
115 }
std::vector< PSimHit > simHits()
Definition: MuonTruth.cc:92
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ particleType()

int MuonTruth::particleType ( MuonTruth::SimHitIdpr  truthId)
private

Definition at line 134 of file MuonTruth.cc.

References hfClusterShapes_cfi::hits, hitsFromSimTrack(), and mps_fire::result.

Referenced by muonFraction().

134  {
135  int result = 0;
136  const std::vector<PSimHit> &hits = hitsFromSimTrack(truthId);
137  if (!hits.empty()) {
138  result = hits[0].particleType();
139  }
140  return result;
141 }
std::vector< PSimHit > hitsFromSimTrack(SimHitIdpr truthId)
Definition: MuonTruth.cc:117

◆ simHits()

std::vector< PSimHit > MuonTruth::simHits ( )

Definition at line 92 of file MuonTruth.cc.

References hitsFromSimTrack(), mps_fire::result, and theChargeMap.

Referenced by ntupleDataFormat.TrackingParticle::bestMatchingTrack(), and muonHits().

92  {
93  std::vector<PSimHit> result;
94  for (std::map<SimHitIdpr, float>::const_iterator chargeMapItr = theChargeMap.begin();
95  chargeMapItr != theChargeMap.end();
96  ++chargeMapItr) {
97  std::vector<PSimHit> trackHits = hitsFromSimTrack(chargeMapItr->first);
98  result.insert(result.end(), trackHits.begin(), trackHits.end());
99  }
100 
101  return result;
102 }
std::map< SimHitIdpr, float > theChargeMap
Definition: MuonTruth.h:56
std::vector< PSimHit > hitsFromSimTrack(SimHitIdpr truthId)
Definition: MuonTruth.cc:117

Member Data Documentation

◆ badToken_

const edm::ESGetToken<CSCBadChambers, CSCBadChambersRcd> MuonTruth::badToken_
private

Definition at line 72 of file MuonTruth.h.

Referenced by initEvent().

◆ crossingframe

const bool MuonTruth::crossingframe
private

Definition at line 67 of file MuonTruth.h.

Referenced by initEvent(), and MuonTruth().

◆ cscBadChambers

const CSCBadChambers* MuonTruth::cscBadChambers

Definition at line 47 of file MuonTruth.h.

Referenced by initEvent().

◆ cscgeom

const CSCGeometry* MuonTruth::cscgeom
private

Definition at line 81 of file MuonTruth.h.

Referenced by analyze(), and initEvent().

◆ CSCsimHitsTag

const edm::InputTag MuonTruth::CSCsimHitsTag
private

Definition at line 68 of file MuonTruth.h.

Referenced by initEvent(), and MuonTruth().

◆ CSCsimHitsXFTag

const edm::InputTag MuonTruth::CSCsimHitsXFTag
private

Definition at line 69 of file MuonTruth.h.

Referenced by initEvent(), and MuonTruth().

◆ geomToken_

const edm::ESGetToken<CSCGeometry, MuonGeometryRecord> MuonTruth::geomToken_
private

Definition at line 71 of file MuonTruth.h.

Referenced by initEvent().

◆ linksTag

const edm::InputTag MuonTruth::linksTag
private

Definition at line 64 of file MuonTruth.h.

Referenced by initEvent().

◆ linksToken_

const edm::EDGetTokenT<DigiSimLinks> MuonTruth::linksToken_
private

Definition at line 74 of file MuonTruth.h.

Referenced by initEvent().

◆ simHitsToken_

edm::EDGetTokenT<edm::PSimHitContainer> MuonTruth::simHitsToken_
private

Definition at line 77 of file MuonTruth.h.

Referenced by initEvent(), and MuonTruth().

◆ simHitsXFToken_

edm::EDGetTokenT<CrossingFrame<PSimHit> > MuonTruth::simHitsXFToken_
private

Definition at line 76 of file MuonTruth.h.

Referenced by initEvent(), and MuonTruth().

◆ theChargeMap

std::map<SimHitIdpr, float> MuonTruth::theChargeMap
private

Definition at line 56 of file MuonTruth.h.

Referenced by addChannel(), analyze(), initEvent(), muonFraction(), and simHits().

◆ theDetId

unsigned int MuonTruth::theDetId
private

Definition at line 59 of file MuonTruth.h.

Referenced by analyze(), hitsFromSimTrack(), and initEvent().

◆ theDigiSimLinks

const DigiSimLinks* MuonTruth::theDigiSimLinks
private

Definition at line 61 of file MuonTruth.h.

Referenced by analyze(), and initEvent().

◆ theSimHitMap

std::map<unsigned int, edm::PSimHitContainer> MuonTruth::theSimHitMap
private

Definition at line 79 of file MuonTruth.h.

Referenced by hitsFromSimTrack(), and initEvent().

◆ theTotalCharge

float MuonTruth::theTotalCharge
private

Definition at line 57 of file MuonTruth.h.

Referenced by addChannel(), analyze(), initEvent(), and muonFraction().

◆ theWireDigiSimLinks

const DigiSimLinks* MuonTruth::theWireDigiSimLinks
private

Definition at line 62 of file MuonTruth.h.

Referenced by analyze(), and initEvent().

◆ wireLinksTag

const edm::InputTag MuonTruth::wireLinksTag
private

Definition at line 65 of file MuonTruth.h.

Referenced by initEvent().

◆ wireLinksToken_

const edm::EDGetTokenT<DigiSimLinks> MuonTruth::wireLinksToken_
private

Definition at line 75 of file MuonTruth.h.

Referenced by initEvent().