5#ifndef CBMTRDTRIANGLEPRF_H
6#define CBMTRDTRIANGLEPRF_H 1
55 Bool_t
GetBin(Double_t
x, Double_t
y, Int_t& binx, Int_t& biny)
const;
97 void Print(Option_t* opt =
"")
const;
125 Int_t
GetSide(
const Float_t
x,
const Float_t
y)
const;
145 std::vector<Double_t>
fX;
146 std::vector<Double_t>
fY;
Utility for converting energy to signal over the triangular pad geometry (Bucharest prototype)
Double_t fNorm
normalization factor for the 2D Gauss distribution
Bool_t NextBinX()
Move current bin to the right.
Bool_t PrevBinX()
Move current bin to the left.
std::vector< Double_t > fX
position of bin center along wires
TF1 * fPRFy
PRF model across wires.
CbmTrdTrianglePRF(const CbmTrdTrianglePRF &ref)
Bool_t SetOrigin(Double_t x, Double_t y)
Set map offset @ point (x,y)
Double_t fdH
bin half height
@ NC
no. of neighbor columns (except the hit) to be considered in cluster definition
@ NR
no. of neighbor rows (except the hit) to be considered in cluster definition
CbmTrdTrianglePRF(Float_t W, Float_t H, Int_t n=20)
Build map.
void GoToOriginX()
Move current binx to the origin binx0.
Double_t fSlope
slope of triangle H/W
void GetCurrentBin(Int_t &bx, Int_t &by) const
Enquire the current status of the map iterator.
void Print(Option_t *opt="") const
TF1 * fPRFx
PRF model along wires.
Double_t GetChargeFraction() const
Compute charge fraction on the current bin.
Double_t fX0
Index of bin in the map corresponding to cluster center - y direction.
CbmTrdTrianglePRF & operator=(const CbmTrdTrianglePRF &ref)
void GetCurrentPad(Int_t &col, Int_t &row, Int_t &u) const
Compute the pad corresponding to current bin.
Bool_t NextBinY()
Move current bin up.
Double_t fY0
y coordinate of cluster
Int_t fBiny
Current bin in the map - y direction.
Int_t fBinx
Current bin in the map - x direction.
std::vector< Double_t > fY
position of bin center across wires
Int_t GetSide(const Float_t x, const Float_t y) const
Define triangular pad type.
virtual ~CbmTrdTrianglePRF()
std::vector< Char_t > fUp
1 for the upper pad, -1 for the bottom pad and 0 on the boundary
Bool_t PrevBinY()
Move current bin down.
void GoToOriginY()
Move current biny to the origin biny0.
Bool_t GetBin(Double_t x, Double_t y, Int_t &binx, Int_t &biny) const
Find bin for point (x,y)
Double_t fdW
bin half width
Int_t fBiny0
Offset bin in the map - y direction.
Int_t fBinx0
Offset bin in the map - x direction.