#include <MuonTruth.h>
Public Types | |
typedef edm::DetSetVector < StripDigiSimLink > | DigiSimLinks |
typedef edm::DetSet < StripDigiSimLink > | LayerLinks |
typedef std::pair< uint32_t, EncodedEventId > | SimHitIdpr |
typedef edm::DetSetVector < StripDigiSimLink > | WireDigiSimLinks |
Public Member Functions | |
void | analyze (const CSCRecHit2D &recHit) |
void | analyze (const CSCStripDigi &stripDigi, int rawDetIdCorrespondingToCSCLayer) |
void | analyze (const CSCWireDigi &wireDigi, int rawDetIdCorrespondingToCSCLayer) |
std::vector< SimHitIdpr > | associateCSCHitId (const CSCRecHit2D *) |
std::vector< SimHitIdpr > | associateHitId (const TrackingRecHit &) |
float | muonFraction () |
analyze() must be called before any of the following More... | |
std::vector< PSimHit > | muonHits () |
MuonTruth (const edm::Event &, const edm::EventSetup &, const edm::ParameterSet &) | |
std::vector< PSimHit > | simHits () |
Public Attributes | |
const CSCBadChambers * | cscBadChambers |
Private Member Functions | |
void | addChannel (const LayerLinks &layerLinks, int channel, float weight=1.) |
std::vector< PSimHit > | hitsFromSimTrack (SimHitIdpr truthId) |
int | particleType (SimHitIdpr truthId) |
Private Attributes | |
bool | crossingframe |
const CSCGeometry * | cscgeom |
edm::InputTag | CSCsimHitsTag |
edm::InputTag | CSCsimHitsXFTag |
edm::InputTag | linksTag |
std::map< SimHitIdpr, float > | theChargeMap |
unsigned int | theDetId |
const DigiSimLinks * | theDigiSimLinks |
std::map< unsigned int, edm::PSimHitContainer > | theSimHitMap |
float | theTotalCharge |
const DigiSimLinks * | theWireDigiSimLinks |
edm::InputTag | wireLinksTag |
Definition at line 23 of file MuonTruth.h.
Definition at line 26 of file MuonTruth.h.
Definition at line 28 of file MuonTruth.h.
typedef std::pair<uint32_t, EncodedEventId> MuonTruth::SimHitIdpr |
Definition at line 29 of file MuonTruth.h.
Definition at line 27 of file MuonTruth.h.
MuonTruth::MuonTruth | ( | const edm::Event & | event, |
const edm::EventSetup & | setup, | ||
const edm::ParameterSet & | conf | ||
) |
Definition at line 8 of file MuonTruth.cc.
References crossingframe, cscBadChambers, cscgeom, CSCsimHitsTag, CSCsimHitsXFTag, edm::EventSetup::get(), edm::InputTag::label(), linksTag, LogTrace, edm::Handle< T >::product(), edm::ESHandle< class >::product(), theDigiSimLinks, theSimHitMap, theWireDigiSimLinks, and wireLinksTag.
|
private |
Definition at line 289 of file MuonTruth.cc.
References edm::DetSet< T >::begin(), DeDxDiscriminatorTools::charge(), edm::DetSet< T >::end(), theChargeMap, theTotalCharge, and histoStyle::weight.
Referenced by analyze().
void MuonTruth::analyze | ( | const CSCRecHit2D & | recHit | ) |
Definition at line 231 of file MuonTruth.cc.
References addChannel(), CSCLayerGeometry::channel(), cscgeom, edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), geometry, CSCGeometry::layer(), theChargeMap, theDetId, theDigiSimLinks, theTotalCharge, and histoStyle::weight.
Referenced by CSCTruthTest::analyze().
void MuonTruth::analyze | ( | const CSCStripDigi & | stripDigi, |
int | rawDetIdCorrespondingToCSCLayer | ||
) |
Definition at line 257 of file MuonTruth.cc.
References addChannel(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), CSCStripDigi::getStrip(), theChargeMap, theDetId, theDigiSimLinks, and theTotalCharge.
void MuonTruth::analyze | ( | const CSCWireDigi & | wireDigi, |
int | rawDetIdCorrespondingToCSCLayer | ||
) |
Definition at line 271 of file MuonTruth.cc.
References addChannel(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), CSCWireDigi::getWireGroup(), theChargeMap, theDetId, theDigiSimLinks, theTotalCharge, and theWireDigiSimLinks.
std::vector< MuonTruth::SimHitIdpr > MuonTruth::associateCSCHitId | ( | const CSCRecHit2D * | cscrechit | ) |
Definition at line 121 of file MuonTruth.cc.
References CSCLayerGeometry::channel(), cscgeom, edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), geometry, CSCGeometry::layer(), link(), theDetId, and theDigiSimLinks.
Referenced by MuonAssociatorByHits::getMatchedIds().
std::vector< MuonTruth::SimHitIdpr > MuonTruth::associateHitId | ( | const TrackingRecHit & | hit | ) |
Definition at line 154 of file MuonTruth.cc.
References CSCLayerGeometry::channel(), cscgeom, edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), geometry, CSCGeometry::layer(), link(), theDetId, and theDigiSimLinks.
|
private |
Definition at line 195 of file MuonTruth.cc.
References query::result, theDetId, and theSimHitMap.
Referenced by particleType(), and simHits().
float MuonTruth::muonFraction | ( | ) |
analyze() must be called before any of the following
Definition at line 72 of file MuonTruth.cc.
References abs, particleType(), theChargeMap, and theTotalCharge.
Referenced by CSCTruthTest::analyze().
std::vector< PSimHit > MuonTruth::muonHits | ( | ) |
|
private |
Definition at line 219 of file MuonTruth.cc.
References hitsFromSimTrack(), and query::result.
Referenced by muonFraction().
std::vector< PSimHit > MuonTruth::simHits | ( | ) |
Definition at line 90 of file MuonTruth.cc.
References hitsFromSimTrack(), query::result, and theChargeMap.
Referenced by muonHits().
|
private |
Definition at line 67 of file MuonTruth.h.
Referenced by MuonTruth().
const CSCBadChambers* MuonTruth::cscBadChambers |
Definition at line 46 of file MuonTruth.h.
Referenced by MuonTruth().
|
private |
Definition at line 73 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and MuonTruth().
|
private |
Definition at line 68 of file MuonTruth.h.
Referenced by MuonTruth().
|
private |
Definition at line 69 of file MuonTruth.h.
Referenced by MuonTruth().
|
private |
Definition at line 64 of file MuonTruth.h.
Referenced by MuonTruth().
|
private |
Definition at line 56 of file MuonTruth.h.
Referenced by addChannel(), analyze(), muonFraction(), and simHits().
|
private |
Definition at line 59 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and hitsFromSimTrack().
|
private |
Definition at line 61 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and MuonTruth().
|
private |
Definition at line 71 of file MuonTruth.h.
Referenced by hitsFromSimTrack(), and MuonTruth().
|
private |
Definition at line 57 of file MuonTruth.h.
Referenced by addChannel(), analyze(), and muonFraction().
|
private |
Definition at line 62 of file MuonTruth.h.
Referenced by analyze(), and MuonTruth().
|
private |
Definition at line 65 of file MuonTruth.h.
Referenced by MuonTruth().