/[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.8 by mocchiut, Fri Jan 25 15:09:07 2008 UTC revision 1.11 by mocchiut, Mon Dec 14 14:35:53 2009 UTC
# Line 36  CaloFranzini::CaloFranzini(PamLevel2 *l2 Line 36  CaloFranzini::CaloFranzini(PamLevel2 *l2
36    PKT = 0;    PKT = 0;
37    atime = 0;    atime = 0;
38    //    //
39      usepl18x = false;
40      //
41    crig = false;    crig = false;
42    sel = true;    sel = true;
43    cont = false;    cont = false;
# Line 129  void CaloFranzini::SetNoWcalo(Int_t n){ Line 131  void CaloFranzini::SetNoWcalo(Int_t n){
131    };    };
132  }  }
133    
134    void CaloFranzini::SplitInto(Int_t NoWpreSampler, Int_t NoWcalo){
135      this->SetNoWpreSampler(0);
136      this->SetNoWcalo(0);
137      if ( NoWpreSampler < NoWcalo ){
138              this->SetNoWpreSampler(NoWpreSampler);
139              this->SetNoWcalo(NoWcalo);
140      } else {
141              this->SetNoWcalo(NoWcalo);            
142              this->SetNoWpreSampler(NoWpreSampler);
143      };
144    }
145    
146    
147  void CaloFranzini::Process(){  void CaloFranzini::Process(){
148    this->Process(0);    this->Process(0);
149  }  }
# Line 188  void CaloFranzini::Process(Int_t itr){ Line 203  void CaloFranzini::Process(Int_t itr){
203        //        //
204        mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);        mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
205        //        //
206          if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
207          //
208        estrip[view][plane][strip] = mip;        estrip[view][plane][strip] = mip;
209        //            //    
210        nplane = 1 - view + 2 * (plane - N);        nplane = 1 - view + 2 * (plane - N);
# Line 281  void CaloFranzini::Process(Int_t itr){ Line 298  void CaloFranzini::Process(Int_t itr){
298        //        //
299        mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);        mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
300        //        //
301          if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
302          //
303        //      nplane = 1 - view + 2 * plane;        //      nplane = 1 - view + 2 * plane;
304        //      if ( nplane > 37 ) nplane--;        //      if ( nplane > 37 ) nplane--;
305        nplane = 1 - view + 2 * (plane - N);        nplane = 1 - view + 2 * (plane - N);
# Line 858  TMatrixF *CaloFranzini::LoadFullMatrix(I Line 877  TMatrixF *CaloFranzini::LoadFullMatrix(I
877    //    //
878  }  }
879    
880  void CaloFranzini::LoadFullMatrix(Int_t rigbin, TMatrixF *&fmatri){  void CaloFranzini::LoadFullMatrix(Int_t rigbin, TMatrixF *fmatri){
881    //    //
882    TString name = Form("origfmatrixn%i",rigbin);    TString name = Form("origfmatrixn%i",rigbin);
883    fmatri=(TMatrixF*)ffile->Get(name.Data());    fmatri=(TMatrixF*)ffile->Get(name.Data());

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

  ViewVC Help
Powered by ViewVC 1.1.23