Back to the top page
Back to the upper page
Function members
public
- TArtMapper()
- static TArtMapper* sMapper
- std::map <TArtRIDFMap, unsigned int *> recomap
recomap structureTArtRIDFMap 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 structureTArtRIDFMap 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
- static TArtMapper* Instance
- virtual ~TArtmapper()
- virtual bool isRecoLoaded()
- virutal void LoadRecoConfig(TArtRIDFMap *map, unsigned int *p)
- virtual void LoadRecoConfig(int fp, int detid, int geo, int ch, unsigned int *p)
- virtual unsigned int * FindRecoMap(TArtRIDFMap * inmap)
- virtual unsigned int * FindRecoMap(int fp, int detid, int geo, int ch)
- virtual bool isLoaded()
- virtual void LoadConfig const char* filename)
- virtual TArtMap * FindMap(TArtRIDFMap * inmap)
- virtual TArtMap * FindMap(int devid, int fp, int detid, int geo, int ch)
Function documents
- 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 01:28:25 HAST (4842d)