CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Cgem/CgemRecEvent/CgemRecEvent-00-00-16/CgemRecEvent/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"
14#include "EventModel/EventModel.h"
15#include "Identifier/Identifier.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
const CLID & CLID_RecCgemHit
Definition: EventModel.cxx:404
bool isGrouped(void)
Definition: RecCgemHit.cxx:41