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 
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 
99  void checkTracks(reco::TrackCollection const& tracks, std::vector<bool>& mask) const override;
100 
101  std::unique_ptr<TrackingRegion> clone() const override { return std::make_unique<CosmicTrackingRegion>(*this); }
102 
103  std::string name() const override { return "CosmicTrackingRegion"; }
104 
105 private:
106  template <typename T>
107  void hits_(const edm::EventSetup& es, const T& layer, TrackingRegion::Hits& result) const;
108 
111 
113  using cacheHits = std::vector<cacheHitPointer>;
114 
115  // not a solution! here just to try to get this thing working....
116  // in any case onDemand is NOT thread safe yet
117  // actually this solution is absolutely safe. It lays in the effimeral nature of the region itself
118  mutable cacheHits cache;
119 };
120 
121 #endif
Vector3DBase
Definition: Vector3DBase.h:8
Hit
Definition: HitCollection.h:12
CosmicTrackingRegion::checkTracks
void checkTracks(reco::TrackCollection const &tracks, std::vector< bool > &mask) const override
Definition: CosmicTrackingRegion.cc:27
MeasurementTrackerEvent.h
SeedingHit
BaseTrackerRecHit const * SeedingHit
Definition: CosmicTrackingRegion.h:22
CosmicTrackingRegion::measurementTrackerName_
std::string measurementTrackerName_
Definition: CosmicTrackingRegion.h:110
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:113770
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:51
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:59
HLT_FULL_cff.zVertex
zVertex
Definition: HLT_FULL_cff.py:113768
CosmicTrackingRegion::theMeasurementTracker_
const MeasurementTrackerEvent * theMeasurementTracker_
Definition: CosmicTrackingRegion.h:109
spr::deltaEta
static const double deltaEta
Definition: CaloConstants.h:8
CosmicTrackingRegion::name
std::string name() const override
Definition: CosmicTrackingRegion.h:103
TrackingRegion::Hits
SeedingLayerSetsHits::Hits Hits
Definition: TrackingRegion.h:47
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:83
Point3DBase< float, GlobalTag >
CosmicTrackingRegion::cacheHits
std::vector< cacheHitPointer > cacheHits
Definition: CosmicTrackingRegion.h:113
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelRecoRange< float >
edm::ParameterSet
Definition: ParameterSet.h:47
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:16
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
CosmicTrackingRegion::clone
std::unique_ptr< TrackingRegion > clone() const override
Definition: CosmicTrackingRegion.h:101
edm::EventSetup
Definition: EventSetup.h:58
SeedingLayerSetsHits::SeedingLayer
Definition: SeedingLayerSetsHits.h:37
BaseTrackerRecHit.h
CosmicTrackingRegion::~CosmicTrackingRegion
~CosmicTrackingRegion() override
Definition: CosmicTrackingRegion.h:26
TrackingRegionBase.h
mayown_ptr.h
PVValHelper::dz
Definition: PVValidationHelpers.h:51
T
long double T
Definition: Basic3DVectorLD.h:48
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
EventSetup.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TrackingRegion
Definition: TrackingRegion.h:41
CosmicTrackingRegion::cache
cacheHits cache
Definition: CosmicTrackingRegion.h:118
mps_fire.result
result
Definition: mps_fire.py:311
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
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
CosmicTrackingRegion::CosmicTrackingRegion
CosmicTrackingRegion(CosmicTrackingRegion const &rh)
Definition: CosmicTrackingRegion.h:79
CosmicTrackingRegion
Definition: CosmicTrackingRegion.h:24
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23