Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
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
13using namespace std;
14
15class 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
23public:
24
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//
78typedef set<THcShowerHit*> THcShowerHitSet;
79typedef THcShowerHitSet::iterator THcShowerHitIt;
80
82typedef THcShowerCluster::iterator THcShowerClusterIt;
83
84//______________________________________________________________________________
85
86//Alias for container of clusters and for its iterator
87//
88typedef vector<THcShowerCluster*> THcShowerClusterList;
89typedef THcShowerClusterList::iterator THcShowerClusterListIt;
90
91//______________________________________________________________________________
92
93#endif
int Int_t
double Double_t
THcShowerClusterList::iterator THcShowerClusterListIt
THcShowerHitSet::iterator THcShowerHitIt
THcShowerCluster::iterator THcShowerClusterIt
THcShowerHitSet THcShowerCluster
vector< THcShowerCluster * > THcShowerClusterList
set< THcShowerHit * > THcShowerHitSet
Double_t hitE()
Double_t hitEpos()
Double_t hitZ()
Double_t hitEneg()
Int_t hitRow()
bool operator<(THcShowerHit rhs) const
Double_t fZ
Double_t fEpos
Int_t hitColumn()
Double_t hitY()
bool isNeighbour(THcShowerHit *hit1)
Double_t fEneg
Double_t fY
Double_t fX
Double_t hitX()
Double_t fE
STL namespace.