Hall C ROOT/C++ Analyzer (hcana)
THcShowerHit.h
Go to the documentation of this file.
1 #ifndef ROOT_THcShowerHit
2 #define ROOT_THcShowerHit
3 
4 // HMS calorimeter hits, version 2
5 
6 #include <set>
7 #include <iterator>
8 #include <iostream>
9 #include <memory>
10 #include <vector>
11 #include "TMath.h"
12 
13 using namespace std;
14 
15 class THcShowerHit { //HMS calorimeter hit class
16 
17  Int_t fCol, fRow; //hit colomn and row
18  Double_t fX,fY, fZ; //hit X (vert.) , Y (hort) and Z (along spect.axis) coordinates
19  Double_t fE; //hit mean energy deposition
20  Double_t fEpos; //hit energy deposition from positive PMT
21  Double_t fEneg; //hit energy deposition from negative PMT
22 
23 public:
24 
25  THcShowerHit();
26 
27  THcShowerHit(Int_t hRow, Int_t hCol, Double_t hX, Double_t hY, Double_t hZ,
28  Double_t hE, Double_t hEpos, Double_t hEneg);
29 
31  // cout << " hit destructed" << endl;
32  }
33 
35  return fCol;
36  }
37 
39  return fRow;
40  }
41 
43  return fX;
44  }
45 
47  return fY;
48  }
49 
51  return fZ;
52  }
53 
55  return fE;
56  }
57 
59  return fEpos;
60  }
61 
63  return fEneg;
64  }
65 
66  bool isNeighbour(THcShowerHit* hit1);
67  void show();
68  bool operator<(THcShowerHit rhs) const;
69 
70  // ClassDef(THcShowerHit,0);
71 };
72 
73 
74 //____________________________________________________________________________
75 
76 // Container (collection) of hits and its iterator.
77 //
78 typedef set<THcShowerHit*> THcShowerHitSet;
79 typedef THcShowerHitSet::iterator THcShowerHitIt;
80 
82 typedef THcShowerCluster::iterator THcShowerClusterIt;
83 
84 //______________________________________________________________________________
85 
86 //Alias for container of clusters and for its iterator
87 //
88 typedef vector<THcShowerCluster*> THcShowerClusterList;
89 typedef THcShowerClusterList::iterator THcShowerClusterListIt;
90 
91 //______________________________________________________________________________
92 
93 #endif
Double_t fEneg
Definition: THcShowerHit.h:21
Bool_t operator<(const TDatime &d1, const TDatime &d2)
THcShowerClusterList::iterator THcShowerClusterListIt
Definition: THcShowerHit.h:89
Double_t fE
Definition: THcShowerHit.h:19
vector< THcShowerCluster * > THcShowerClusterList
Definition: THcShowerHit.h:88
int Int_t
STL namespace.
THcShowerCluster::iterator THcShowerClusterIt
Definition: THcShowerHit.h:82
Double_t fEpos
Definition: THcShowerHit.h:20
Double_t fZ
Definition: THcShowerHit.h:18
Int_t hitRow()
Definition: THcShowerHit.h:38
Double_t hitY()
Definition: THcShowerHit.h:46
THcShowerHitSet THcShowerCluster
Definition: THcShowerHit.h:81
double Double_t
Double_t hitZ()
Definition: THcShowerHit.h:50
Double_t hitE()
Definition: THcShowerHit.h:54
Int_t hitColumn()
Definition: THcShowerHit.h:34
set< THcShowerHit * > THcShowerHitSet
Definition: THcShowerHit.h:78
Double_t hitEpos()
Definition: THcShowerHit.h:58
Double_t hitX()
Definition: THcShowerHit.h:42
Double_t hitEneg()
Definition: THcShowerHit.h:62
THcShowerHitSet::iterator THcShowerHitIt
Definition: THcShowerHit.h:79