Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
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
13class THcDCPlaneCluster : public TObject {
14
15public:
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
33protected:
34
38 std::vector<THcDCHit*> fHits;
39
40
42};
43
45
46#endif
int Int_t
double Double_t
const char Option_t
Drift chamber wire hit info.
Definition THcDCHit.h:16
Class for clusters in the same orientation planes (V,X or U)
std::vector< THcDCHit * > fHits
ClassDef(THcDCPlaneCluster, 0)
void Clear(Option_t *opt="")
void AddHit(THcDCHit *hit)
THcDCPlaneCluster(Int_t nhits=0)
THcDCHit * GetHit(Int_t ihit)
void SetXY(Double_t x, Double_t y)
Double_t y[n]
Double_t x[n]