9#include <top/dbobjects/TOPGeoPMTArray.h>
23 if (row == 0 or row >
m_numRows)
return 0;
30 if (pmtID == 0 or pmtID >
getSize())
return 0;
36 if (pmtID == 0 or pmtID >
getSize())
return 0;
42 if (pmtID == 0 or pmtID >
getSize())
return 0;
46 if (col == 0)
return 0;
50 if (row == 0)
return 0;
61 if (pmtID >=
getSize())
return 0;
76 if (fraction <= 0)
return;
78 for (
unsigned i = 0; i <
getSize(); i++) {
87 if (pmtID == pmt)
return true;
97 if (
m_dx <= 0)
return false;
98 if (
m_dy <= 0)
return false;
123 cout <<
" optically decoupled PMT's:";
const std::string & getCookieMaterial() const
Returns silicone cookie material.
double getSizeZ() const
Returns array volume dimension in z.
unsigned getNumColumns() const
Returns number of array columns.
unsigned m_numColumns
number of columns
std::vector< unsigned > m_decoupledPMTs
ID's of decoupled PMT's.
std::string m_cookieMaterial
silicone cookie material
void setDecoupledPMT(unsigned pmtID)
Sets PMT as optically decoupled.
std::string m_material
material name into which PMT's are inserted
double getDx() const
Returns spacing in x (column width)
double getFilterThickness() const
Returns wavelength filter thickness.
std::string m_filterMaterial
wavelength filter material
unsigned m_numRows
number of rows
unsigned getSize() const
Returns array size.
double getDy() const
Returns spacing in y (row height)
double getSizeX() const
Returns array volume dimension in x.
const std::string & getFilterMaterial() const
Returns wavelenght filter material.
double getSizeY() const
Returns array volume dimension in y.
float m_filterThickness
wavelength filter thickness
TOPGeoPMT m_pmt
PMT geometry parameters.
const std::string & getMaterial() const
Returns material name into which PMT's are inserted.
float m_cookieThickness
silicone cookie thickness
unsigned getNumRows() const
Returns number of array rows.
double getCookieThickness() const
Returns silicone cookie thickness.
double getAirGap() const
Returns air gap.
unsigned getNumColumns() const
Returns number of pixel columns.
unsigned getNumPixels() const
Returns number of pixels.
unsigned getNumRows() const
Returns number of pixel rows.
bool isConsistent() const override
Check for consistency of data members.
void generateDecoupledPMTs(double fraction)
Generate randomly a fraction of PMT's to be optically decoupled.
void print(const std::string &title="PMT array geometry parameters") const override
Print the content of the class.
bool isPMTDecoupled(unsigned pmtID) const
Checks if PMT is optically decoupled.
void print(const std::string &title="MCP-PMT geometry parameters") const override
Print the content of the class.
unsigned getRow(unsigned pmtID) const
Converts PMT ID to row number (1-based)
unsigned getColumn(unsigned pmtID) const
Converts PMT ID to column number (1-based)
virtual void print(const std::string &title) const
Print the content of the class.
unsigned getPixelColumn(double x) const
Converts x-coordinate to pixel column (1-based)
int getPixelID(double x, double y, unsigned pmtID) const
Converts (digitizes) x, y and PMT ID to pixel ID (1-based)
unsigned getPmtID(unsigned row, unsigned col) const
Converts row and column numbers to PMT ID (1-based)
static std::string s_unitName
conversion unit name
unsigned getPixelRow(double y) const
Converts y-coordinate to pixel row (1-based)
Abstract base class for different kinds of events.