14#ifndef ALICEO2_EMCAL_PATCH_H 
   15#define ALICEO2_EMCAL_PATCH_H 
   43    double timesumvalue = 0;
 
   45      timesumvalue += ADCvalue;
 
 
 
   80  TRUElectronics(
int patchSize, 
int whichSide, 
int whichSuperModuleSize);
 
  119  std::vector<std::tuple<int, std::vector<double>>> 
mADCvalues;             
 
  120  std::vector<std::tuple<int, std::vector<double>>> 
mTimesum;               
 
 
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
 
void updateADC(double ADCvalue)
 
double mPreviousTimebinADCvalue
 
std::vector< double > mADCvalues
 
double timesum()
Compute current timesum.
 
TRUElectronics creator, based on the TRUElectronics.
 
int mPatchSize
! patch size (2x2 or 4x4 typically)
 
std::vector< std::tuple< int, std::vector< double > > > mTimesum
! Time sums for peak finding
 
std::vector< std::tuple< int, std::vector< int > > > mFiredFastOrIndexMapPatch
! mask of the FastOrs above threshold in each patch
 
void assignSeedModuleToPatchWithSTUIndexingFullModule(int &patchID)
Assign seed module to a Full SM.
 
int mWhichSuperModuleSize
! Either Full/2/3 = 0 or 1/3 = 1 size
 
TRUElectronics()
Default constructor.
 
void init()
Initialise internal members.
 
void updateADC()
Updates the patches.
 
void assignSeedModuleToAllPatches()
Assign seed module to all patches.
 
std::vector< int > mFiredPatches
! mask of the patches above threshold
 
ClassDefNV(TRUElectronics, 1)
 
std::vector< FastOrStruct > mFastOrs
! FastOr objects
 
void assignModulesToAllPatches()
Assign modules to all patches.
 
std::vector< std::tuple< int, std::vector< int > > > mIndexMapPatch
! mask of the FastOrs assigned to each patch
 
std::vector< std::tuple< int, int > > mPatchIDSeedFastOrIDs
! mask containing Patch IDs, their seed FastOrs
 
void clear()
Clear internal members.
 
std::vector< std::tuple< int, std::vector< double > > > mADCvalues
! ADC values for peak finding
 
~TRUElectronics()=default
Destructor.
 
std::vector< std::tuple< int, double > > mPreviousTimebinADCvalue
! ADC that was just removed from the time bins
 
int mWhichSide
! Either A = 0 or C = 1 side
 
void assignSeedModuleToPatchWithSTUIndexingOneThirdModule(int &patchID)
Assign seed module to a 1/3 SM.