CMS 3D CMS Logo

RPCCosmicSeedrecHitFinder.h
Go to the documentation of this file.
1 #ifndef RecoMuon_MuonSeedGenerator_RPCCosmicSeedrecHitFinder_H
2 #define RecoMuon_MuonSeedGenerator_RPCCosmicSeedrecHitFinder_H
3 
16 
17 #ifndef RPCLayerNumber
18 #define RPCLayerNumber 12
19 #endif
20 
21 #ifndef BarrelLayerNumber
22 #define BarrelLayerNumber 6
23 #endif
24 
25 #ifndef EachEndcapLayerNumber
26 #define EachEndcapLayerNumber 3
27 #endif
28 
34 
35 public:
38  void configure(const edm::ParameterSet& iConfig);
39  void setEdge(const RPCGeometry&);
40  void unsetEdge();
42  void unsetInput();
43  void setOutput(RPCSeedFinder* Seed); // Use the same RPCSeedFinder class
44  void setLayers(const std::vector<unsigned int>& Layers);
45  void fillrecHits();
46 
47 private:
48  int LayerComponent();
49  bool complete(const GlobalVector& lastSegment, const MuonRecHitPointer& lastrecHitRef);
50  void checkandfill();
51  bool isinsideAngleRange(const GlobalVector& lastSegment,
52  const GlobalPoint& lastPosition,
53  const GlobalPoint& currentPosition);
54  bool iscorssEdge(const MuonRecHitPointer& lastrecHitRef, const MuonRecHitPointer& currentrecHitRef);
55  bool isouterLayer(const MuonRecHitPointer& recHitRef);
56 
57  // ----------member data ---------------------------
58 
59  // parameters for configuration
60  unsigned int BxRange;
61  std::vector<int> ClusterSet;
62  double MaxDeltaPhi;
63  // Signal for call fillrecHits()
64  bool isLayerset;
66  bool isInputset;
68  bool isEdgeset;
69  // Signal for filling recHits
71  // Enable layers in Barrel and Endcap
72  std::vector<unsigned int> LayersinRPC;
73  // Data members
74  std::vector<BoundPlane> innerBounds;
79 };
80 
81 #endif
RPCCosmicSeedrecHitFinder::setEdge
void setEdge(const RPCGeometry &)
Definition: RPCCosmicSeedrecHitFinder.cc:65
Vector3DBase
Definition: Vector3DBase.h:8
RPCSeedFinder.h
RPCCosmicSeedrecHitFinder::isInputset
bool isInputset
Definition: RPCCosmicSeedrecHitFinder.h:66
MuonTransientTrackingRecHit::ConstMuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:22
RPCCosmicSeedrecHitFinder::checkandfill
void checkandfill()
Definition: RPCCosmicSeedrecHitFinder.cc:324
RPCCosmicSeedrecHitFinder::unsetInput
void unsetInput()
Definition: RPCCosmicSeedrecHitFinder.cc:89
MuonTransientTrackingRecHit::ConstMuonRecHitContainer
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:27
MuonTransientTrackingRecHit::MuonRecHitContainer
std::vector< MuonRecHitPointer > MuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:26
MuonTransientTrackingRecHit.h
RPCCosmicSeedrecHitFinder::isinsideAngleRange
bool isinsideAngleRange(const GlobalVector &lastSegment, const GlobalPoint &lastPosition, const GlobalPoint &currentPosition)
Definition: RPCCosmicSeedrecHitFinder.cc:275
RPCCosmicSeedrecHitFinder::setInput
void setInput(MuonRecHitContainer(&recHits)[12])
Definition: RPCCosmicSeedrecHitFinder.cc:55
RPCCosmicSeedrecHitFinder::LayersinRPC
std::vector< unsigned int > LayersinRPC
Definition: RPCCosmicSeedrecHitFinder.h:72
RPCCosmicSeedrecHitFinder::iscorssEdge
bool iscorssEdge(const MuonRecHitPointer &lastrecHitRef, const MuonRecHitPointer &currentrecHitRef)
Definition: RPCCosmicSeedrecHitFinder.cc:287
RPCCosmicSeedrecHitFinder::isouterLayer
bool isouterLayer(const MuonRecHitPointer &recHitRef)
Definition: RPCCosmicSeedrecHitFinder.cc:265
RPCCosmicSeedrecHitFinder::ConstMuonRecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
Definition: RPCCosmicSeedrecHitFinder.h:31
RPCCosmicSeedrecHitFinder::LayerComponent
int LayerComponent()
Definition: RPCCosmicSeedrecHitFinder.cc:141
RPCCosmicSeedrecHitFinder::complete
bool complete(const GlobalVector &lastSegment, const MuonRecHitPointer &lastrecHitRef)
Definition: RPCCosmicSeedrecHitFinder.cc:159
MuonTransientTrackingRecHit::MuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:21
RPCLayerNumber
#define RPCLayerNumber
Definition: RPCCosmicSeedrecHitFinder.h:18
RPCCosmicSeedrecHitFinder::theSeed
RPCSeedFinder * theSeed
Definition: RPCCosmicSeedrecHitFinder.h:78
RPCSeedFinder
Definition: RPCSeedFinder.h:23
RPCCosmicSeedrecHitFinder::ClusterSet
std::vector< int > ClusterSet
Definition: RPCCosmicSeedrecHitFinder.h:61
RPCCosmicSeedrecHitFinder::setLayers
void setLayers(const std::vector< unsigned int > &Layers)
Definition: RPCCosmicSeedrecHitFinder.cc:101
Point3DBase< float, GlobalTag >
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
RPCDetId.h
RPCCosmicSeedrecHitFinder::~RPCCosmicSeedrecHitFinder
~RPCCosmicSeedrecHitFinder()
Definition: RPCCosmicSeedrecHitFinder.cc:43
RPCCosmicSeedrecHitFinder::fillrecHits
void fillrecHits()
Definition: RPCCosmicSeedrecHitFinder.cc:107
edm::ParameterSet
Definition: ParameterSet.h:47
RPCCosmicSeedrecHitFinder::innerBounds
std::vector< BoundPlane > innerBounds
Definition: RPCCosmicSeedrecHitFinder.h:74
RPCCosmicSeedrecHitFinder::isLayerset
bool isLayerset
Definition: RPCCosmicSeedrecHitFinder.h:64
RPCCosmicSeedrecHitFinder::isConfigured
bool isConfigured
Definition: RPCCosmicSeedrecHitFinder.h:65
RPCCosmicSeedrecHitFinder::BxRange
unsigned int BxRange
Definition: RPCCosmicSeedrecHitFinder.h:60
RPCCosmicSeedrecHitFinder::isOuterLayerfilled
bool isOuterLayerfilled
Definition: RPCCosmicSeedrecHitFinder.h:70
RPCCosmicSeedrecHitFinder::isOutputset
bool isOutputset
Definition: RPCCosmicSeedrecHitFinder.h:67
RPCCosmicSeedrecHitFinder
Definition: RPCCosmicSeedrecHitFinder.h:29
RPCCosmicSeedrecHitFinder::AllrecHits
MuonRecHitContainer AllrecHits[12]
Definition: RPCCosmicSeedrecHitFinder.h:76
RPCCosmicSeedrecHitFinder::unsetEdge
void unsetEdge()
Definition: RPCCosmicSeedrecHitFinder.cc:83
RPCCosmicSeedrecHitFinder::therecHits
ConstMuonRecHitContainer therecHits
Definition: RPCCosmicSeedrecHitFinder.h:77
RPCCosmicSeedrecHitFinder::isEdgeset
bool isEdgeset
Definition: RPCCosmicSeedrecHitFinder.h:68
RPCCosmicSeedrecHitFinder::RPCCosmicSeedrecHitFinder
RPCCosmicSeedrecHitFinder()
Definition: RPCCosmicSeedrecHitFinder.cc:26
RPCCosmicSeedrecHitFinder::ConstMuonRecHitContainer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
Definition: RPCCosmicSeedrecHitFinder.h:33
RPCCosmicSeedrecHitFinder::setOutput
void setOutput(RPCSeedFinder *Seed)
Definition: RPCCosmicSeedrecHitFinder.cc:95
RPCCosmicSeedrecHitFinder::isLayersmixed
bool isLayersmixed
Definition: RPCCosmicSeedrecHitFinder.h:75
RPCCosmicSeedrecHitFinder::configure
void configure(const edm::ParameterSet &iConfig)
Definition: RPCCosmicSeedrecHitFinder.cc:45
RPCCosmicSeedrecHitFinder::MuonRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
Definition: RPCCosmicSeedrecHitFinder.h:30
RPCGeometry
Definition: RPCGeometry.h:20
ParameterSet.h
RPCCosmicSeedrecHitFinder::MuonRecHitContainer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
Definition: RPCCosmicSeedrecHitFinder.h:32
RPCGeometry.h
RPCCosmicSeedrecHitFinder::MaxDeltaPhi
double MaxDeltaPhi
Definition: RPCCosmicSeedrecHitFinder.h:62