CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SETSeedFinder.h
Go to the documentation of this file.
1 #ifndef MuonSeedGenerator_SETSeedFinder_h
2 #define MuonSeedGenerator_SETSeedFinder_h
3 
8 #include "CLHEP/Matrix/Vector.h"
9 #include "CLHEP/Vector/ThreeVector.h"
10 
11 
13 {
14 public:
16 
17  explicit SETSeedFinder(const edm::ParameterSet & pset);
18  virtual ~SETSeedFinder() {delete thePtExtractor;}
20  virtual void setBField(const MagneticField * field) {}
21 
29  virtual void seeds(const MuonRecHitContainer & cluster,
30  std::vector<TrajectorySeed> & result);
31 
32  void setServiceProxy(MuonServiceProxy * service) {theService = service;}
33 
34  std::vector<MuonRecHitContainer>
35  sortByLayer(MuonRecHitContainer & cluster) const;
36 
37  //---- For protection against huge memory consumtion
38  void limitCombinatorics(std::vector< MuonRecHitContainer > & MuonRecHitContainer_perLayer);
39 
40  std::vector<MuonRecHitContainer>
41  findAllValidSets(const std::vector<MuonRecHitContainer> & MuonRecHitContainer_perLayer);
42 
43  std::pair <int, int> checkAngleDeviation(double dPhi_1, double dPhi_2) const;
44 
45  void validSetsPrePruning(std::vector<MuonRecHitContainer> & allValidSets);
46 
47  void pre_prune(MuonRecHitContainer & validSet) const;
48 
49  std::vector <SeedCandidate>
50  fillSeedCandidates(std::vector <MuonRecHitContainer> & allValidSets);
51 
52  void estimateMomentum(const MuonRecHitContainer & validSet,
53  CLHEP::Hep3Vector & momentum, int & charge) const;
54 
57 
58 private:
60 
63 
64 
65 };
66 
67 #endif
68 
69 
70 
void setServiceProxy(MuonServiceProxy *service)
Definition: SETSeedFinder.h:32
virtual ~SETSeedFinder()
Definition: SETSeedFinder.h:18
bool apply_prePruning
Definition: SETSeedFinder.h:61
std::pair< int, int > checkAngleDeviation(double dPhi_1, double dPhi_2) const
void pre_prune(MuonRecHitContainer &validSet) const
bool useSegmentsInTrajectory
Definition: SETSeedFinder.h:62
TrajectorySeed makeSeed(const TrajectoryStateOnSurface &tsos, const TransientTrackingRecHit::ConstRecHitContainer &hits) const
double charge(const std::vector< uint8_t > &Ampls)
std::vector< MuonRecHitContainer > sortByLayer(MuonRecHitContainer &cluster) const
void estimateMomentum(const MuonRecHitContainer &validSet, CLHEP::Hep3Vector &momentum, int &charge) const
tuple result
Definition: query.py:137
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
Definition: SETSeedFinder.h:15
virtual void seeds(const MuonRecHitContainer &cluster, std::vector< TrajectorySeed > &result)
MuonSeedPtExtractor * thePtExtractor
std::vector< ConstRecHitPointer > ConstRecHitContainer
void limitCombinatorics(std::vector< MuonRecHitContainer > &MuonRecHitContainer_perLayer)
std::vector< MuonRecHitContainer > findAllValidSets(const std::vector< MuonRecHitContainer > &MuonRecHitContainer_perLayer)
MuonServiceProxy * theService
Definition: SETSeedFinder.h:59
virtual void setBField(const MagneticField *field)
ignore - uses MuonServiceProxy
Definition: SETSeedFinder.h:20
void validSetsPrePruning(std::vector< MuonRecHitContainer > &allValidSets)
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
std::vector< SeedCandidate > fillSeedCandidates(std::vector< MuonRecHitContainer > &allValidSets)
std::vector< MuonRecHitPointer > MuonRecHitContainer
SETSeedFinder(const edm::ParameterSet &pset)