EnglishJapanese Reload Front page List of pages Search Recent changes RSS of recent changes

Back to the top page
Back to the upper page

Function members

public

  • TArtMapper()
  • static TArtMapper* sMapper
  • std::map <TArtRIDFMap, unsigned int *> recomap
    recomap structure
    TArtRIDFMap map(dev1,fp1,det1,geo1,ch1) = unsigned int q1
    TArtRIDFMap map(dev2,fp2,det2,geo2,ch2) = unsigned int q2
    ...
  • std::map <TArtRIDFMap, unsigned int *>::iterator ritrEnd
  • std::map <TArtRIDFMap, unsigned int *>::iterator rmap
  • std::map <TArtRIDFMap, TArtMap> anamap
    anamap structure
    TArtRIDFMap ridfmap(dev1, fp1, det1, geo1, ch1) = TArtMap map(catid, detid, 1)
    TArtRIDFMap ridfmap(dev2, fp2, det2, geo2, ch2) = TArtMap map(catid, detid, 2)
    ...
  • std::map <TArtRIDFMap, TArtMap>::iterator itrEnd
  • std::map <TArtRIDFMap, TArtMap>::iterator amap

protected

Function documents

  • TArtMapper* Instance()
    Create sMapper instance.
  • bool isRecoLoaded()
    If recomap exist, return true.
  • void LoadRecoConfig(TArtRIDFMap *map, unsigned int *p)
    Insert a pair consisting map and p to recomap.
    Assign the end pointer of recomap to ritrEnd.
  • void LoadRecoConfig(int fp, int detid, int geo, int ch, unsigned int *p)
    Genarate TArtRIDFMap object with all arguments.
    And insert the object to recomap.
  • unsigned int * FindRecoMap(TArtRIDFMap * inmap)
    Find the element of recomap corresponding to inmap and return the address as an unsigned integer pointer.
    If inmap doesn't exist in recomap, return NULL.
  • unsigned int * FindRecoMap(int fp, int detid, int geo, int ch)
    Find the map element corresponding to arguments and return the address as an unsigned integer pointer.
    If the map element doesn't exist, return NULL.
  • virtual bool isLoaded()
    If anamap is loaded, return true.
  • virtual void LoadConfig(const char* filename)
    Load mapname and number of contents from filename.
    Default filename is Mapper.conf
    After loading Mapper.conf, load each element of map from mapname and insert TArtMap object and TArtRIDFMap object to anamap.
  • virtual TArtMap * FindMap(TArtRIDFMap * inmap)
    Find map element corresponding to inmap from anamap and return TArtMap object of the element.
    If inmap doesn't exist in anamap, return NULL.
  • virtual TArtMap * FindMap(int devid, int fp, int detid, int geo, int ch)
    Find map element corresponding to arguments and return TArtMap object of the elements.
    If there is no elements corresponding to arguments, return NULL.

Example of Mapper.conf

  • Format
    [FILENAME] [Number of Contents]
  • Example
    /home/ribfdaq/src/conf/map/ppac.map 8
    /home/ribfdaq/src/conf/map/ic.map     2

Example of mapfile

  • Format
    [catid], [detid], [dev1] [fp1] [det1] [mod1] [ch1], [dev2] [fp2] [det2] [mod2] [ch2], ... ; end of line.
Last-modified: Tue, 13 Dec 2011 02:28:25 HADT (4511d)