#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) |
void | initEvent (const edm::Event &, const edm::EventSetup &) |
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 &, edm::ConsumesCollector &) | |
MuonTruth (const edm::ParameterSet &, edm::ConsumesCollector &&iC) | |
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 | |
const edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > | badToken_ |
const bool | crossingframe |
const CSCGeometry * | cscgeom |
const edm::InputTag | CSCsimHitsTag |
const edm::InputTag | CSCsimHitsXFTag |
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > | geomToken_ |
const edm::InputTag | linksTag |
const edm::EDGetTokenT< DigiSimLinks > | linksToken_ |
edm::EDGetTokenT< edm::PSimHitContainer > | simHitsToken_ |
edm::EDGetTokenT< CrossingFrame< PSimHit > > | simHitsXFToken_ |
std::map< SimHitIdpr, float > | theChargeMap |
unsigned int | theDetId |
const DigiSimLinks * | theDigiSimLinks |
std::map< unsigned int, edm::PSimHitContainer > | theSimHitMap |
float | theTotalCharge |
const DigiSimLinks * | theWireDigiSimLinks |
const edm::InputTag | wireLinksTag |
const edm::EDGetTokenT< DigiSimLinks > | wireLinksToken_ |
Definition at line 25 of file MuonTruth.h.
Definition at line 27 of file MuonTruth.h.
Definition at line 29 of file MuonTruth.h.
typedef std::pair<uint32_t, EncodedEventId> MuonTruth::SimHitIdpr |
Definition at line 30 of file MuonTruth.h.
Definition at line 28 of file MuonTruth.h.
MuonTruth::MuonTruth | ( | const edm::Event & | event, |
const edm::EventSetup & | setup, | ||
const edm::ParameterSet & | conf, | ||
edm::ConsumesCollector & | iC | ||
) |
Definition at line 7 of file MuonTruth.cc.
References initEvent(), and singleTopDQM_cfi::setup.
MuonTruth::MuonTruth | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 26 of file MuonTruth.cc.
References crossingframe, CSCsimHitsTag, CSCsimHitsXFTag, edm::InputTag::label(), simHitsToken_, and simHitsXFToken_.
|
private |
Definition at line 202 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().
void MuonTruth::analyze | ( | const CSCRecHit2D & | recHit | ) |
Definition at line 152 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().
void MuonTruth::analyze | ( | const CSCStripDigi & | stripDigi, |
int | rawDetIdCorrespondingToCSCLayer | ||
) |
Definition at line 175 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 186 of file MuonTruth.cc.
References addChannel(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), CSCWireDigi::getWireGroup(), theChargeMap, theDetId, theDigiSimLinks, theTotalCharge, and theWireDigiSimLinks.
|
private |
Definition at line 126 of file MuonTruth.cc.
References newFWLiteAna::found, mps_fire::result, theDetId, and theSimHitMap.
Referenced by particleType(), and simHits().
void MuonTruth::initEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 44 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_, theDigiSimLinks, theSimHitMap, theWireDigiSimLinks, wireLinksTag, and wireLinksToken_.
Referenced by MuonTruth().
float MuonTruth::muonFraction | ( | ) |
analyze() must be called before any of the following
Definition at line 85 of file MuonTruth.cc.
References funct::abs(), particleType(), theChargeMap, and theTotalCharge.
Referenced by CSCTruthTest::analyze().
std::vector< PSimHit > MuonTruth::muonHits | ( | ) |
Definition at line 113 of file MuonTruth.cc.
References funct::abs(), mps_fire::result, and simHits().
|
private |
Definition at line 143 of file MuonTruth.cc.
References hfClusterShapes_cfi::hits, hitsFromSimTrack(), and mps_fire::result.
Referenced by muonFraction().
std::vector< PSimHit > MuonTruth::simHits | ( | ) |
Definition at line 101 of file MuonTruth.cc.
References hitsFromSimTrack(), mps_fire::result, and theChargeMap.
Referenced by ntupleDataFormat.TrackingParticle::bestMatchingTrack(), and muonHits().
|
private |
Definition at line 73 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 68 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
const CSCBadChambers* MuonTruth::cscBadChambers |
Definition at line 48 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 82 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 69 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 70 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 72 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 65 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 75 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 78 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 77 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 57 of file MuonTruth.h.
Referenced by addChannel(), analyze(), muonFraction(), and simHits().
|
private |
Definition at line 60 of file MuonTruth.h.
Referenced by analyze(), and hitsFromSimTrack().
|
private |
Definition at line 62 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 80 of file MuonTruth.h.
Referenced by hitsFromSimTrack(), and initEvent().
|
private |
Definition at line 58 of file MuonTruth.h.
Referenced by addChannel(), analyze(), and muonFraction().
|
private |
Definition at line 63 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 66 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 76 of file MuonTruth.h.
Referenced by initEvent().