CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RecCgemHit.h
Go to the documentation of this file.
1/*
2 *
3 * this class models "Hit" used in Cgem Reconstruction
4 *
5 *
6 * ********************************************************/
7
8#ifndef RECCGEMHIT_H
9#define RECCGEMHIT_H
10#include "GaudiKernel/ContainedObject.h"
11#include "GaudiKernel/SmartRef.h"
12#include "GaudiKernel/ObjectVector.h"
13//#include "MdcGeomSvc/MdcGeoWire.h"
16
17
18extern const CLID& CLID_RecCgemHit;
19
20class RecCgemTrack;
21
22class RecCgemHit : virtual public ContainedObject {
23
24 public:
25 virtual const CLID& clID() const {
26 return RecCgemHit::classID();
27 }
28
29 static const CLID& classID() {
30 return CLID_RecCgemHit;
31 }
32
33 //ctor and dector
34 RecCgemHit();
35 RecCgemHit(const RecCgemHit& rechit );
37 // is this hit grouped to any track?
38 bool isGrouped(void);
39 //extractors
40 const int getId(void) const { return m_id; }
41 const int getTrkId(void) const { return m_trkid; }
42 const double getChisqAdd(void) const { return m_pChisq;}
43 const int getStat(void) const { return m_stat; }
44 const Identifier getCgemId(void) const { return m_cgemid; }
45 const double getTdc(void) const { return m_tdc; }
46 const double getAdc(void) const { return m_adc; }
47 const double getDoca(void) const { return m_doca; }
48 const double getEntra(void) const { return m_entra; }
49 const double getZhit(void) const { return m_zhit; }
50 const double getFltLen(void) const { return m_fltLen;}
51//modifiers
52 void setId(int id) { m_id = id; }
53 void setTrkId(int trkid) { m_trkid = trkid; }
54 void setChisqAdd(double pChisq) { m_pChisq = pChisq;}
55 void setStat(int stat) { m_stat = stat; }
56 void setCgemId( Identifier cgemid ) { m_cgemid = cgemid; }
57 void setTdc(double tdc) { m_tdc = tdc; }
58 void setAdc(double adc) { m_adc = adc; }
59 void setDoca(double doca) { m_doca = doca; }
60 void setEntra(double entra) { m_entra = entra; }
61 void setZhit(double zhit) { m_zhit = zhit; }
62 void setFltLen(double fltLen) { m_fltLen = fltLen;}
63
64
65 private:
66
67 int m_id; // the id of thie hit
68 int m_trkid; // id of track containing this hit,if this hit
69 // belongs to no track, set as -1;
70 double m_pChisq; // contribution to chisquare
71 int m_stat; // status flag
72 Identifier m_cgemid; // CGEM identifier
73 double m_tdc; // corrected TDC
74 double m_adc; // corrected ADC
75 double m_doca; // distance of closesest approach for helix in the cell
76 double m_entra; // entrance angle in azimuth
77 double m_zhit; // z coordinate of the hit
78 double m_fltLen; // flight length of this hit
79};
80
81typedef ObjectVector<RecCgemHit> RecCgemHitCol;
82
83#endif
84
const CLID & CLID_RecCgemHit
Definition: EventModel.cxx:404
ObjectVector< RecCgemHit > RecCgemHitCol
Definition: RecCgemHit.h:81
const double getFltLen(void) const
Definition: RecCgemHit.h:50
bool isGrouped(void)
Definition: RecCgemHit.cxx:41
void setDoca(double doca)
Definition: RecCgemHit.h:59
const double getDoca(void) const
Definition: RecCgemHit.h:47
void setAdc(double adc)
Definition: RecCgemHit.h:58
void setStat(int stat)
Definition: RecCgemHit.h:55
const Identifier getCgemId(void) const
Definition: RecCgemHit.h:44
void setTrkId(int trkid)
Definition: RecCgemHit.h:53
virtual const CLID & clID() const
Definition: RecCgemHit.h:25
const double getChisqAdd(void) const
Definition: RecCgemHit.h:42
void setChisqAdd(double pChisq)
Definition: RecCgemHit.h:54
void setEntra(double entra)
Definition: RecCgemHit.h:60
void setCgemId(Identifier cgemid)
Definition: RecCgemHit.h:56
void setTdc(double tdc)
Definition: RecCgemHit.h:57
const double getZhit(void) const
Definition: RecCgemHit.h:49
void setId(int id)
Definition: RecCgemHit.h:52
const int getTrkId(void) const
Definition: RecCgemHit.h:41
void setZhit(double zhit)
Definition: RecCgemHit.h:61
const double getEntra(void) const
Definition: RecCgemHit.h:48
const int getId(void) const
Definition: RecCgemHit.h:40
const double getAdc(void) const
Definition: RecCgemHit.h:46
const double getTdc(void) const
Definition: RecCgemHit.h:45
const int getStat(void) const
Definition: RecCgemHit.h:43
void setFltLen(double fltLen)
Definition: RecCgemHit.h:62
static const CLID & classID()
Definition: RecCgemHit.h:29