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; |