The utility d0ev may be used to examine the raw data for any chunk but is of limited use for GTrack chunks because the data is not stored in the form of GTrack's.
The contents of tuple depend on the type of the final surface (specified via RCP parameters) and are described in the package which provides the code to fill the ntuple. These packages also provide PAW macros to aid in the analysis of the ntuple.
The ntuple for the DCA (distance of closest approach) is defined in trfdca.
The ntuple for a cylinder is defined in trfcyl.
PAW macros for analyzing the standard ntuple (tracks propagated to the DCA) may be found in the package gtr_lyze. These may be installed in directory dir with the command
> gtr_get_kumacs dirThe default for dir is the current directory.
This is now deprecated in favor of the root-based analysis described below.
The PTrack tuple is enabled by setting a flag in the step RCP (bool ptrack_tuple = true).
A step RCP flag (bool time_trf = true) can be used to pass the timer to the TRF++ track finder to record PTrack time information. See the description at trffind/doc/timing-tuple.html.
TRF++ times are only recorded for named paths. These names are assigned when the paths are defined in the OBS file (name="cftx1"). This field is optional.
Modify the cft detector filler rcp file, which is included from the top level GtrFindPkg rcp file. For example, GtrFindPkg_CT.rcp has the following inclusion:
RCP cft_detector = <cft_trf2D Cft_add2D_clusters_NC>Modify the included rcp file to contain the following rcp parameter:
bool Write_McClusters = true
This package adds a new chunk to the event, SMTMcIdDataChunk, which can be saved. If you are processing data that already has SMTMcIdDataChunk's, then you can save some time by running package <smt_hitpackages SMTActivate3DClusters> instead. If the input file doesn't have SmtDataChunk, but it does have SMTMcIdDataChunk, then you must run package <smt_hitpackages SMTActivate3DClusters> to access cluster mcid information.
The class name of the Monte Carlo cluster filter is ClusterFilterMcId, which is released in library trffind.
To successfully use the Monte Carlo cluster filter, MC information must be added to the trf clusters, as described above.
Standard obs files should be modified as follows. Define the cluster filter in the init file for a particular tracking step (e.g. cft_CTaxial_init.obs, cft_CTstereo_init.obs, cft2D_init.obs). The obs syntax for this is as follows:
[ cfiltmc ClusterFilterMcId mcid=-1 enable=true ]Setting parameter mcid to be a positive number to selects a particular MC track (for example, a track that is known to fail). Setting mcid=-1 selects all Monte Carlo tracks while rejecting combinatoric fakes (i.e. tracks are required to have hits with compatible, non-empty MC ids.). The enable parameter can be used to turn the MC filter function on or off. Note that if this cluster filter is used for more than one tracking step, then the object name (cfiltmc in the above example) should be unique for different tracking steps.
Then in the path definition obs files, install the defined cluster filter object as the first cluster filter for each path. For example:
[ xxxxxx Path ... cfilters=@( cfiltmc ... ) ... ]The cluster filter should normally be installed on every path. If the cfilters parameter is missing, it should be added.
The complete set of obs files (init and path definition) for a particular tracking step are specified in the step rcp file, which is included in the top level GtrFindPkg rcp file.