CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonSeedOrcaPatternRecognition.h
Go to the documentation of this file.
1 #ifndef MuonSeedGenerator_MuonSeedOrcaPatternRecognition_h
2 #define MuonSeedGenerator_MuonSeedOrcaPatternRecognition_h
3 
5 
6 
8 {
9 public:
10  explicit MuonSeedOrcaPatternRecognition(const edm::ParameterSet & pset);
11 
12  void produce(const edm::Event& event, const edm::EventSetup& eSetup,
13  std::vector<MuonRecHitContainer> & result);
14 
15 private:
16 
17  // aalocates a zeroed array of a given size
18  bool * zero(unsigned listSize);
19 
20  void endcapPatterns(
21  const MuonRecHitContainer & me11, const MuonRecHitContainer & me12,
22  const MuonRecHitContainer & me2, const MuonRecHitContainer & me3,
23  const MuonRecHitContainer & me4, const MuonRecHitContainer & mb1,
25  bool * MB1, bool * MB2, bool * MB3,
26  std::vector<MuonRecHitContainer> & result);
27 
28  void complete(MuonRecHitContainer& seedSegments,
29  const MuonRecHitContainer &recHits, bool* used=0) const;
30 
32  bestMatch(const ConstMuonRecHitPointer & first, MuonRecHitContainer & good_rhit) const;
33  // some score to measure how well the two hits match
34  double discriminator(const ConstMuonRecHitPointer & first,
35  MuonRecHitPointer & other) const;
36  // see if it's OK to add
37  bool check(const MuonRecHitContainer & segments);
38  bool isCrack(const ConstMuonRecHitPointer & segment) const;
39  void rememberCrackSegments(const MuonRecHitContainer & segments,
40  MuonRecHitContainer & crackSegments) const;
41 
42  void dumpLayer(const char * name, const MuonRecHitContainer & segments) const;
43 
45  MuonRecHitContainer filterSegments(const MuonRecHitContainer & segments, double dThetaCut) const;
46  void filterOverlappingChambers(MuonRecHitContainer & segments) const;
47  bool isME1A(const ConstMuonRecHitPointer & segment) const;
48  int countHits(const MuonRecHitPointer & segment) const;
49  // can mark other ME1A as used if one is.
50  void markAsUsed(int nr, const MuonRecHitContainer &recHits, bool* used) const;
51  std::vector<double> theCrackEtas;
53 };
54 
55 #endif
56 
MuonRecHitPointer bestMatch(const ConstMuonRecHitPointer &first, MuonRecHitContainer &good_rhit) const
void filterOverlappingChambers(MuonRecHitContainer &segments) const
bool isCrack(const ConstMuonRecHitPointer &segment) const
bool check(const MuonRecHitContainer &segments)
int countHits(const MuonRecHitPointer &segment) const
void produce(const edm::Event &event, const edm::EventSetup &eSetup, std::vector< MuonRecHitContainer > &result)
void endcapPatterns(const MuonRecHitContainer &me11, const MuonRecHitContainer &me12, const MuonRecHitContainer &me2, const MuonRecHitContainer &me3, const MuonRecHitContainer &me4, const MuonRecHitContainer &mb1, const MuonRecHitContainer &mb2, const MuonRecHitContainer &mb3, bool *MB1, bool *MB2, bool *MB3, std::vector< MuonRecHitContainer > &result)
tuple result
Definition: query.py:137
MuonSeedOrcaPatternRecognition(const edm::ParameterSet &pset)
void rememberCrackSegments(const MuonRecHitContainer &segments, MuonRecHitContainer &crackSegments) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool first
Definition: L1TdeRCT.cc:94
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
bool isME1A(const ConstMuonRecHitPointer &segment) const
void complete(MuonRecHitContainer &seedSegments, const MuonRecHitContainer &recHits, bool *used=0) const
void markAsUsed(int nr, const MuonRecHitContainer &recHits, bool *used) const
void dumpLayer(const char *name, const MuonRecHitContainer &segments) const
double discriminator(const ConstMuonRecHitPointer &first, MuonRecHitPointer &other) const
MuonRecHitContainer filterSegments(const MuonRecHitContainer &segments, double dThetaCut) const
apply some cuts to segments before using them