Re: [Brahms-dev-l] fstree2datamap

From: Yang Hongyan <hongyanyang@gmail.com>
Date: Tue Sep 20 2005 - 08:53:06 EDT
Hi Selemon,
    it happened that I had the same problem when I was doing the H1 and 
H2 calibration on dAu runs. You don't need to commit the ascii files 
from last steps to the database in order to do the calibration on 
timeoffset - the following is what I added to the script to load the 
local ascii files from the previous calibrations on adcgain and deltadelay.
//___________________________________________________________________________
  BrTofAdcGainCalModule* tof1_adc = new 
BrTofAdcGainCalModule("TOF1","TOF1 adcgain calibration");
  tof1_adc->SetCalibFile(t1adcgainOption->GetValue());
  tof1_adc->SetLoadAscii(kTRUE);
  BrTofDeltaDelayCalModule* tof1_deltadelay = new 
BrTofDeltaDelayCalModule("TOF1","TOF1 deltadelay calibration");
  tof1_deltadelay->SetCalibFile(t1deltadelayOption->GetValue());
  tof1_deltadelay->SetLoadAscii(kTRUE);
// same for tof2
//___________________________________________________________________________

I did the same to test the dst production. I hope this is right and it 
helps to your problem.

Best regards,
  Hongyan



Bekele, Selemon wrote:

>Hi Peter,
>
>      thanks for your useful comment. I have been revisiting the
>delta delay and effective speed of light calibrations. I would like
>to continue with time offset calibratios. I want to do it reading from
>ascii files instead of reading from the database. But I see the following
>piece of code in "BrTofTimeOffsetCalModule.cxx"
>
>//____________________________________________________________________
>void BrTofTimeOffsetCalModule::Event(BrEventNode* inNode, BrEventNode* outNode)
>{
>  // Per event method
>  // Note the algortimh actually used is different if the t0 comes from either
>  // BB vertex or from the pp trigger start counters.
>  //
>  SetState(kEvent);
>  
>
>  // ---- get BB stuff
>
>  if (fCommitAscii || fLoadAscii)
>    return;
>....
>
>}
>
>//____________________________________________________________________
>void BrTofTimeOffsetCalModule::Finish()
>{
>  //-----------------------------------------------------------
>  // Fit histos with gaus
>  //-----------------------------------------------------------
>
>  // Job-level finalisation
>  SetState(kFinish);
>  
>  // if load ascii mode
>  if (fLoadAscii) 
>    return;
>
>
>....
>
>
>}
>
>This seems to me one cannot do time offset calibration by reading
>other calibration parameters from ascii files. Is that true? Do I
>neccessarily have to commit values to the database in order to do
>calibrations? I am just being careful.
>
>any comments are welcome,
>
>thanks,
>
>Selemon,
>  
>


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Tue Sep 20 14:55:50 2005

This archive was generated by hypermail 2.1.8 : Tue Sep 20 2005 - 14:55:57 EDT