Hi BRATs, Version: 1.16.4 CVS Tag: BRAT-1-16-4 As a warm-up to BRAT2, I introduced a few new class into BRAT: * BrVersion Holds version information on BRAT. This class can be used to tag files, etc. Executable bratroot now uses this class. * BrPathManager Utility class that serves path names to classes that may need it. For example, if you want to get the directory where the DetectorParameters.txt file is installed, do const char* datadir = BrPathManager::Instance()->GetDataDir(); const char* paramdir = Form("%s/params", datadir); The environment variable BRATSYS (if set) overrides the compiletime default. Use this class rather than getting the environment variable BRATSYS directly from TSystem, since that will allow for a smooth transistion to BRAT2. In BRAT2 it will still be possible to override the compile-time defaults via the environment, though the exact environment variable may change. [Hope this answers your concern Kris] I change a number of Modules to use this service class, among these BrDetectorParamsBase BrRdoModuleBB BrMonitorMult BrSiTmpCalibration BrSiDigModule BrTileDigModule BrTileTmpCalibration BrOnlineMonitorBB BrOnlineMonitorMult BrNtupleBB BrNtupleSi BrNtupleTile * BrFileTag As I've mentioned a couple of times before, Modules may not be persistent, so to prepare to make all modules non-persistent - in particular BrEventIO - I made the class BrFileTag, which is a tag on a file made by BrEventIO describing the file. This is not used yet, as it would make it impossible to read what ever files you had made up till now. However, it will be used in BRAT2. The code to use this is in BrEventIO (and other classes), but conditional on the preprocessor define USE_FILE_TAG. Yours, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Mon Jun 04 2001 - 10:02:05 EDT