PandaRoot
PndSdsCalcFePixel.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDSDSCALCFEPIXEL_H
14 #define PNDSDSCALCFEPIXEL_H
15 
16 #include <vector>
17 #include "PndSdsPixel.h"
18 #include "TVector3.h"
19 
20 class PndSdsPixelDigiPar;
21 
23 
30  public:
34  PndSdsCalcFePixel(const PndSdsPixelDigiPar &digi_par);
36 
37  /*void SetNCols(Int_t ncols){fNcols = ncols;};
38  void SetNRows(Int_t nrows){fNrows = nrows;};
39  void SetMaxFE(Int_t maxFE){fMaxFEperCol = maxFE;};
40  Int_t GetNCols() const { return fNcols;};
41  Int_t GetNRows() const { return fNrows;};
42  Int_t GetMaxFE() const { return fMaxFEperCol;};*/
43 
45  std::vector<PndSdsPixel> CalcFEHits(const std::vector<PndSdsPixel> &sensor_hits);
46 
48  void CalcSensorColRow(Int_t &col, Int_t &row, const Int_t fe) const;
49 
50  protected:
51  Int_t fNcols;
52  Int_t fNrows;
53  Int_t fMaxFEperCol;
54  Int_t fMaxFEperRow;
55 };
56 
57 #endif /*PNDSDSCALCFEPIXEL_H*/
std::vector< PndSdsPixel > CalcFEHits(const std::vector< PndSdsPixel > &sensor_hits)
Main function to calculate front-end hits.
void CalcSensorColRow(Int_t &col, Int_t &row, const Int_t fe) const
Main function to calculate sensor hits.
Int_t fNrows
number of columns on a front-end chip
Int_t fMaxFEperRow
maximum number of front-end chip per column on a sensor
PndSdsCalcFePixel()
Default constructor.
Int_t fMaxFEperCol
nrows number of rows on a front-end chip
Class to calculate the position of digis on a front-end from the digis on a sensor.
Digitization Parameter Class for SDS-Pixel part.