#include <StubKiller.h>
Public Member Functions | |
std::map< DetId, float > | getListOfDeadModules () |
void | initialise (unsigned int killScenario, const TrackerTopology *trackerTopology, const TrackerGeometry *trackerGeometry) |
bool | killStub (const TTStub< Ref_Phase2TrackerDigi_ > *stub, const std::vector< int > layersToKill, const double minPhiToKill, const double maxPhiToKill, const double minZToKill, const double maxZToKill, const double minRToKill, const double maxRToKill, const double fractionOfStubsToKillInLayers, const double fractionOfStubsToKillEverywhere) |
bool | killStub (const TTStub< Ref_Phase2TrackerDigi_ > *stub) |
bool | killStubInDeadModule (const TTStub< Ref_Phase2TrackerDigi_ > *stub) |
StubKiller () | |
~StubKiller () | |
Private Member Functions | |
void | addDeadLayerModulesToDeadModuleList () |
void | chooseModulesToKill () |
Private Attributes | |
std::map< DetId, float > | deadModules_ |
double | fractionOfModulesToKillEverywhere_ |
double | fractionOfStubsToKillEverywhere_ |
double | fractionOfStubsToKillInLayers_ |
unsigned int | killScenario_ |
std::vector< int > | layersToKill_ |
double | maxPhiToKill_ |
double | maxRToKill_ |
double | maxZToKill_ |
double | minPhiToKill_ |
double | minRToKill_ |
double | minZToKill_ |
const TrackerGeometry * | trackerGeometry_ |
const TrackerTopology * | trackerTopology_ |
Definition at line 12 of file StubKiller.h.
StubKiller::StubKiller | ( | ) |
Definition at line 5 of file StubKiller.cc.
|
inline |
Definition at line 15 of file StubKiller.h.
|
private |
Definition at line 157 of file StubKiller.cc.
References deadModules_, TrackerGeometry::detUnits(), spr::find(), fractionOfStubsToKillInLayers_, TrackerTopology::layer(), layersToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, minZToKill_, Pi, TrackerTopology::side(), DetId::subdetId(), StripSubdetector::TIB, TrackerTopology::tidWheel(), StripSubdetector::TOB, trackerGeometry_, and trackerTopology_.
Referenced by initialise().
|
private |
Definition at line 144 of file StubKiller.cc.
References deadModules_, TrackerGeometry::detUnits(), fractionOfModulesToKillEverywhere_, TrackerTopology::isLower(), trackerGeometry_, and trackerTopology_.
Referenced by initialise().
|
inline |
void StubKiller::initialise | ( | unsigned int | killScenario, |
const TrackerTopology * | trackerTopology, | ||
const TrackerGeometry * | trackerGeometry | ||
) |
Definition at line 20 of file StubKiller.cc.
References addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), deadModules_, fractionOfModulesToKillEverywhere_, fractionOfStubsToKillEverywhere_, fractionOfStubsToKillInLayers_, killScenario_, layersToKill_, maxPhiToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, minZToKill_, trackerGeometry_, and trackerTopology_.
Referenced by L1FPGATrackProducer::produce().
bool StubKiller::killStub | ( | const TTStub< Ref_Phase2TrackerDigi_ > * | stub, |
const std::vector< int > | layersToKill, | ||
const double | minPhiToKill, | ||
const double | maxPhiToKill, | ||
const double | minZToKill, | ||
const double | maxZToKill, | ||
const double | minRToKill, | ||
const double | maxRToKill, | ||
const double | fractionOfStubsToKillInLayers, | ||
const double | fractionOfStubsToKillEverywhere | ||
) |
Definition at line 212 of file StubKiller.cc.
References TTStub< T >::clusterRef(), spr::find(), TTStub< T >::getDetId(), TrackerGeometry::idToDetUnit(), TrackerTopology::layer(), Topology::localPosition(), Pi, DetId::rawId(), TrackerTopology::side(), PixelGeomDetUnit::specificTopology(), DetId::subdetId(), GeomDet::surface(), StripSubdetector::TIB, TrackerTopology::tidWheel(), StripSubdetector::TOB, Surface::toGlobal(), trackerGeometry_, and trackerTopology_.
Referenced by killStub(), and L1FPGATrackProducer::produce().
bool StubKiller::killStub | ( | const TTStub< Ref_Phase2TrackerDigi_ > * | stub | ) |
Definition at line 188 of file StubKiller.cc.
References fractionOfStubsToKillEverywhere_, fractionOfStubsToKillInLayers_, killScenario_, killStub(), killStubInDeadModule(), layersToKill_, maxPhiToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, and minZToKill_.
bool StubKiller::killStubInDeadModule | ( | const TTStub< Ref_Phase2TrackerDigi_ > * | stub | ) |
Definition at line 279 of file StubKiller.cc.
References deadModules_, TTStub< T >::getDetId(), and DetId::rawId().
Referenced by killStub().
|
private |
Definition at line 57 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), getListOfDeadModules(), initialise(), and killStubInDeadModule().
|
private |
Definition at line 55 of file StubKiller.h.
Referenced by chooseModulesToKill(), and initialise().
|
private |
Definition at line 54 of file StubKiller.h.
Referenced by initialise(), and killStub().
|
private |
Definition at line 53 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 42 of file StubKiller.h.
Referenced by initialise(), and killStub().
|
private |
Definition at line 46 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 48 of file StubKiller.h.
Referenced by initialise(), and killStub().
|
private |
Definition at line 52 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 50 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 47 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 51 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 49 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), initialise(), and killStub().
|
private |
Definition at line 44 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), initialise(), and killStub().
|
private |
Definition at line 43 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), initialise(), and killStub().