Hello again, I've just updated brat, version is now 2.17.2 and tag is 2-17-2. The changes deal with two things, mainly: * FFS tracking : I simply removed all reference to a temporary T2 track line. This ugly hack that I introduced long ago can no longer be used. If you happen to have a script with BrFfsTrackingModule::UseT2Correction(), remove it since the method no longer exists. There were lots of modules that were using this tmp T2 line... I also suggest you compile brat from scratch (make distclean; configure, make) to avoid conflicts. * TOF calibration : I introduced the possibility to bypass the fitting routines at Finish. The idea is like the one I introduced for the beam-beam counters, i.e. an extensive use of the farm. I checked in a masterTOFCal.sh and I updated the OfflineTofCal.C. Basically, do the following: look at my directory ~ouerdane/ana/run04/tof (rcas) to set up your calibration directory, you need: ./masterTOFCal.sh ./adcgain/TofAdcGain.C ./adcgap/TofAdcGap.C ./deltadelay/TofDeltaDelay.C ./timeoffset/TofTimeOffset.C (the slewing follows another kind of procedure so, it's not included in this scheme). then, on rcas, use the master script: Usage: masterTOFCal.sh [option] --begin -b Begin run number [0] --detector -d Specify one or more detectors [all] --end -e Final run number [0] --help -h Gives this help --indir -i Input directory [/brahms/u/ouerdane/d08/data/run04/auau/200] --outdir -o Output directory [/brahms/u/ouerdane/ana/run04/tof] --queue -q Job queue [brahms_cas] --sequence -s Number of sequence [1000] --task -t Calibration task (adcgap, adcgain, deltadelay, timeoffset or pid) [adcgain] --verbose -v Be verbose [0] --gtr-version -V Version number of gtr files [1] As you can see, you have to use global track files and use the version number of those files. You can also use a different job queue (crs or cas). I usually use it this way: ./masterTOFCal.sh -b 11300 -e 11310 -i <some input dir> -o <some output dir> -t <some task> note that <input dir> and <output dir> should be the base dir of the glb track files and TOF cal (do not include /<runno>/gtr). Then all sequence histogram files of a given run will be merged. You can also decide to transfer them to a remote machine. You can also use the brat application 'mergehistfile' to merge the run histogram files altogether. Once you have done that, you can use the brat/scripts/calib/tof/OfflineTofCal.C bratroot -l .L OfflineTofCal.C then you have the choice between: adcGain(...) adcGap(...) deltaDelay(...) timeOffset(...) Of course, you must choose the method that correspond to the histogram file you have generated. Each of these methods will generate an ascii file with cal values for the given detector. You can call display(...) to check all tubes and refit if necessary: display(Bool_t <top tube>, Int_t tube = -1) if tube is -1, it simply increments automatically until the max tube number and goes back to the beginning. Note the following: I changed the algorithm for the adc gain cal. Since there is a y dependence, I plot a profile : ADC vs Ytrack. I fit the profile with a 2nd order polynomial and pick up the value at Y = 0. This fit turns out to be very good for ALL TOF dets, even the weirdest y dependence. So do not hesitate to use it. In all subsequent brat modules using the energy loss in the slats, I made sure that the cut is made on the geometrical average sqrt(Etop x Ebot) so, no worry to have here. If you need more info or could not make the stuff work, ask me, I will help you. Thanks to these scripts, I broke all speed records when I calibrated the whole 63 GeV data (including of course careful checking :) That's all, sorry for the length :) Djam -- Djamel Ouerdane ------------------------------------------o | Niels Bohr Institute | Home: | | Blegdamsvej 17, DK-2100 Ø | Jagtvej 141 2D, | | Fax: +45 35 32 50 16 | DK-2200 Copenhagen N | | Tel: +45 35 32 52 69 | +45 35 86 19 74 | | http://www.nbi.dk/~ouerdane | | ouerdane@nbi.dk | o---------------------------------------------------------o _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l@lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Thu May 20 05:25:10 2004
This archive was generated by hypermail 2.1.8 : Thu May 20 2004 - 05:25:26 EDT