CMS 3D CMS Logo

CosmicTrackingRegion.h
Go to the documentation of this file.
1 #ifndef CosmicTrackingRegion_H
2 #define CosmicTrackingRegion_H
3 
16 
19 
20 #include <vector>
21 
23 
25 public:
26  ~CosmicTrackingRegion() override {}
27 
53  const GlobalPoint& vertexPos,
54  float ptMin,
55  float rVertex,
56  float zVertex,
57  float deltaEta,
58  float deltaPhi,
59  float dummy = 0.,
61  : TrackingRegionBase(dir, vertexPos, Range(-1 / ptMin, 1 / ptMin), rVertex, zVertex),
64 
66  const GlobalPoint& vertexPos,
67  float ptMin,
68  float rVertex,
69  float zVertex,
70  float deltaEta,
71  float deltaPhi,
72  const edm::ParameterSet& extra,
74  : TrackingRegionBase(dir, vertexPos, Range(-1 / ptMin, 1 / ptMin), rVertex, zVertex),
76  measurementTrackerName_ = extra.getParameter<std::string>("measurementTrackerName");
77  }
78 
80  : TrackingRegionBase(rh),
83 
84  TrackingRegion::Hits hits(const edm::EventSetup& es, const SeedingLayerSetsHits::SeedingLayer& layer) const override;
85 
86  std::unique_ptr<HitRZCompatibility> checkRZ(const DetLayer* layer,
87  const Hit& outerHit,
88  const edm::EventSetup& iSetup,
89  const DetLayer* outerlayer = nullptr,
90  float lr = 0,
91  float gz = 0,
92  float dr = 0,
93  float dz = 0) const override {
94  return nullptr;
95  }
96 
97  std::unique_ptr<TrackingRegion> clone() const override { return std::make_unique<CosmicTrackingRegion>(*this); }
98 
99  std::string name() const override { return "CosmicTrackingRegion"; }
100 
101 private:
102  template <typename T>
103  void hits_(const edm::EventSetup& es, const T& layer, TrackingRegion::Hits& result) const;
104 
107 
109  using cacheHits = std::vector<cacheHitPointer>;
110 
111  // not a solution! here just to try to get this thing working....
112  // in any case onDemand is NOT thread safe yet
113  // actually this solution is absolutely safe. It lays in the effimeral nature of the region itself
114  mutable cacheHits cache;
115 };
116 
117 #endif
Vector3DBase
Definition: Vector3DBase.h:8
Hit
Definition: SiPixelLorentzAngle.h:57
MeasurementTrackerEvent.h
SeedingHit
BaseTrackerRecHit const * SeedingHit
Definition: CosmicTrackingRegion.h:22
CosmicTrackingRegion::measurementTrackerName_
std::string measurementTrackerName_
Definition: CosmicTrackingRegion.h:106
HLTSiStripMonitoring_cff.measurementTracker
measurementTracker
Definition: HLTSiStripMonitoring_cff.py:178
DetLayer
Definition: DetLayer.h:21
CosmicTrackingRegion::CosmicTrackingRegion
CosmicTrackingRegion(const GlobalVector &dir, const GlobalPoint &vertexPos, float ptMin, float rVertex, float zVertex, float deltaEta, float deltaPhi, const edm::ParameterSet &extra, const MeasurementTrackerEvent *measurementTracker=nullptr)
Definition: CosmicTrackingRegion.h:65
HitRZConstraint.h
HLT_FULL_cff.rVertex
rVertex
Definition: HLT_FULL_cff.py:109727
CosmicTrackingRegion::hits
TrackingRegion::Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const override
get hits from layer compatible with region constraints
Definition: CosmicTrackingRegion.cc:27
mayown_ptr
Definition: mayown_ptr.h:13
CosmicTrackingRegion::hits_
void hits_(const edm::EventSetup &es, const T &layer, TrackingRegion::Hits &result) const
Definition: CosmicTrackingRegion.cc:35
HLT_FULL_cff.zVertex
zVertex
Definition: HLT_FULL_cff.py:109725
CosmicTrackingRegion::theMeasurementTracker_
const MeasurementTrackerEvent * theMeasurementTracker_
Definition: CosmicTrackingRegion.h:105
spr::deltaEta
static const double deltaEta
Definition: CaloConstants.h:8
CosmicTrackingRegion::name
std::string name() const override
Definition: CosmicTrackingRegion.h:99
TrackingRegion::Hits
SeedingLayerSetsHits::Hits Hits
Definition: TrackingRegion.h:44
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
BaseTrackerRecHit
Definition: BaseTrackerRecHit.h:15
TrackingRegion::ptMin
float ptMin() const
minimal pt of interest
Definition: TrackingRegion.h:80
Point3DBase< float, GlobalTag >
CosmicTrackingRegion::cacheHits
std::vector< cacheHitPointer > cacheHits
Definition: CosmicTrackingRegion.h:109
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelRecoRange< float >
edm::ParameterSet
Definition: ParameterSet.h:36
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:15
CosmicTrackingRegion::clone
std::unique_ptr< TrackingRegion > clone() const override
Definition: CosmicTrackingRegion.h:97
edm::EventSetup
Definition: EventSetup.h:57
SeedingLayerSetsHits::SeedingLayer
Definition: SeedingLayerSetsHits.h:37
BaseTrackerRecHit.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CosmicTrackingRegion::~CosmicTrackingRegion
~CosmicTrackingRegion() override
Definition: CosmicTrackingRegion.h:26
TrackingRegionBase.h
mayown_ptr.h
PVValHelper::dz
Definition: PVValidationHelpers.h:50
T
long double T
Definition: Basic3DVectorLD.h:48
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
EventSetup.h
TrackingRegion
Definition: TrackingRegion.h:38
CosmicTrackingRegion::cache
cacheHits cache
Definition: CosmicTrackingRegion.h:114
mps_fire.result
result
Definition: mps_fire.py:303
ParameterSet.h
dummy
Definition: DummySelector.h:38
CosmicTrackingRegion::checkRZ
std::unique_ptr< HitRZCompatibility > checkRZ(const DetLayer *layer, const Hit &outerHit, const edm::EventSetup &iSetup, const DetLayer *outerlayer=nullptr, float lr=0, float gz=0, float dr=0, float dz=0) const override
Definition: CosmicTrackingRegion.h:86
CosmicTrackingRegion::CosmicTrackingRegion
CosmicTrackingRegion(const GlobalVector &dir, const GlobalPoint &vertexPos, float ptMin, float rVertex, float zVertex, float deltaEta, float deltaPhi, float dummy=0., const MeasurementTrackerEvent *measurementTracker=nullptr)
Definition: CosmicTrackingRegion.h:52
CosmicTrackingRegion::CosmicTrackingRegion
CosmicTrackingRegion(CosmicTrackingRegion const &rh)
Definition: CosmicTrackingRegion.h:79
CosmicTrackingRegion
Definition: CosmicTrackingRegion.h:24
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23