/[PAMELA software]/DarthVader/NDLevel2/src/NDCore.cpp
ViewVC logotype

Diff of /DarthVader/NDLevel2/src/NDCore.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mocchiut, Tue Sep 5 14:49:42 2006 UTC revision 1.6 by mocchiut, Tue Sep 12 13:51:31 2006 UTC
# Line 461  int NDCore(UInt_t run, TFile *file, TSQL Line 461  int NDCore(UInt_t run, TFile *file, TSQL
461        //        //
462        l0ND->GetEntry(re);        l0ND->GetEntry(re);
463        tmpSize = l0ne->Records->GetEntries();        tmpSize = l0ne->Records->GetEntries();
464        if (!tmpSize) continue;        if ( tmpSize && l0ne->unpackError == 0 ){
465        if (l0ne->unpackError == 1) continue;          for (Int_t j = 0; j < tmpSize; j++){
466        for (Int_t j = 0; j < tmpSize; j++){            l0nr = (pamela::neutron::NeutronRecord*)l0ne->Records->At(j);
467          l0nr = (pamela::neutron::NeutronRecord*)l0ne->Records->At(j);            yTrig            = yTrig             + (float)l0nr->trigPhysics;
468          yTrig            = yTrig             + (float)l0nr->trigPhysics;            yUpperBackground  = yUpperBackground  + (float)l0nr->upperBack;
469          yUpperBackground  = yUpperBackground  + (float)l0nr->upperBack;            yBottomBackground = yBottomBackground + (float)l0nr->bottomBack;
470          yBottomBackground = yBottomBackground + (float)l0nr->bottomBack;          }
471        }          nd->upperBack = yUpperBackground;
472        nd->upperBack = yUpperBackground;          nd->bottomBack = yBottomBackground;
473        nd->bottomBack = yBottomBackground;          nd->trigPhysics = yTrig;            
474        nd->trigPhysics = yTrig;              };
475              //
476          //
477        NDtr->Fill();        // Fill tree NDLevel2 in the root file        NDtr->Fill();        // Fill tree NDLevel2 in the root file
478          //
479        yUpperBackground =0;        yUpperBackground =0;
480        yBottomBackground =0;        yBottomBackground =0;
481        yTrig=0;              yTrig=0;      

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23