/[PAMELA software]/DarthVader/CalorimeterLevel2/src/CaloLevel0.cpp
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/src/CaloLevel0.cpp

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

revision 1.9 by mocchiut, Thu Oct 25 13:24:19 2007 UTC revision 1.10 by mocchiut, Fri Nov 9 10:38:25 2007 UTC
# Line 1087  Int_t CaloLevel0::Calibrate(Int_t ei){ Line 1087  Int_t CaloLevel0::Calibrate(Int_t ei){
1087              if ( obadmask[l][m][j4] == 1 || clevel1->estrip[j4][m][l] <= clevel1->emin || calrms[l][m][j4] > 26 ){              if ( obadmask[l][m][j4] == 1 || clevel1->estrip[j4][m][l] <= clevel1->emin || calrms[l][m][j4] > 26 ){
1088                clevel1->estrip[j4][m][l] = 0.;                clevel1->estrip[j4][m][l] = 0.;
1089              };              };
1090              //              //
1091              // code and save the energy for each strip in svstrip              // code and save the energy for each strip in svstrip
1092              //              //
1093              if ( clevel1->estrip[j4][m][l] > clevel1->emin ){              if ( clevel1->estrip[j4][m][l] > clevel1->emin ){
1094                //                //
1095                  Float_t savel1 = clevel1->estrip[j4][m][l];
1096                  if ( dexyc[j4][m][l] == 32767. ) savel1 += 5000.;
1097                  //
1098                tim = 100000.;                tim = 100000.;
1099                plo = m;                plo = m;
1100                fbi = 0;                fbi = 0;
1101                if ( clevel1->estrip[j4][m][l] > 0.99995 ){                if ( savel1 > 0.99995 ){
1102                  tim = 10000.;                  tim = 10000.;
1103                  plo = m;                  plo = m;
1104                  fbi = 1;                  fbi = 1;
1105                };                };
1106                if ( clevel1->estrip[j4][m][l] > 9.9995 ){                if ( savel1 > 9.9995 ){
1107                  tim = 1000.;                  tim = 1000.;
1108                  plo = 22 + m;                  plo = 22 + m;
1109                  fbi = 1;                  fbi = 1;
1110                };                };
1111                if ( clevel1->estrip[j4][m][l] > 99.995 ){                if ( savel1 > 99.995 ){
1112                  tim = 100.;                  tim = 100.;
1113                  plo = 22 + m;                  plo = 22 + m;
1114                  fbi = 0;                  fbi = 0;
1115                };                };
1116                if ( clevel1->estrip[j4][m][l] > 999.95 ){                if ( savel1 > 999.95 ){
1117                  tim = 10.;                  tim = 10.;
1118                  plo = 44 + m;                  plo = 44 + m;
1119                  fbi = 0;                  fbi = 0;
1120                };                };
1121                if ( clevel1->estrip[j4][m][l] > 9999.5 ){                if ( savel1 > 9999.5 ){
1122                  tim = 1.;                  tim = 1.;
1123                  plo = 66 + m;                  plo = 66 + m;
1124                  fbi = 0;                  fbi = 0;
1125                };                };
1126                //                //
1127                cle = (Int_t)lroundf(tim*clevel1->estrip[j4][m][l]);                cle = (Int_t)lroundf(tim*savel1);
1128                //                //
1129                if ( l == 0 ){                if ( l == 0 ){
1130                  //                  //

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

  ViewVC Help
Powered by ViewVC 1.1.23