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 
17  typedef std::shared_ptr<DTPattern> DTPatternPtr;
18  typedef std::vector<DTPatternPtr> DTPatternPtrs;
19 
21  public:
22  //Constructors and destructors
26 
27  //Hit operation procedures
28  void addHit(DTPrimitive dthit, int lay, bool isGood);
29  void removeHit(DTPrimitive dthit);
30 
31  //Get Methods
32  int candId() const { return candId_; };
33  int nhits() const { return nhits_; };
34  int nisGood() const { return nisGood_; };
35  int nLayerhits() const { return nLayerhits_; };
36  int nLayerUp() const { return nLayerUp_; };
37  int nLayerDown() const { return nLayerDown_; };
38  DTPrimitivePtrs candHits() const { return candHits_; };
39  qualitybits quality() const { return quality_; };
40  const DTPatternPtr pattern() const { return pattern_; };
41 
42  //Set Methods
43  void setCandId(int cId) { candId_ = cId; };
44 
45  //Pattern rankers
46  bool operator>(const CandidateGroup& cOther) const;
47  bool operator==(const CandidateGroup& cOther) const;
48 
49  private:
52  int nhits_;
54  int nLayerUp_;
56  int nisGood_;
58  int candId_;
59  };
60 
61  typedef std::shared_ptr<CandidateGroup> CandidateGroupPtr;
62  typedef std::vector<CandidateGroupPtr> CandidateGroupPtrs;
63 }; // namespace dtbayesam
64 
65 #endif
dtbayesam::CandidateGroup::candHits_
DTPrimitivePtrs candHits_
Definition: CandidateGroup.h:50
dtbayesam::qualitybits
std::bitset< 8 > qualitybits
Definition: CandidateGroup.h:15
dtbayesam::CandidateGroup::pattern_
DTPatternPtr pattern_
Definition: CandidateGroup.h:57
dtbayesam::CandidateGroupPtrs
std::vector< CandidateGroupPtr > CandidateGroupPtrs
Definition: CandidateGroup.h:62
dtbayesam::CandidateGroup::candHits
DTPrimitivePtrs candHits() const
Definition: CandidateGroup.h:38
dtbayesam::CandidateGroup::nhits_
int nhits_
Definition: CandidateGroup.h:52
dtbayesam::CandidateGroup::nLayerDown
int nLayerDown() const
Definition: CandidateGroup.h:37
dtbayesam::CandidateGroup::nLayerUp
int nLayerUp() const
Definition: CandidateGroup.h:36
DTprimitive.h
dtbayesam::CandidateGroup::pattern
const DTPatternPtr pattern() const
Definition: CandidateGroup.h:40
dtbayesam::CandidateGroup::removeHit
void removeHit(DTPrimitive dthit)
Definition: CandidateGroup.cc:39
dtbayesam::DTPatternPtr
std::shared_ptr< DTPattern > DTPatternPtr
Definition: CandidateGroup.h:17
dtbayesam::CandidateGroup::nhits
int nhits() const
Definition: CandidateGroup.h:33
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:55
dtbayesam::CandidateGroup
Definition: CandidateGroup.h:20
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
dtbayesam::CandidateGroup::operator>
bool operator>(const CandidateGroup &cOther) const
Definition: CandidateGroup.cc:67
dtbayesam::CandidateGroup::candId_
int candId_
Definition: CandidateGroup.h:58
dtbayesam::CandidateGroup::quality_
qualitybits quality_
Definition: CandidateGroup.h:51
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:39
dtbayesam::CandidateGroup::candId
int candId() const
Definition: CandidateGroup.h:32
dtbayesam::CandidateGroup::nisGood
int nisGood() const
Definition: CandidateGroup.h:34
DTPattern.h
dtbayesam::CandidateGroup::nLayerhits
int nLayerhits() const
Definition: CandidateGroup.h:35
dtbayesam::CandidateGroup::nisGood_
int nisGood_
Definition: CandidateGroup.h:56
dtbayesam::DTPatternPtrs
std::vector< DTPatternPtr > DTPatternPtrs
Definition: CandidateGroup.h:18
dtbayesam::CandidateGroup::nLayerhits_
int nLayerhits_
Definition: CandidateGroup.h:53
dtbayesam::CandidateGroup::setCandId
void setCandId(int cId)
Definition: CandidateGroup.h:43
dtbayesam::CandidateGroupPtr
std::shared_ptr< CandidateGroup > CandidateGroupPtr
Definition: CandidateGroup.h:61
DTPrimitivePtrs
std::vector< DTPrimitivePtr > DTPrimitivePtrs
Definition: DTprimitive.h:55
dtbayesam::CandidateGroup::nLayerUp_
int nLayerUp_
Definition: CandidateGroup.h:54