Parameters have to be of basic type ( Int_t, Short_t, Float_t, Long_t, UInt_t, Bool_t, Char_t*) or TString. Arrays and enum are currently not supported, but will likely be added in the future.
Parameters are identified automatically by the system and can be used in a number of ways:
root [0] TPhModuleContext *c = new TPhModuleContext;
root [1] TPhObjectManager *o = new TPhObjectManager;
root [2] c->SetObjectManager(o)
root [3] TPhFindStraightTracksMod a("FindStraight", c)
root [4] Float_t residual = 0.4;
root [5] a.Set("fMaxResidual3", residual)
root [6] Float_t copy_residual = 0;
root [7] a.Get("fMaxResidual3", copy_residual)
root [8] copy_residual
(Float_t)4.00000005960464478e-01
root [10] ofstream f("my_analysis.txt")
root [11] a.Export(f)
root [12] .! cat my_analysis.txt
Class: TPhFindStraightTracksMod
Version: 1
#ei Name of hit container (Input)
TString fHitContainerName ""
#eo Name of track container (Output)
TString fTrackContainerName ""
# Number of spectrometer layers for track finding
Int_t fMaxLayer 4
# Minimum number of hits on valid straight track
Int_t fMinHits 3
# Max hit residual in 3rd plane
Float_t fMaxResidual3 0.4
# Max hit residual in 4th plane
Float_t fMaxResidual4 0.25
However, this mechanism is not yet fully developed.