325 |
AddPadding(); |
AddPadding(); |
326 |
WriteTrackCalib(); |
WriteTrackCalib(); |
327 |
|
|
328 |
DigitizeRunHeader(); |
////////////////////////// DigitizeRunHeader(); |
329 |
WriteRunHeader(); |
///////////////////////// WriteRunHeader(); |
330 |
|
|
331 |
LoadMipCor(); // some initialization of parameters -not used now- |
LoadMipCor(); // some initialization of parameters -not used now- |
332 |
// end loading, digitizing and writing tracker calibration |
// end loading, digitizing and writing tracker calibration |
346 |
|
|
347 |
Int_t nentries = fhBookTree->GetEntriesFast(); |
Int_t nentries = fhBookTree->GetEntriesFast(); |
348 |
Long64_t nbytes = 0; |
Long64_t nbytes = 0; |
349 |
for (Int_t i=0; i<nentries;i++) { |
for (Int_t i=0; i<nentries;i++) { |
350 |
nbytes += fhBookTree->GetEntry(i); |
nbytes += fhBookTree->GetEntry(i); |
351 |
// read detectors sequentially: |
// read detectors sequentially: |
352 |
// 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 |
353 |
// on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp |
// on pamelatov: /cvs/yoda/techmodel/physics/NeutronDetectorReader.cpp |
354 |
DigitizeTOF(np,atte1,atte2,lambda1,lambda2); |
DigitizeTOF(np,atte1,atte2,lambda1,lambda2); |
355 |
DigitizeAC(); |
DigitizeAC(); |
356 |
DigitizeCALO(); |
DigitizeCALO(); |
357 |
DigitizeTrack(); |
DigitizeTrack(); |
370 |
if ((i%1000)==0)cout << "writing event " << i << endl; |
if ((i%1000)==0)cout << "writing event " << i << endl; |
371 |
WriteData(); |
WriteData(); |
372 |
} |
} |
373 |
DigitizeRunTrailer(); |
//////////////////////////////// DigitizeRunTrailer(); |
374 |
WriteRunTrailer(); |
//////////////////////////////// WriteRunTrailer(); |
375 |
|
|
376 |
fOutputfile.close(); |
fOutputfile.close(); |
377 |
cout << "files closed" << endl; |
cout << "files closed" << endl; |