#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::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::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 7 of file MuonTruth.cc.
References crossingframe, CSCsimHitsTag, CSCsimHitsXFTag, edm::InputTag::label(), simHitsToken_, and simHitsXFToken_.
|
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().
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().
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.
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.
|
private |
Definition at line 117 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 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().
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().
std::vector< PSimHit > MuonTruth::muonHits | ( | ) |
Definition at line 104 of file MuonTruth.cc.
References funct::abs(), mps_fire::result, and simHits().
|
private |
Definition at line 134 of file MuonTruth.cc.
References hfClusterShapes_cfi::hits, hitsFromSimTrack(), and mps_fire::result.
Referenced by muonFraction().
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().
|
private |
Definition at line 72 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 67 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
const CSCBadChambers* MuonTruth::cscBadChambers |
Definition at line 47 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 81 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 68 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 69 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 71 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 64 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 74 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 77 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 76 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 56 of file MuonTruth.h.
Referenced by addChannel(), analyze(), initEvent(), muonFraction(), and simHits().
|
private |
Definition at line 59 of file MuonTruth.h.
Referenced by analyze(), hitsFromSimTrack(), and initEvent().
|
private |
Definition at line 61 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 79 of file MuonTruth.h.
Referenced by hitsFromSimTrack(), and initEvent().
|
private |
Definition at line 57 of file MuonTruth.h.
Referenced by addChannel(), analyze(), initEvent(), and muonFraction().
|
private |
Definition at line 62 of file MuonTruth.h.
Referenced by analyze(), and 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().