324 |
DigitizePSCU(length,0x13,fDataPSCU); |
DigitizePSCU(length,0x13,fDataPSCU); |
325 |
AddPadding(); |
AddPadding(); |
326 |
WriteTrackCalib(); |
WriteTrackCalib(); |
|
|
|
|
DigitizeRunHeader(); |
|
|
WriteRunHeader(); |
|
|
|
|
327 |
LoadMipCor(); // some initialization of parameters -not used now- |
LoadMipCor(); // some initialization of parameters -not used now- |
328 |
// end loading, digitizing and writing tracker calibration |
// end loading, digitizing and writing tracker calibration |
329 |
// TOF ------ read calibration file (get A1, A2, lambda1, lambda2) |
// TOF ------ read calibration file (get A1, A2, lambda1, lambda2) |
342 |
|
|
343 |
Int_t nentries = fhBookTree->GetEntriesFast(); |
Int_t nentries = fhBookTree->GetEntriesFast(); |
344 |
Long64_t nbytes = 0; |
Long64_t nbytes = 0; |
345 |
for (Int_t i=0; i<nentries;i++) { |
for (Int_t i=0; i<nentries;i++) { |
346 |
nbytes += fhBookTree->GetEntry(i); |
nbytes += fhBookTree->GetEntry(i); |
347 |
// read detectors sequentially: |
// read detectors sequentially: |
348 |
// http://www.ts.infn.it/fileadmin/documents/physics/experiments/wizard/cpu/gen_arch/RM_Acquisition.pdf |
// http://www.ts.infn.it/fileadmin/documents/physics/experiments/wizard/cpu/gen_arch/RM_Acquisition.pdf |
349 |
// on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp |
// on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp |
350 |
DigitizeTOF(np,atte1,atte2,lambda1,lambda2); |
DigitizeTOF(np,atte1,atte2,lambda1,lambda2); |
351 |
DigitizeAC(); |
DigitizeAC(); |
352 |
DigitizeCALO(); |
DigitizeCALO(); |
353 |
DigitizeTrack(); |
DigitizeTrack(); |
366 |
if ((i%1000)==0)cout << "writing event " << i << endl; |
if ((i%1000)==0)cout << "writing event " << i << endl; |
367 |
WriteData(); |
WriteData(); |
368 |
} |
} |
|
DigitizeRunTrailer(); |
|
|
WriteRunTrailer(); |
|
369 |
|
|
370 |
fOutputfile.close(); |
fOutputfile.close(); |
371 |
cout << "files closed" << endl; |
cout << "files closed" << endl; |