HerdSoftware  0.4.0
Public Member Functions | Private Attributes | List of all members
Herd::CaloIsCMOSChannelInfo Class Reference

Data structure for the CALO IsCMOS readout information. More...

#include <dataobjects/CaloIsCMOSChannelInfo.h>

Public Member Functions

 CaloIsCMOSChannelInfo ()=default
 Default constructor. More...
 
 CaloIsCMOSChannelInfo (std::vector< float > &&mipValue, std::vector< float > &&pedestalValue, std::vector< int > &&fiberIndexX, std::vector< int > &&fiberIndexY)
 Constructor. More...
 
virtual ~CaloIsCMOSChannelInfo ()=default
 Destructor.
More...
 
unsigned int NChannels ()
 
float MipValue (unsigned int volID) const
 Return the MIP value (grayscale). More...
 
float Pedestal (unsigned int volID) const
 Return the pedestal value for high gain (grayscale). More...
 
std::pair< int, int > FiberIsCMOSIndexes (unsigned int volID) const
 Return the X-Y indexes of the fibers on the IsCMOS sensor. More...
 

Private Attributes

std::vector< float > m_mipValue
 MIP values for each fiber channel. More...
 
std::vector< float > m_pedestalValue
 Pedestals values for each fiber channel. More...
 
std::vector< int > m_fiberIndexX
 
std::vector< int > m_fiberIndexY
 Indexes of the fibers on IsCMOS sensors. More...
 

Detailed Description

Data structure for the CALO IsCMOS readout information.

This structure contains the readout channel information for a single set of fibers (low gain or high gain). A "readout channel" here means a single facula on the IsCMOS sensor.

Constructor & Destructor Documentation

◆ CaloIsCMOSChannelInfo() [1/2]

Herd::CaloIsCMOSChannelInfo::CaloIsCMOSChannelInfo ( )
default

Default constructor.

◆ CaloIsCMOSChannelInfo() [2/2]

Herd::CaloIsCMOSChannelInfo::CaloIsCMOSChannelInfo ( std::vector< float > &&  mipValue,
std::vector< float > &&  pedestalValue,
std::vector< int > &&  fiberIndexX,
std::vector< int > &&  fiberIndexY 
)

Constructor.

All the vector parameters of this constructor must have a number of elements equal to the number of cubes. The element ID must coincide with the cube volume ID.

Parameters
mipValueValue of the MIP signal (grayscale) for each fiber.
pedestalValuePedestals (grayscale) for each fiber.
fiberIndexXFiber index on IsCMOS along X.
fiberIndexYFiber index on IsCMOS along Y.
Exceptions
Herd::Exceptionif the dimensions of the vectors do not match each other.

◆ ~CaloIsCMOSChannelInfo()

virtual Herd::CaloIsCMOSChannelInfo::~CaloIsCMOSChannelInfo ( )
virtualdefault

Destructor.

Member Function Documentation

◆ FiberIsCMOSIndexes()

std::pair<int, int> Herd::CaloIsCMOSChannelInfo::FiberIsCMOSIndexes ( unsigned int  volID) const
inline

Return the X-Y indexes of the fibers on the IsCMOS sensor.

The fibers are bundled and routed to the IsCMOS sensor. This method returns the two indexes of the given fiber along the two dimensions of the IsCMOS surface, to identify neighboring channels for cross-talk computation.

Parameters
volIDCube identifier.
Returns
A pair containing the indexes along IsCMOS' X and Y directions of the fiber.

◆ MipValue()

float Herd::CaloIsCMOSChannelInfo::MipValue ( unsigned int  volID) const
inline

Return the MIP value (grayscale).

Parameters
volIDCube identifier.
Returns
MIP value (grayscale).

◆ NChannels()

unsigned int Herd::CaloIsCMOSChannelInfo::NChannels ( )
inline

◆ Pedestal()

float Herd::CaloIsCMOSChannelInfo::Pedestal ( unsigned int  volID) const
inline

Return the pedestal value for high gain (grayscale).

Parameters
volIDCube identifier.
Returns
The high gain pedestal (grayscale).

Member Data Documentation

◆ m_fiberIndexX

std::vector<int> Herd::CaloIsCMOSChannelInfo::m_fiberIndexX
private

◆ m_fiberIndexY

std::vector<int> Herd::CaloIsCMOSChannelInfo::m_fiberIndexY
private

Indexes of the fibers on IsCMOS sensors.

◆ m_mipValue

std::vector<float> Herd::CaloIsCMOSChannelInfo::m_mipValue
private

MIP values for each fiber channel.

◆ m_pedestalValue

std::vector<float> Herd::CaloIsCMOSChannelInfo::m_pedestalValue
private

Pedestals values for each fiber channel.


The documentation for this class was generated from the following files: