#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 &) | |
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 | |
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 24 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 initEvent().
MuonTruth::MuonTruth | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 22 of file MuonTruth.cc.
References crossingframe, CSCsimHitsTag, CSCsimHitsXFTag, edm::InputTag::label(), linksTag, and wireLinksTag.
|
private |
Definition at line 206 of file MuonTruth.cc.
References edm::DetSet< T >::begin(), RecoTauCleanerPlugins::charge, edm::DetSet< T >::end(), theChargeMap, theTotalCharge, and histoStyle::weight.
Referenced by analyze().
void MuonTruth::analyze | ( | const CSCRecHit2D & | recHit | ) |
Definition at line 156 of file MuonTruth.cc.
References CSCRecHit2D::adcs(), addChannel(), CSCLayerGeometry::channel(), CSCRecHit2D::channels(), CSCRecHit2D::cscDetId(), cscgeom, edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), relativeConstraints::geometry, CSCGeometry::layer(), CSCRecHit2D::nStrips(), DetId::rawId(), theChargeMap, theDetId, theDigiSimLinks, theTotalCharge, and histoStyle::weight.
Referenced by CSCTruthTest::analyze().
void MuonTruth::analyze | ( | const CSCStripDigi & | stripDigi, |
int | rawDetIdCorrespondingToCSCLayer | ||
) |
Definition at line 179 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 190 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 130 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 42 of file MuonTruth.cc.
References crossingframe, cscBadChambers, cscgeom, CSCsimHitsTag, CSCsimHitsXFTag, TTClusterAssociation_cfi::digiSimLinks, edm::EventSetup::get(), edm::InputTag::label(), linksTag, LogTrace, edm::Handle< T >::product(), edm::ESHandle< class >::product(), theDigiSimLinks, theSimHitMap, theWireDigiSimLinks, and wireLinksTag.
Referenced by MuonTruth().
float MuonTruth::muonFraction | ( | ) |
analyze() must be called before any of the following
Definition at line 89 of file MuonTruth.cc.
References funct::abs(), particleType(), theChargeMap, and theTotalCharge.
Referenced by CSCTruthTest::analyze().
std::vector< PSimHit > MuonTruth::muonHits | ( | ) |
Definition at line 117 of file MuonTruth.cc.
References funct::abs(), mps_fire::result, and simHits().
|
private |
Definition at line 147 of file MuonTruth.cc.
References hitsFromSimTrack(), and mps_fire::result.
Referenced by muonFraction().
std::vector< PSimHit > MuonTruth::simHits | ( | ) |
Definition at line 105 of file MuonTruth.cc.
References hitsFromSimTrack(), mps_fire::result, and theChargeMap.
Referenced by ntupleDataFormat.TrackingParticle::bestMatchingTrack(), and muonHits().
|
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 73 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 64 of file MuonTruth.h.
Referenced by initEvent(), and 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(), and hitsFromSimTrack().
|
private |
Definition at line 61 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 71 of file MuonTruth.h.
Referenced by hitsFromSimTrack(), and initEvent().
|
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 initEvent().
|
private |
Definition at line 65 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().