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

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

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

revision 1.6 by mocchiut, Fri Jan 11 15:27:13 2008 UTC revision 1.7 by mocchiut, Mon Jan 21 10:24:11 2008 UTC
# Line 328  void CaloFranzini::WriteInvertedLongMatr Line 328  void CaloFranzini::WriteInvertedLongMatr
328    file->WriteObject(&mat,name.Data());    file->WriteObject(&mat,name.Data());
329  }  }
330    
331  void CaloFranzini::WriteInvertedFullMatrix(TMatrixF mat, Int_t bin){  void CaloFranzini::WriteInvertedFullMatrix(TMatrixD mat, Int_t bin){
332    file->cd();    file->cd();
333    TString name = Form("fmatrixn%i",bin);    TString name = Form("fmatrixn%i",bin);
334    //  mat.Write(name.Data());    //  mat.Write(name.Data());
# Line 342  void CaloFranzini::WriteLongMatrix(TMatr Line 342  void CaloFranzini::WriteLongMatrix(TMatr
342    file->WriteObject(&(*mat),name.Data());    file->WriteObject(&(*mat),name.Data());
343  }  }
344    
345  void CaloFranzini::WriteFullMatrix(TMatrixF *mat, Int_t bin){  void CaloFranzini::WriteFullMatrix(TMatrixD *mat, Int_t bin){
346    file->cd();    file->cd();
347    TString name = Form("origfmatrixn%i",bin);    TString name = Form("origfmatrixn%i",bin);
348    //  mat.Write(name.Data());    //  mat.Write(name.Data());
# Line 923  void CaloFranzini::DrawLongAverage(Int_t Line 923  void CaloFranzini::DrawLongAverage(Int_t
923    gStyle->SetNdivisions(1,"XY");    gStyle->SetNdivisions(1,"XY");
924    //    //
925  };  };
926    
927    Int_t CaloFranzini::ConvertStrip(Int_t mstrip){  
928      //
929      Int_t lastrip = 0;
930      //
931      if ( mstrip < 50 ) lastrip = 0;
932      //
933      if ( mstrip >= 50 && mstrip < 64 ) lastrip = 1;
934      //
935      if ( mstrip >= 64 && mstrip < 70 ) lastrip = 2;
936      //
937      if ( mstrip >= 70 && mstrip < 75 ) lastrip = 3;
938      //
939      if ( mstrip >= 75 && mstrip < 84 ){    
940        lastrip = (int)trunc((mstrip - 75)/3.) + 4;
941      };
942      //
943      if ( mstrip >= 84 && mstrip < 90 ){    
944        lastrip = (int)trunc((mstrip - 84)/2.) + 7;
945      };
946      //
947      if ( mstrip >= 90 && mstrip < 101 ){    
948        lastrip = mstrip - 90 + 10;
949      };
950      //
951      if ( mstrip >= 101 && mstrip < 107 ){    
952        lastrip = (int)trunc((mstrip - 101)/2.) + 21;
953      };
954      //
955      //
956      if ( mstrip >= 107 && mstrip < 116 ){    
957        lastrip = (int)trunc((mstrip - 107)/3.) + 24;
958      };
959      //
960      if ( mstrip >= 116 && mstrip < 121 ) lastrip = 27;
961      //
962      if ( mstrip >= 121 && mstrip < 127 ) lastrip = 28;
963      //
964      if ( mstrip >= 127 && mstrip < 141 ) lastrip = 29;
965      //
966      if ( mstrip >= 141 ) lastrip = 30;
967      //
968      return(lastrip);
969    }

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

  ViewVC Help
Powered by ViewVC 1.1.23