CMS 3D CMS Logo

CandidateGroup.h
Go to the documentation of this file.
1 #ifndef L1Trigger_DTTriggerPhase2_CandidateGroup_h
2 #define L1Trigger_DTTriggerPhase2_CandidateGroup_h
3 
4 #include <tuple>
5 #include <vector>
6 #include <bitset>
7 #include <iostream>
8 #include <complex>
9 
12 
13 namespace dtbayesam {
14 
15  typedef std::bitset<8> qualitybits;
16 
18  public:
19  //Constructors and destructors
23 
24  //Hit operation procedures
25  void addHit(DTPrimitive dthit, int lay, bool isGood);
26  void removeHit(DTPrimitive dthit);
27 
28  //Get Methods
29  int candId() const { return candId_; };
30  int nhits() const { return nhits_; };
31  int nisGood() const { return nisGood_; };
32  int nLayerhits() const { return nLayerhits_; };
33  int nLayerUp() const { return nLayerUp_; };
34  int nLayerDown() const { return nLayerDown_; };
35  DTPrimitivePtrs candHits() const { return candHits_; };
36  qualitybits quality() const { return quality_; };
37  const DTPattern* pattern() const { return pattern_; };
38 
39  //Set Methods
40  void setCandId(int cId) { candId_ = cId; };
41 
42  //Pattern rankers
43  bool operator>(const CandidateGroup& cOther) const;
44  bool operator==(const CandidateGroup& cOther) const;
45 
46  private:
49  int nhits_;
51  int nLayerUp_;
53  int nisGood_;
55  int candId_;
56  };
57 
58  typedef std::shared_ptr<CandidateGroup> CandidateGroupPtr;
59  typedef std::vector<CandidateGroupPtr> CandidateGroupPtrs;
60 }; // namespace dtbayesam
61 
62 #endif
dtbayesam::CandidateGroup::candHits_
DTPrimitivePtrs candHits_
Definition: CandidateGroup.h:47
dtbayesam::qualitybits
std::bitset< 8 > qualitybits
Definition: CandidateGroup.h:15
dtbayesam::CandidateGroupPtrs
std::vector< CandidateGroupPtr > CandidateGroupPtrs
Definition: CandidateGroup.h:59
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
dtbayesam::CandidateGroup::candHits
DTPrimitivePtrs candHits() const
Definition: CandidateGroup.h:35
dtbayesam::CandidateGroup::nhits_
int nhits_
Definition: CandidateGroup.h:49
dtbayesam::CandidateGroup::nLayerDown
int nLayerDown() const
Definition: CandidateGroup.h:34
dtbayesam::CandidateGroup::nLayerUp
int nLayerUp() const
Definition: CandidateGroup.h:33
DTprimitive.h
dtbayesam::CandidateGroup::removeHit
void removeHit(DTPrimitive dthit)
Definition: CandidateGroup.cc:39
DTPattern
Definition: DTPattern.h:15
dtbayesam::CandidateGroup::nhits
int nhits() const
Definition: CandidateGroup.h:30
dtbayesam::CandidateGroup::~CandidateGroup
~CandidateGroup()
Definition: CandidateGroup.cc:22
dtbayesam::CandidateGroup::addHit
void addHit(DTPrimitive dthit, int lay, bool isGood)
Definition: CandidateGroup.cc:24
DTPrimitive
Definition: DTprimitive.h:9
dtbayesam
Definition: CandidateGroup.h:13
dtbayesam::CandidateGroup::nLayerDown_
int nLayerDown_
Definition: CandidateGroup.h:52
dtbayesam::CandidateGroup::pattern
const DTPattern * pattern() const
Definition: CandidateGroup.h:37
dtbayesam::CandidateGroup
Definition: CandidateGroup.h:17
dtbayesam::CandidateGroup::operator>
bool operator>(const CandidateGroup &cOther) const
Definition: CandidateGroup.cc:67
dtbayesam::CandidateGroup::candId_
int candId_
Definition: CandidateGroup.h:55
dtbayesam::CandidateGroup::quality_
qualitybits quality_
Definition: CandidateGroup.h:48
dtbayesam::CandidateGroup::CandidateGroup
CandidateGroup()
Definition: CandidateGroup.cc:20
dtbayesam::CandidateGroup::operator==
bool operator==(const CandidateGroup &cOther) const
Definition: CandidateGroup.cc:103
dtbayesam::CandidateGroup::quality
qualitybits quality() const
Definition: CandidateGroup.h:36
dtbayesam::CandidateGroup::candId
int candId() const
Definition: CandidateGroup.h:29
dtbayesam::CandidateGroup::nisGood
int nisGood() const
Definition: CandidateGroup.h:31
DTPattern.h
dtbayesam::CandidateGroup::nLayerhits
int nLayerhits() const
Definition: CandidateGroup.h:32
dtbayesam::CandidateGroup::nisGood_
int nisGood_
Definition: CandidateGroup.h:53
dtbayesam::CandidateGroup::pattern_
DTPattern * pattern_
Definition: CandidateGroup.h:54
dtbayesam::CandidateGroup::nLayerhits_
int nLayerhits_
Definition: CandidateGroup.h:50
dtbayesam::CandidateGroup::setCandId
void setCandId(int cId)
Definition: CandidateGroup.h:40
dtbayesam::CandidateGroupPtr
std::shared_ptr< CandidateGroup > CandidateGroupPtr
Definition: CandidateGroup.h:58
DTPrimitivePtrs
std::vector< DTPrimitivePtr > DTPrimitivePtrs
Definition: DTprimitive.h:55
dtbayesam::CandidateGroup::nLayerUp_
int nLayerUp_
Definition: CandidateGroup.h:51