Hi Jens Ivar I think it is a good way to begin. I don't think it is a permanent solution. I have been working on the TPC database the last 2 weeks and is about to commit some new classes for that. They can in principle handle this, but of course they need some testing and to have the routines optimized. They will be made public before the weekend. BTW I had a look at Set(In)ActiveRow and they both call SetActiveParameters which looks like it is deleting a lot arrays for no reason. If you agree maybe we should change that. The other reason for this is that it resets all pad parameters to Active which is not what I would expect for this function. Cheers Peter On Thu, 11 Oct 2001, Jens Ivar Jordre wrote: > Howdy brahmsers. > > Due to low effiency at the back of TPM2 FEE cards covering rows 19-20 > were moved to rows 17-18. This operation was done today. The last data > run with the old setting is thus 5276. What remains is to handle this > properly in software. > > Since most of the data collected this year is with rows 19-20 > instrumented, one should probably leave the DetectorParameters.txt file > as it is. Therefore there are at least two ways of handling this in > applications/scripts. > > 1. After calling > params->SetDbParameterFileName("DetectorParameters.txt"); > (or something more complex involving options and/or BrPathManager) > one can enable and disable rows with > BrDetectorParamsTPC* tpm2Par = (BrDetectorParamsTPC*) > params->GetDetectorParameters("BrDetectorParamsTPC", "TPM2"); > tpm2Par->SetRowActive(17); > tpm2Par->SetRowActive(18); > tpm2Par->SetRowInActive(19); > tpm2Par->SetRowInActive(20); > > 2. Make a tiny script that does this. The session will then be like: > params->SetDbParameterFileName("DetectorParameters.txt"); > gROOT->Macro("TPM2ParamsAfter20011011.C"); > > By putting this small macro into say brat/scripts, on has easy reference > to it via BrPathManager::GetScriptDir(). Any objection to doing it this way? > > > > > > -- :-) --------------------------------- )-: |Peter H L Christiansen aka PAN @ NBI | |EMAIL : pchristi@nbi.dk | |OFFICE : Tb1 @ NBI | |PHONE : 353 25269 | |SNAIL : Hans Tavsensgade 35, 4th | |PHONE : 35 349336 | :-D --------------------------------- \-:
This archive was generated by hypermail 2b30 : Thu Oct 11 2001 - 15:09:35 EDT