Project
Loading...
Searching...
No Matches
CathodeSegmentationCImpl4.cxx File Reference
#include "MCHMappingInterface/CathodeSegmentationCInterface.h"
#include "CathodeSegmentationImpl4.h"
#include "o2mchmappingimpl4_export.h"
#include <fstream>

Go to the source code of this file.

Classes

struct  MchCathodeSegmentation
 

Functions

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

Function Documentation

◆ mchCathodeSegmentationConstruct()

O2MCHMAPPINGIMPL4_EXPORT MchCathodeSegmentationHandle mchCathodeSegmentationConstruct ( int  detElemId,
bool  isBendingPlane 
)

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

Definition at line 32 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationDestruct()

O2MCHMAPPINGIMPL4_EXPORT void mchCathodeSegmentationDestruct ( MchCathodeSegmentationHandle  sh)

Delete a segmentation handle.

Definition at line 39 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationFindPadByFEE()

O2MCHMAPPINGIMPL4_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 58 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationFindPadByPosition()

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

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

Definition at line 52 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForEachDetectionElement()

O2MCHMAPPINGIMPL4_EXPORT void mchCathodeSegmentationForEachDetectionElement ( MchDetectionElementHandler  handler,
void clientData 
)

Definition at line 64 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForEachDualSampa()

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

Definition at line 89 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForEachNeighbouringPad()

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

Definition at line 168 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForEachPadInArea()

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

Definition at line 159 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForEachPadInDualSampa()

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

Definition at line 114 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationForOneDetectionElementOfEachSegmentationType()

O2MCHMAPPINGIMPL4_EXPORT void mchCathodeSegmentationForOneDetectionElementOfEachSegmentationType ( MchDetectionElementHandler  handler,
void clientData 
)

Definition at line 99 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationId()

O2MCHMAPPINGIMPL4_EXPORT int mchCathodeSegmentationId ( MchCathodeSegmentationHandle  segHandle)

Definition at line 45 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationIsPadValid()

O2MCHMAPPINGIMPL4_EXPORT int mchCathodeSegmentationIsPadValid ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

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

Definition at line 108 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadDualSampaChannel()

O2MCHMAPPINGIMPL4_EXPORT int mchCathodeSegmentationPadDualSampaChannel ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 153 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadDualSampaId()

O2MCHMAPPINGIMPL4_EXPORT int mchCathodeSegmentationPadDualSampaId ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 147 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadPositionX()

O2MCHMAPPINGIMPL4_EXPORT double mchCathodeSegmentationPadPositionX ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 123 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadPositionY()

O2MCHMAPPINGIMPL4_EXPORT double mchCathodeSegmentationPadPositionY ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 129 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadSizeX()

O2MCHMAPPINGIMPL4_EXPORT double mchCathodeSegmentationPadSizeX ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 135 of file CathodeSegmentationCImpl4.cxx.

◆ mchCathodeSegmentationPadSizeY()

O2MCHMAPPINGIMPL4_EXPORT double mchCathodeSegmentationPadSizeY ( MchCathodeSegmentationHandle  segHandle,
int  catPadIndex 
)

Definition at line 141 of file CathodeSegmentationCImpl4.cxx.