CMS 3D CMS Logo

StubKiller.h
Go to the documentation of this file.
1 #ifndef __STUBKILLER_H__
2 #define __STUBKILLER_H__
3 
9 #include "TRandom3.h"
10 #include "TMath.h"
11 
12 class StubKiller {
13 public:
14  StubKiller();
16 
17  void initialise(unsigned int killScenario,
18  const TrackerTopology* trackerTopology,
19  const TrackerGeometry* trackerGeometry);
20 
22  const std::vector<int> layersToKill,
23  const double minPhiToKill,
24  const double maxPhiToKill,
25  const double minZToKill,
26  const double maxZToKill,
27  const double minRToKill,
28  const double maxRToKill,
29  const double fractionOfStubsToKillInLayers,
30  const double fractionOfStubsToKillEverywhere);
31 
32  bool killStub(const TTStub<Ref_Phase2TrackerDigi_>* stub);
33 
35 
36  std::map<DetId, float> getListOfDeadModules() { return deadModules_; }
37 
38 private:
39  void chooseModulesToKill();
41 
42  unsigned int killScenario_;
45 
46  std::vector<int> layersToKill_;
47  double minPhiToKill_;
48  double maxPhiToKill_;
49  double minZToKill_;
50  double maxZToKill_;
51  double minRToKill_;
52  double maxRToKill_;
56 
57  std::map<DetId, float> deadModules_;
58 };
59 
60 #endif
std::vector< int > layersToKill_
Definition: StubKiller.h:46
bool killStubInDeadModule(const TTStub< Ref_Phase2TrackerDigi_ > *stub)
Definition: StubKiller.cc:279
std::map< DetId, float > deadModules_
Definition: StubKiller.h:57
double minPhiToKill_
Definition: StubKiller.h:47
double fractionOfStubsToKillInLayers_
Definition: StubKiller.h:53
double minRToKill_
Definition: StubKiller.h:51
void initialise(unsigned int killScenario, const TrackerTopology *trackerTopology, const TrackerGeometry *trackerGeometry)
Definition: StubKiller.cc:20
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)
Definition: StubKiller.cc:212
const TrackerGeometry * trackerGeometry_
Definition: StubKiller.h:44
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
double minZToKill_
Definition: StubKiller.h:49
unsigned int killScenario_
Definition: StubKiller.h:42
double maxRToKill_
Definition: StubKiller.h:52
std::map< DetId, float > getListOfDeadModules()
Definition: StubKiller.h:36
void chooseModulesToKill()
Definition: StubKiller.cc:144
double fractionOfStubsToKillEverywhere_
Definition: StubKiller.h:54
void addDeadLayerModulesToDeadModuleList()
Definition: StubKiller.cc:157
double maxPhiToKill_
Definition: StubKiller.h:48
double maxZToKill_
Definition: StubKiller.h:50
double fractionOfModulesToKillEverywhere_
Definition: StubKiller.h:55
const TrackerTopology * trackerTopology_
Definition: StubKiller.h:43