Parses configuration file and creates storage arrays for only active channels and references data.
Parses configuration file and creates storage arrays for only active channels and references data. =============================================================================== | The purpose of EmcDynamicData class is: | | 1. to Parse script file describing EMCalchannels and references connections | | to FEMs; | | 2. to create storage arrays for only active channels and references data; | | 3. to create routers that explain Event Iterating routines/classes what | | channels should be read out and where these data should be stored. | | Actually router creates "connections" between electronics channels and | | elements of data arrays. | | | | To make your own EmcDynamicData object, just do: | |_____________________________________________________________________________| | int status; | | EmcDynamicData myobject(status,ConfigFileName);//constructor does all | | if(status) exit(1); //non-zero status means there were script errors | | int* dataMap=myobject.getEmcMap(); // get list of detector cells | | int nchannel=myobject.getEmcSize(); // get size of data arrays | | float* myHighGain=myobject.getEmcHG();//access to EMCal HighGain pre-post | |// the same for getEmcLG, getEmcTAC. | |_____________________________________________________________________________| | Boolean 'false' as a 2-nd parameter to constructor means that data from FEM | | 6x32=192 instead of 6x24=144. It means that you will get data not from | | towers only, but also from channels that are connected to different ASIC | | bias voltage levels. If you care about tower signals only, use 'true' | | instead of 'false' | |_____________________________________________________________________________| | 3-d parameter in the constructor determins if in addition to amplitudes | | you would like to get array with just raw data: tac, hipost,lopost, hipre, | | lopre. If you set 'true' then get pointer to 2D raw data aray[5][datasize] | | using float** EmcDynamicData::getEmcRaw() | |_____________________________________________________________________________| | Last parameter in the constructor determins data mapping style. 'True" | | means that DataMap array will store absolute FEM addresses: | | address=absFEM*192+ch, where absFEM - FEM (0-171), ch -channel (0-191). | |'False' means EMCal towers mapping style: address=tower (0-24767). ||_____________________________________________________________________________| | Slang in this program: | | abs position-means position in the EMCal detector. For towers it is 0-24767,| | for FEM or reference - this is a position of the supermodule (12x12 | | towers) in EMCal : 0-171. EMCal is treated as 8 sectors, PbSc1, ...,PbSc6, | | PgGl1,PbGl2. In this program names of corresponding sectors are: W0,W1,W2, | | W3,E2,E3,E0,E1. Reason - Edouard asked to push PbGl as far as possible :) | =============================================================================
Alphabetic index HTML hierarchy of classes or Java