#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 &) |
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 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 | ||
) |
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 315 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 257 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(), 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 283 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 297 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 147 of file MuonTruth.cc.
References CSCLayerGeometry::channel(), CSCRecHit2D::channels(), CSCRecHit2D::cscDetId(), cscgeom, edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), geometry, CSCGeometry::layer(), link(), CSCRecHit2D::nStrips(), DetId::rawId(), theDetId, and theDigiSimLinks.
Referenced by MuonAssociatorByHits::getMatchedIds().
std::vector< MuonTruth::SimHitIdpr > MuonTruth::associateHitId | ( | const TrackingRecHit & | hit | ) |
Definition at line 180 of file MuonTruth.cc.
References CSCLayerGeometry::channel(), CSCRecHit2D::channels(), CSCRecHit2D::cscDetId(), cscgeom, edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), geometry, CSCGeometry::layer(), link(), CSCRecHit2D::nStrips(), DetId::rawId(), theDetId, and theDigiSimLinks.
|
private |
Definition at line 221 of file MuonTruth.cc.
References query::result, theDetId, and theSimHitMap.
Referenced by particleType(), and simHits().
void MuonTruth::initEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 43 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.
Referenced by MuonTruth().
float MuonTruth::muonFraction | ( | ) |
analyze() must be called before any of the following
Definition at line 98 of file MuonTruth.cc.
References funct::abs(), particleType(), theChargeMap, and theTotalCharge.
Referenced by CSCTruthTest::analyze().
std::vector< PSimHit > MuonTruth::muonHits | ( | ) |
|
private |
Definition at line 245 of file MuonTruth.cc.
References hitsFromSimTrack(), and query::result.
Referenced by muonFraction().
std::vector< PSimHit > MuonTruth::simHits | ( | ) |
Definition at line 116 of file MuonTruth.cc.
References hitsFromSimTrack(), query::result, and theChargeMap.
Referenced by muonHits().
|
private |
Definition at line 72 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
const CSCBadChambers* MuonTruth::cscBadChambers |
Definition at line 51 of file MuonTruth.h.
Referenced by initEvent().
|
private |
Definition at line 78 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and initEvent().
|
private |
Definition at line 73 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().
|
private |
Definition at line 74 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 61 of file MuonTruth.h.
Referenced by addChannel(), analyze(), muonFraction(), and simHits().
|
private |
Definition at line 64 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and hitsFromSimTrack().
|
private |
Definition at line 66 of file MuonTruth.h.
Referenced by analyze(), associateCSCHitId(), associateHitId(), and initEvent().
|
private |
Definition at line 76 of file MuonTruth.h.
Referenced by hitsFromSimTrack(), and initEvent().
|
private |
Definition at line 62 of file MuonTruth.h.
Referenced by addChannel(), analyze(), and muonFraction().
|
private |
Definition at line 67 of file MuonTruth.h.
Referenced by analyze(), and initEvent().
|
private |
Definition at line 70 of file MuonTruth.h.
Referenced by initEvent(), and MuonTruth().