CMS 3D CMS Logo

GlobalTrackingRegion.h
Go to the documentation of this file.
1 #ifndef GlobalTrackingRegion_H
2 #define GlobalTrackingRegion_H
3 
11 #include <vector>
12 
13 class GlobalTrackingRegion final : public TrackingRegion {
14 public:
22  const GlobalPoint& origin,
23  float originRadius,
24  float originHalfLength,
25  bool precise = false,
26  bool useMS = false)
29  theUseMS(useMS) {}
30 
31  // obsolete constructor
33  float originRadius = 0.2,
34  float originHalfLength = 22.7,
35  float originZPos = 0.,
36  bool precise = false)
38  GlobalPoint(0, 0, originZPos),
39  Range(-1 / ptMin, 1 / ptMin),
43 
45 
46  std::unique_ptr<HitRZCompatibility> checkRZ(const DetLayer* layer,
47  const Hit& outerHit,
48  const edm::EventSetup& iSetup,
49  const DetLayer* outerlayer = nullptr,
50  float lr = 0,
51  float gz = 0,
52  float dr = 0,
53  float dz = 0) const override;
54 
57  void checkTracks(reco::TrackCollection const& tracks, std::vector<bool>& mask) const override;
58 
59  std::unique_ptr<TrackingRegion> clone() const override { return std::make_unique<GlobalTrackingRegion>(*this); }
60 
61  std::string name() const override { return "GlobalTrackingRegion"; }
62  std::string print() const override;
63 
64 private:
65  bool thePrecise = false;
66  bool theUseMS = false;
67 };
68 #endif
Vector3DBase
Definition: Vector3DBase.h:8
TrackingRegion::origin
GlobalPoint const & origin() const
Definition: TrackingRegion.h:74
reco_skim_cfg_mod.originRadius
originRadius
Definition: reco_skim_cfg_mod.py:188
Hit
Definition: HitCollection.h:12
GlobalTrackingRegion::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: GlobalTrackingRegion.cc:34
GlobalTrackingRegion::name
std::string name() const override
Definition: GlobalTrackingRegion.h:61
hltPixelTracks_cff.precise
precise
Definition: hltPixelTracks_cff.py:32
DetLayer
Definition: DetLayer.h:21
GlobalTrackingRegion::hits
TrackingRegion::Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const override
get hits from layer compatible with region constraints
Definition: GlobalTrackingRegion.cc:29
GlobalTrackingRegion::checkTracks
void checkTracks(reco::TrackCollection const &tracks, std::vector< bool > &mask) const override
Definition: GlobalTrackingRegion.cc:116
GlobalTrackingRegion
Definition: GlobalTrackingRegion.h:13
GlobalTrackingRegion::print
std::string print() const override
Definition: GlobalTrackingRegion.cc:23
GlobalTrackingRegion::GlobalTrackingRegion
GlobalTrackingRegion(float ptMin=1., float originRadius=0.2, float originHalfLength=22.7, float originZPos=0., bool precise=false)
Definition: GlobalTrackingRegion.h:32
TrackingRegion::Hits
SeedingLayerSetsHits::Hits Hits
Definition: TrackingRegion.h:47
reco_skim_cfg_mod.originHalfLength
originHalfLength
Definition: reco_skim_cfg_mod.py:187
GlobalTrackingRegion::clone
std::unique_ptr< TrackingRegion > clone() const override
Definition: GlobalTrackingRegion.h:59
TrackingRegion::ptMin
float ptMin() const
minimal pt of interest
Definition: TrackingRegion.h:83
Point3DBase< float, GlobalTag >
beampixel_dqm_sourceclient-live_cfg.originZPos
originZPos
Definition: beampixel_dqm_sourceclient-live_cfg.py:102
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
PixelRecoRange< float >
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SeedingLayerSetsHits::SeedingLayer
Definition: SeedingLayerSetsHits.h:37
GlobalTrackingRegion::theUseMS
bool theUseMS
Definition: GlobalTrackingRegion.h:66
PVValHelper::dz
Definition: PVValidationHelpers.h:51
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
TrackingRegion
Definition: TrackingRegion.h:41
GlobalTrackingRegion::thePrecise
bool thePrecise
Definition: GlobalTrackingRegion.h:65
TrackingRegion.h
GlobalTrackingRegion::GlobalTrackingRegion
GlobalTrackingRegion(float ptMin, const GlobalPoint &origin, float originRadius, float originHalfLength, bool precise=false, bool useMS=false)
Definition: GlobalTrackingRegion.h:21
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14