Project
Loading...
Searching...
No Matches
o2::emcal::TRUElectronics Struct Reference

TRUElectronics creator, based on the TRUElectronics. More...

#include <TRUElectronics.h>

Public Member Functions

 TRUElectronics (int patchSize, int whichSide, int whichSuperModuleSize)
 Main constructor.
 
 TRUElectronics ()
 Default constructor.
 
 ~TRUElectronics ()=default
 Destructor.
 
void clear ()
 Clear internal members.
 
void init ()
 Initialise internal members.
 
void assignSeedModuleToPatchWithSTUIndexingFullModule (int &patchID)
 Assign seed module to a Full SM.
 
void assignSeedModuleToPatchWithSTUIndexingOneThirdModule (int &patchID)
 Assign seed module to a 1/3 SM.
 
void assignSeedModuleToAllPatches ()
 Assign seed module to all patches.
 
void assignModulesToAllPatches ()
 Assign modules to all patches.
 
void updateADC ()
 Updates the patches.
 
 ClassDefNV (TRUElectronics, 1)
 

Public Attributes

int mPatchSize
 ! patch size (2x2 or 4x4 typically)
 
int mWhichSide
 ! Either A = 0 or C = 1 side
 
int mWhichSuperModuleSize
 ! Either Full/2/3 = 0 or 1/3 = 1 size
 
std::vector< std::tuple< int, int > > mPatchIDSeedFastOrIDs
 ! mask containing Patch IDs, their seed FastOrs
 
std::vector< std::tuple< int, std::vector< int > > > mIndexMapPatch
 ! mask of the FastOrs assigned to each patch
 
std::vector< std::tuple< int, std::vector< int > > > mFiredFastOrIndexMapPatch
 ! mask of the FastOrs above threshold in each patch
 
std::vector< intmFiredPatches
 ! mask of the patches above threshold
 
std::vector< std::tuple< int, std::vector< double > > > mADCvalues
 ! ADC values for peak finding
 
std::vector< std::tuple< int, std::vector< double > > > mTimesum
 ! Time sums for peak finding
 
std::vector< std::tuple< int, double > > mPreviousTimebinADCvalue
 ! ADC that was just removed from the time bins
 
std::vector< FastOrStructmFastOrs
 ! FastOr objects
 

Detailed Description

TRUElectronics creator, based on the TRUElectronics.

Author
Markus Fasel, ORNL
Simone Ragoni, Creighton U.
Date
03/12/2022

Definition at line 74 of file TRUElectronics.h.

Constructor & Destructor Documentation

◆ TRUElectronics() [1/2]

TRUElectronics::TRUElectronics ( int  patchSize,
int  whichSide,
int  whichSuperModuleSize 
)

Main constructor.

Parameters
patchSizepatch size: 2x2, or 4x4
whichSide0 = A side, 1 = C side
whichSuperModuleSize0 = Full 1 = 1/3

Definition at line 29 of file TRUElectronics.cxx.

◆ TRUElectronics() [2/2]

TRUElectronics::TRUElectronics ( )

Default constructor.

Definition at line 23 of file TRUElectronics.cxx.

◆ ~TRUElectronics()

o2::emcal::TRUElectronics::~TRUElectronics ( )
default

Destructor.

Member Function Documentation

◆ assignModulesToAllPatches()

void TRUElectronics::assignModulesToAllPatches ( )

Assign modules to all patches.

Definition at line 118 of file TRUElectronics.cxx.

◆ assignSeedModuleToAllPatches()

void TRUElectronics::assignSeedModuleToAllPatches ( )

Assign seed module to all patches.

Definition at line 101 of file TRUElectronics.cxx.

◆ assignSeedModuleToPatchWithSTUIndexingFullModule()

void TRUElectronics::assignSeedModuleToPatchWithSTUIndexingFullModule ( int patchID)

Assign seed module to a Full SM.

Parameters
patchIDPatch ID that need to be assigned a seed

Definition at line 67 of file TRUElectronics.cxx.

◆ assignSeedModuleToPatchWithSTUIndexingOneThirdModule()

void TRUElectronics::assignSeedModuleToPatchWithSTUIndexingOneThirdModule ( int patchID)

Assign seed module to a 1/3 SM.

Parameters
patchIDPatch ID that need to be assigned a seed

Definition at line 84 of file TRUElectronics.cxx.

◆ ClassDefNV()

o2::emcal::TRUElectronics::ClassDefNV ( TRUElectronics  ,
 
)

◆ clear()

void TRUElectronics::clear ( )

Clear internal members.

Definition at line 57 of file TRUElectronics.cxx.

◆ init()

void TRUElectronics::init ( )

Initialise internal members.

Definition at line 35 of file TRUElectronics.cxx.

◆ updateADC()

void TRUElectronics::updateADC ( )

Updates the patches.

Definition at line 189 of file TRUElectronics.cxx.

Member Data Documentation

◆ mADCvalues

std::vector<std::tuple<int, std::vector<double> > > o2::emcal::TRUElectronics::mADCvalues

! ADC values for peak finding

Definition at line 119 of file TRUElectronics.h.

◆ mFastOrs

std::vector<FastOrStruct> o2::emcal::TRUElectronics::mFastOrs

! FastOr objects

Definition at line 122 of file TRUElectronics.h.

◆ mFiredFastOrIndexMapPatch

std::vector<std::tuple<int, std::vector<int> > > o2::emcal::TRUElectronics::mFiredFastOrIndexMapPatch

! mask of the FastOrs above threshold in each patch

Definition at line 117 of file TRUElectronics.h.

◆ mFiredPatches

std::vector<int> o2::emcal::TRUElectronics::mFiredPatches

! mask of the patches above threshold

Definition at line 118 of file TRUElectronics.h.

◆ mIndexMapPatch

std::vector<std::tuple<int, std::vector<int> > > o2::emcal::TRUElectronics::mIndexMapPatch

! mask of the FastOrs assigned to each patch

Definition at line 116 of file TRUElectronics.h.

◆ mPatchIDSeedFastOrIDs

std::vector<std::tuple<int, int> > o2::emcal::TRUElectronics::mPatchIDSeedFastOrIDs

! mask containing Patch IDs, their seed FastOrs

Definition at line 115 of file TRUElectronics.h.

◆ mPatchSize

int o2::emcal::TRUElectronics::mPatchSize

! patch size (2x2 or 4x4 typically)

Definition at line 111 of file TRUElectronics.h.

◆ mPreviousTimebinADCvalue

std::vector<std::tuple<int, double> > o2::emcal::TRUElectronics::mPreviousTimebinADCvalue

! ADC that was just removed from the time bins

Definition at line 121 of file TRUElectronics.h.

◆ mTimesum

std::vector<std::tuple<int, std::vector<double> > > o2::emcal::TRUElectronics::mTimesum

! Time sums for peak finding

Definition at line 120 of file TRUElectronics.h.

◆ mWhichSide

int o2::emcal::TRUElectronics::mWhichSide

! Either A = 0 or C = 1 side

Definition at line 112 of file TRUElectronics.h.

◆ mWhichSuperModuleSize

int o2::emcal::TRUElectronics::mWhichSuperModuleSize

! Either Full/2/3 = 0 or 1/3 = 1 size

Definition at line 113 of file TRUElectronics.h.


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