Belle II Software  release-06-00-14
ECLChannelMapper Class Reference

This class provides access to ECL channel map that is either a) Loaded from the database (see ecl/dbobject/include/ECLChannelMap.h). More...

#include <ECLChannelMapper.h>

Public Member Functions

 ECLChannelMapper ()
 Default constructor.
 
 ~ECLChannelMapper ()
 Default destructor.
 
bool initFromFile ()
 Initialize channel mapper using data stored in default location.
 
bool initFromFile (const char *eclMapFile)
 Initialize channel mapper using data stored in the ASCII file.
 
bool initFromDB ()
 Initialize channel mapper from the conditions database.
 
ECLChannelMap getDBObject ()
 Convert internal data to ECLChannelMap database object.
 
int getCrateID (int iCOPPERNode, int iFINESSE)
 get crate number by given COPPER node number and FINESSE number
 
int getCellId (int iCrate, int iShaper, int iChannel)
 get CellId by given crate number, shaper position in the crate and DSP channel number in the shaper
 
int getCOPPERNode (int iCrate)
 get number of COPPER node by given crate number
 
int getFINESSE (int iCrate)
 get number of FINESSE (0/1) in COPPER by given crate number
 
int getSubSystem (int iCrate)
 get ECL subsystem ID by given crate number: 0 – barrel, 1 – forward. 2 – backward endcap
 
int getCrateID (int cellID)
 get crate number by given CellId
 
int getShaperPosition (int cellID)
 get position of the shaper in the crate by given CellId
 
int getShaperChannel (int cellID)
 get number of DSP channel in the shaper by given number of CellId
 
int getNShapersInCrate (int iCrate)
 get number of ShaperDSP modules in the given VME crate number
 

Private Attributes

bool isInitialized
 initialization flag
 
int convertArrayBarrel [ECL_BARREL_CRATES *ECL_BARREL_SHAPERS_IN_CRATE *ECL_CHANNELS_IN_SHAPER]
 convert (iCrate, iShaper, iChannel) to CellId for Barrel ECL
 
int convertArrayFWD [ECL_FWD_CRATES *ECL_FWD_SHAPERS_IN_CRATE *ECL_CHANNELS_IN_SHAPER]
 convert (iCrate, iShaper, iChannel) to CellId for Forward endcap
 
int convertArrayBKW [ECL_BKW_CRATES *ECL_BKW_SHAPERS_IN_CRATE *ECL_CHANNELS_IN_SHAPER]
 convert (iCrate, iShaper, iChannel) to CellId Backward endcap
 
int convertArrayInv [ECL_TOTAL_CHANNELS][3]
 convert CellId to (iCrate, iShaper, iChannel)
 

Detailed Description

This class provides access to ECL channel map that is either a) Loaded from the database (see ecl/dbobject/include/ECLChannelMap.h).

b) (** NOT SUPPORTED **) Loaded from the text file (standard location is FileSystem::findFile("ecl/data/ecl_channels_map.txt"))

Please note that (a) is recommended and (b) should be used only for very specific rare cases (such as prepation of new ECLChannelMap payloads)

Definition at line 25 of file ECLChannelMapper.h.


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