#include <StubKiller.h>
Public Types | |
enum | KillOptions { KillOptions::none = 0, KillOptions::layer5 = 1, KillOptions::layer1 = 2, KillOptions::layer1layer2 = 3, KillOptions::layer1disk1 = 4, KillOptions::random = 5 } |
Public Member Functions | |
bool | killStub (const TTStub< Ref_Phase2TrackerDigi_ > *stub) const |
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) const |
bool | killStubInDeadModule (const TTStub< Ref_Phase2TrackerDigi_ > *stub) const |
const std::map< DetId, float > & | listOfDeadModules () const |
StubKiller (KillOptions killScenario, const TrackerTopology *trackerTopology, const TrackerGeometry *trackerGeometry, const edm::Event &iEvent) | |
Private Member Functions | |
void | addDeadLayerModulesToDeadModuleList () |
void | chooseModulesToKill () |
Private Attributes | |
std::map< DetId, float > | deadModules_ |
double | fractionOfModulesToKillEverywhere_ |
double | fractionOfStubsToKillEverywhere_ |
double | fractionOfStubsToKillInLayers_ |
KillOptions | killScenario_ |
std::vector< int > | layersToKill_ |
double | maxPhiToKill_ |
double | maxRToKill_ |
double | maxZToKill_ |
double | minPhiToKill_ |
double | minRToKill_ |
double | minZToKill_ |
CLHEP::HepRandomEngine * | rndmEngine_ |
edm::Service< edm::RandomNumberGenerator > | rndmService_ |
const TrackerGeometry * | trackerGeometry_ |
const TrackerTopology * | trackerTopology_ |
Definition at line 20 of file StubKiller.h.
|
strong |
Enumerator | |
---|---|
none | |
layer5 | |
layer1 | |
layer1layer2 | |
layer1disk1 | |
random |
Definition at line 22 of file StubKiller.h.
StubKiller::StubKiller | ( | StubKiller::KillOptions | killScenario, |
const TrackerTopology * | trackerTopology, | ||
const TrackerGeometry * | trackerGeometry, | ||
const edm::Event & | iEvent | ||
) |
Definition at line 9 of file StubKiller.cc.
References addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), deadModules_, Exception, fractionOfModulesToKillEverywhere_, fractionOfStubsToKillEverywhere_, fractionOfStubsToKillInLayers_, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), killScenario_, layer1, layer1disk1, layer1layer2, layer5, layersToKill_, M_PI, maxPhiToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, minZToKill_, random, rndmEngine_, and rndmService_.
|
private |
Definition at line 239 of file StubKiller.cc.
References deadModules_, reco::deltaPhi(), TrackerGeometry::detUnits(), spr::find(), fractionOfStubsToKillInLayers_, TrackerTopology::layer(), layersToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, minZToKill_, TrackerTopology::side(), DetId::subdetId(), StripSubdetector::TIB, TrackerTopology::tidWheel(), StripSubdetector::TOB, trackerGeometry_, and trackerTopology_.
Referenced by StubKiller().
|
private |
Definition at line 227 of file StubKiller.cc.
References deadModules_, TrackerGeometry::detUnits(), fractionOfModulesToKillEverywhere_, TrackerTopology::isLower(), rndmEngine_, trackerGeometry_, and trackerTopology_.
Referenced by StubKiller().
bool StubKiller::killStub | ( | const TTStub< Ref_Phase2TrackerDigi_ > * | stub | ) | const |
Definition at line 110 of file StubKiller.cc.
References fractionOfStubsToKillEverywhere_, fractionOfStubsToKillInLayers_, killScenario_, killStubInDeadModule(), layersToKill_, maxPhiToKill_, maxRToKill_, maxZToKill_, minPhiToKill_, minRToKill_, minZToKill_, and none.
Referenced by tmtt::Stub::setFrontend().
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 | ||
) | const |
Definition at line 141 of file StubKiller.cc.
References TTStub< T >::clusterRef(), deadModules_, reco::deltaPhi(), spr::find(), TTStub< T >::getDetId(), TrackerGeometry::idToDetUnit(), TrackerTopology::layer(), Topology::localPosition(), DetId::rawId(), rndmEngine_, TrackerTopology::side(), PixelGeomDetUnit::specificTopology(), DetId::subdetId(), GeomDet::surface(), StripSubdetector::TIB, TrackerTopology::tidWheel(), StripSubdetector::TOB, Surface::toGlobal(), trackerGeometry_, and trackerTopology_.
bool StubKiller::killStubInDeadModule | ( | const TTStub< Ref_Phase2TrackerDigi_ > * | stub | ) | const |
Definition at line 206 of file StubKiller.cc.
References deadModules_, TTStub< T >::getDetId(), DetId::rawId(), and rndmEngine_.
Referenced by killStub().
|
inline |
|
private |
Definition at line 72 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), killStub(), killStubInDeadModule(), listOfDeadModules(), and StubKiller().
|
private |
Definition at line 70 of file StubKiller.h.
Referenced by chooseModulesToKill(), and StubKiller().
|
private |
Definition at line 69 of file StubKiller.h.
Referenced by killStub(), and StubKiller().
|
private |
Definition at line 68 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 57 of file StubKiller.h.
Referenced by killStub(), and StubKiller().
|
private |
Definition at line 61 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 63 of file StubKiller.h.
Referenced by killStub(), and StubKiller().
|
private |
Definition at line 67 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 65 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 62 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 66 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 64 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), killStub(), and StubKiller().
|
private |
Definition at line 75 of file StubKiller.h.
Referenced by chooseModulesToKill(), killStub(), killStubInDeadModule(), and StubKiller().
|
private |
Definition at line 74 of file StubKiller.h.
Referenced by StubKiller().
|
private |
Definition at line 59 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), and killStub().
|
private |
Definition at line 58 of file StubKiller.h.
Referenced by addDeadLayerModulesToDeadModuleList(), chooseModulesToKill(), and killStub().