/[PAMELA software]/calo/flight/CaloEnergy/src/CaloEnergy.cpp
ViewVC logotype

Diff of /calo/flight/CaloEnergy/src/CaloEnergy.cpp

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

revision 1.8 by mocchiut, Wed Aug 12 14:54:52 2009 UTC revision 1.9 by mocchiut, Thu Aug 13 15:56:57 2009 UTC
# Line 378  void CaloEnergy::Print(){ Line 378  void CaloEnergy::Print(){
378    printf(" energyxo:.............. %f \n",energyxo);    printf(" energyxo:.............. %f \n",energyxo);
379    printf(" energyye:.............. %f \n",energyye);    printf(" energyye:.............. %f \n",energyye);
380    printf(" energyyo:.............. %f \n",energyyo);    printf(" energyyo:.............. %f \n",energyyo);
381      printf(" fXEen_maxplane:........ %f \n",fXEen_maxplane);
382      printf(" fXOen_maxplane:........ %f \n",fXOen_maxplane);
383      printf(" fYEen_maxplane:........ %f \n",fYEen_maxplane);
384      printf(" fYOen_maxplane:........ %f \n",fYOen_maxplane);
385    printf(" x0max   :.............. %f \n",x0max);    printf(" x0max   :.............. %f \n",x0max);
386    printf(" debug   :.............. %i \n",debug);    printf(" debug   :.............. %i \n",debug);
387    
# Line 722  Bool_t CaloEnergy::IsInsideAcceptance(TS Line 726  Bool_t CaloEnergy::IsInsideAcceptance(TS
726      // event is contained (or partially contained) hence we can integrate energy up to the maximum and calculate the energy as measured by this section      // event is contained (or partially contained) hence we can integrate energy up to the maximum and calculate the energy as measured by this section
727      //      //
728      if ( fXosel ){      if ( fXosel ){
729        for (Int_t iplm=0;iplm<=TMath::Min(10,(Int_t)(fMax_planexo+nPl)) ;iplm++) fXOen_maxplane += en_xop[iplm];        for (Int_t iplm=0;iplm<=TMath::Min(10,(Int_t)(fMax_planexo+nPl)) ;iplm++){        
730            fXOen_maxplane += en_xop[iplm];
731            if ( debug ) printf(" XO iplm %i fXOen_maxplane %f  en_xop[iplm] %f\n",iplm,fXOen_maxplane,en_xop[iplm]);
732          };
733        fEnergyxo = fXOen_maxplane/fConv_rxo;        fEnergyxo = fXOen_maxplane/fConv_rxo;
734      };      };
735    };    };
# Line 771  Bool_t CaloEnergy::IsInsideAcceptance(TS Line 778  Bool_t CaloEnergy::IsInsideAcceptance(TS
778        fXesel = true;        fXesel = true;
779      };      };
780      if ( fXesel ){      if ( fXesel ){
781        for (Int_t iplm=0;iplm<=TMath::Min(10,(Int_t)(fMax_planexe+nPl)) ;iplm++) fXEen_maxplane += en_xep[iplm];        for (Int_t iplm=0;iplm<=TMath::Min(10,(Int_t)(fMax_planexe+nPl)) ;iplm++){
782            fXEen_maxplane += en_xep[iplm];
783            if ( debug ) printf(" XE iplm %i fXOen_maxplane %f  en_xop[iplm] %f\n",iplm,fXEen_maxplane,en_xep[iplm]);
784          };
785        fEnergyxe = fXEen_maxplane/fConv_rxe;        fEnergyxe = fXEen_maxplane/fConv_rxe;
786      };      };
787    };      };  

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23