Project
Loading...
Searching...
No Matches
CathodeSegmentationCImpl3.cxx File Reference
#include "MCHMappingInterface/CathodeSegmentationCInterface.h"
#include "CathodeSegmentationImpl3.h"
#include "o2mchmappingimpl3_export.h"
#include <fstream>

Go to the source code of this file.

Classes

struct  MchCathodeSegmentation
 

Functions

O2MCHMAPPINGIMPL3_EXPORT MchCathodeSegmentationHandle mchCathodeSegmentationConstruct (int detElemId, bool isBendingPlane)
 Create a handle to a segmentation for a given plane of a detection element.
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationDestruct (MchCathodeSegmentationHandle sh)
 Delete a segmentation handle.
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationId (MchCathodeSegmentationHandle segHandle)
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationFindPadByPosition (MchCathodeSegmentationHandle segHandle, double x, double y)
 Find the pad at position (x,y) (in cm).
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationFindPadByFEE (MchCathodeSegmentationHandle segHandle, int dualSampaId, int dualSampaChannel)
 Find the pad connected to the given channel of the given dual sampa.
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachDetectionElement (MchDetectionElementHandler handler, void *clientData)
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachDualSampa (MchCathodeSegmentationHandle segHandle, MchDualSampaHandler handler, void *clientData)
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForOneDetectionElementOfEachSegmentationType (MchDetectionElementHandler handler, void *clientData)
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationIsPadValid (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 Return > 0 if catPadIndex is a valid one or <= 1 if not.
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachPadInDualSampa (MchCathodeSegmentationHandle segHandle, int dualSampaId, MchPadHandler handler, void *clientData)
 
O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadPositionX (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadPositionY (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadSizeX (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadSizeY (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationPadDualSampaId (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationPadDualSampaChannel (MchCathodeSegmentationHandle segHandle, int catPadIndex)
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachPadInArea (MchCathodeSegmentationHandle segHandle, double xmin, double ymin, double xmax, double ymax, MchPadHandler handler, void *clientData)
 
O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachNeighbouringPad (MchCathodeSegmentationHandle segHandle, int catPadIndex, MchPadHandler handler, void *userData)
 

Function Documentation

◆ mchCathodeSegmentationConstruct()

O2MCHMAPPINGIMPL3_EXPORT MchCathodeSegmentationHandle mchCathodeSegmentationConstruct ( int  detElemId,
bool  isBendingPlane 
)

Create a handle to a segmentation for a given plane of a detection element.

Definition at line 28 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationDestruct()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationDestruct ( MchCathodeSegmentationHandle  sh)

Delete a segmentation handle.

Definition at line 35 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationFindPadByFEE()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationFindPadByFEE ( MchCathodeSegmentationHandle  segHandle,
int  dualSampaId,
int  dualSampaChannel 
)

Find the pad connected to the given channel of the given dual sampa.

Definition at line 51 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationFindPadByPosition()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationFindPadByPosition ( MchCathodeSegmentationHandle  segHandle,
double  x,
double  y 
)

Find the pad at position (x,y) (in cm).

Definition at line 45 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForEachDetectionElement()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachDetectionElement ( MchDetectionElementHandler  handler,
void clientData 
)

Definition at line 57 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForEachDualSampa()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachDualSampa ( MchCathodeSegmentationHandle  segHandle,
MchDualSampaHandler  handler,
void clientData 
)

Definition at line 74 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForEachNeighbouringPad()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachNeighbouringPad ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex,
MchPadHandler  handler,
void userData 
)

Definition at line 151 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForEachPadInArea()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachPadInArea ( MchCathodeSegmentationHandle  segHandle,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
MchPadHandler  handler,
void clientData 
)

Definition at line 142 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForEachPadInDualSampa()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForEachPadInDualSampa ( MchCathodeSegmentationHandle  segHandle,
int  dualSampaId,
MchPadHandler  handler,
void clientData 
)

Definition at line 97 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationForOneDetectionElementOfEachSegmentationType()

O2MCHMAPPINGIMPL3_EXPORT void mchCathodeSegmentationForOneDetectionElementOfEachSegmentationType ( MchDetectionElementHandler  handler,
void clientData 
)

Definition at line 82 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationId()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationId ( MchCathodeSegmentationHandle  segHandle)

Definition at line 38 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationIsPadValid()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationIsPadValid ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Return > 0 if catPadIndex is a valid one or <= 1 if not.

Definition at line 91 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadDualSampaChannel()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationPadDualSampaChannel ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 136 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadDualSampaId()

O2MCHMAPPINGIMPL3_EXPORT int mchCathodeSegmentationPadDualSampaId ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 130 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadPositionX()

O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadPositionX ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 106 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadPositionY()

O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadPositionY ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 112 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadSizeX()

O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadSizeX ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 118 of file CathodeSegmentationCImpl3.cxx.

◆ mchCathodeSegmentationPadSizeY()

O2MCHMAPPINGIMPL3_EXPORT double mchCathodeSegmentationPadSizeY ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 124 of file CathodeSegmentationCImpl3.cxx.