CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RecCgemDedxHit.h
Go to the documentation of this file.
1/*
2 * @class : CgemDedx
3 *
4 * this class models "dE/dx hit" used in Cgem Reconstruction
5 *
6 * @author: xcao
7 *
8 * ********************************************************/
9
10#ifndef RECCGEMDEDXHIT_H
11#define RECCGEMDEDXHIT_H
12#include "GaudiKernel/ContainedObject.h"
13#include "GaudiKernel/SmartRef.h"
14#include "GaudiKernel/ObjectVector.h"
17//#include "ExtEvent/ExtTrack.h"
18//#include "DstEvent/DstDedx.h"
19
20
21
22extern const CLID& CLID_RecCgemDedxHit;
23class RecCgemDedx;
24
25class RecCgemDedxHit : virtual public ContainedObject {
26
27 public:
28 virtual const CLID& clID() const {
30 }
31
32 static const CLID& classID() {
34 }
35
36
37 //ctor and dector
39 RecCgemDedxHit(const RecCgemDedxHit& recdedxhit );
41 // is this hit grouped to any track?
42 bool isGrouped(void);
43 //extractors
44 const int getTrkId(void) const { return m_trkid; }
45 double getPathLength(void) const { return m_pathlength; }
46 const Identifier getCgemId(void) const { return m_cgemid; }
47 //modifiers
48 void setTrkId(int trkid) { m_trkid = trkid; }
49 void setPathLength(double pathlength) { m_pathlength = pathlength; }
50 void setCgemId( Identifier cgemid ) { m_cgemid = cgemid; }
51
52 private:
53 int m_trkid; // id of track containing this hit,if this hit
54 // belongs to no track, set as -1;
55 double m_pathlength; //path length of track cross a cell
56 Identifier m_cgemid; // CGEM identifier
57};
58
59typedef ObjectVector<RecCgemDedxHit> RecCgemDedxHitCol;
60
61#endif
62
ObjectVector< RecCgemDedxHit > RecCgemDedxHitCol
const CLID & CLID_RecCgemDedxHit
Definition: EventModel.cxx:414
virtual const CLID & clID() const
const Identifier getCgemId(void) const
bool isGrouped(void)
void setTrkId(int trkid)
static const CLID & classID()
void setCgemId(Identifier cgemid)
double getPathLength(void) const
void setPathLength(double pathlength)
const int getTrkId(void) const