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

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

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

revision 1.6 by mocchiut, Wed Jun 24 14:12:55 2009 UTC revision 1.7 by mocchiut, Tue Aug 4 15:05:21 2009 UTC
# Line 742  void CaloLong::Fit(Bool_t draw){ Line 742  void CaloLong::Fit(Bool_t draw){
742      xpos = (st - mmin) * X0pl;      xpos = (st - mmin) * X0pl;
743      if ( st > mmin && st < mmax ){            if ( st > mmin && st < mmax ){      
744        if ( no18x && ( st == 18+1 || st == mask18b+1 )){        if ( no18x && ( st == 18+1 || st == mask18b+1 )){
745          enemip = 2. * eplane[1][st];          if ( !maskYO ){
746              enemip = 2. * eplane[1][st];
747            } else {
748              enemip = eplane[1][st];
749            };
750        } else {        } else {
751          enemip = eplane[0][st-1] + eplane[1][st];          enemip = eplane[0][st-1] + eplane[1][st];
752        };        };
753      } else {      } else {
754        if ( st == mmin ) enemip = 2. * eplane[1][st];        if ( st == mmin ){
755        if ( st == mmax ) enemip = 2. * eplane[0][st-1];          if ( !maskYE ){
756              enemip = 2. * eplane[1][st];
757            } else {
758              enemip = eplane[1][st];
759            };
760          };
761          if ( st == mmax ){
762            if ( !maskXE ){
763              enemip = 2. * eplane[0][st-1];
764            } else {
765              enemip = eplane[0][st-1];
766            };
767          };
768      };      };
769      //      //
770      qtotparz += enemip;      qtotparz += enemip;

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

  ViewVC Help
Powered by ViewVC 1.1.23