Hall C ROOT/C++ Analyzer (hcana)
THcDCPlaneCluster.h
Go to the documentation of this file.
1 #ifndef ROOT_THcDCPlaneCluster
2 #define ROOT_THcDCPlaneCluster
3 
5 // //
6 // THcDCPlaneCluster //
7 // //
9 
10 #include "TObject.h"
11 #include "THcDCHit.h"
12 
13 class THcDCPlaneCluster : public TObject {
14 
15 public:
16 
18  fNHits(nhits) {
19  fHits.clear();
20  }
21  virtual ~THcDCPlaneCluster() {}
22  void SetXY(Double_t x, Double_t y) {fX = x; fY = y;};
23  void Clear(Option_t* opt="") {fNHits=0; fHits.clear();};
24  void AddHit(THcDCHit* hit) {
25  fHits.push_back(hit);
26  fNHits++;
27  }
28  THcDCHit* GetHit(Int_t ihit) {return fHits[ihit];};
29  Int_t GetNHits() {return fNHits;};
30  Double_t GetX() {return fX;};
31  Double_t GetY() {return fY;};
32 
33 protected:
34 
35  Double_t fX;
38  std::vector<THcDCHit*> fHits;
39 
40 
42 };
43 
45 
46 #endif
Drift chamber wire hit info.
Definition: THcDCHit.h:16
const char Option_t
ClassDef(THcDCPlaneCluster, 0)
int Int_t
Class for clusters in the same orientation planes (V,X or U)
void Clear(Option_t *opt="")
void AddHit(THcDCHit *hit)
THcDCPlaneCluster(Int_t nhits=0)
std::vector< THcDCHit * > fHits
void SetXY(Double_t x, Double_t y)
THcDCHit * GetHit(Int_t ihit)
double Double_t
virtual ~THcDCPlaneCluster()