BmnRoot
Loading...
Searching...
No Matches
BmnNdetCluster.h
Go to the documentation of this file.
1
14#ifndef BMNNDETCLUSTER_H
15#define BMNNDETCLUSTER_H
16
17#include "TObject.h"
18
19#include <iostream>
20
21using namespace std;
22
23// #include "TClonesArray.h"
24
25class BmnNdetCluster : public TObject
26{
27 private:
29 Int_t fNCells;
31 vector<Int_t> fCell;
33 vector<Int_t> fColumn;
35 vector<Int_t> fRow;
37 vector<Int_t> fLayer;
39 vector<Double_t> fXcoord;
41 vector<Double_t> fYcoord;
43 vector<Double_t> fZcoord;
45 vector<Double_t> fTime;
47 vector<Double_t> fEdep;
49 vector<Double_t> fBeta;
50
51 public:
59 BmnNdetCluster(size_t size);
60
74 void AddCell(Int_t cell,
75 Int_t column,
76 Int_t row,
77 Int_t layer,
78 Double_t x,
79 Double_t y,
80 Double_t z,
81 Double_t t,
82 Double_t e_dep,
83 Double_t beta = -1.);
84
86 Int_t GetNCells();
91 Int_t GetNCells(Double_t threshold);
92
94 vector<Int_t> GetCells();
96 vector<Int_t> GetColumns();
98 vector<Int_t> GetRows();
100 vector<Int_t> GetLayers();
102 vector<Double_t> GetX();
104 vector<Double_t> GetY();
106 vector<Double_t> GetZ();
108 vector<Double_t> GetTime();
110 vector<Double_t> GetEdep();
112 vector<Double_t> GetBeta();
113
119 Bool_t ContainsVetoCells(Int_t veto_layer = 0);
120
128 Bool_t StartsOnBorder(Int_t size_x = 11, Int_t size_y = 11, Int_t size_z = 8);
129
135 Double_t EnergyDepositedAverage(Double_t threshold = 0.003);
136
141 Double_t EnergyDeposited(Double_t threshold = 0.003);
142
145 Int_t FirstCell();
146
149 Int_t FastestCell();
150
158 Double_t BetaFirst();
159
167 Double_t BetaFastest();
168
174 Double_t EnergyTofFirst(Double_t mass = 0.939565420);
175
181 Double_t EnergyTofFastest(Double_t mass = 0.939565420);
182
188 Double_t EnergyTofAverage(Double_t mass = 0.939565420);
189
194 Double_t AngleToTarget();
195
203 Double_t AngleToDirection(Double_t x = 0, Double_t y = 0, Double_t z = 1);
204
207
210
212 BmnNdetCluster(BmnNdetCluster&&) noexcept;
213
215 void Clear();
216
218 virtual void Print(const Option_t* option = "");
219
220 virtual const char* GetClassName() { return "BmnNdetCluster"; }
221 ClassDef(BmnNdetCluster, 1)
222};
223
224#endif /* BMNNDETCLUSTER_H */
Class for description of recognized cluster in Bmn Ndet detector.
Double_t EnergyTofFastest(Double_t mass=0.939565420)
vector< Double_t > GetZ()
Double_t AngleToDirection(Double_t x=0, Double_t y=0, Double_t z=1)
Double_t EnergyDeposited(Double_t threshold=0.003)
vector< Double_t > GetBeta()
Double_t BetaFastest()
void Clear()
Clear all cell contents, set fNCells=0.
virtual void Print(const Option_t *option="")
Print.
vector< Int_t > GetLayers()
void AddCell(Int_t cell, Int_t column, Int_t row, Int_t layer, Double_t x, Double_t y, Double_t z, Double_t t, Double_t e_dep, Double_t beta=-1.)
BmnNdetCluster * AddCluster(BmnNdetCluster *other)
Merging of clusters.
vector< Double_t > GetTime()
Double_t EnergyTofFirst(Double_t mass=0.939565420)
vector< Double_t > GetY()
virtual const char * GetClassName()
vector< Double_t > GetEdep()
vector< Int_t > GetColumns()
BmnNdetCluster()
Default constructor.
Bool_t ContainsVetoCells(Int_t veto_layer=0)
vector< Int_t > GetCells()
Double_t EnergyTofAverage(Double_t mass=0.939565420)
~BmnNdetCluster()
Default destructor.
Double_t AngleToTarget()
vector< Double_t > GetX()
Double_t EnergyDepositedAverage(Double_t threshold=0.003)
Bool_t StartsOnBorder(Int_t size_x=11, Int_t size_y=11, Int_t size_z=8)
vector< Int_t > GetRows()
STL namespace.