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

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

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

revision 1.9 by mocchiut, Mon Apr 7 13:51:52 2008 UTC revision 1.11 by mocchiut, Thu Dec 18 20:57:58 2008 UTC
# Line 95  void CaloPreSampler::SetNoWcalo(Int_t n) Line 95  void CaloPreSampler::SetNoWcalo(Int_t n)
95    };    };
96  }  }
97    
98    void CaloPreSampler::SplitInto(Int_t NoWpreSampler, Int_t NoWcalo){
99      this->SetNoWcalo(0);
100      this->SetNoWpreSampler(0);
101      if ( NoWpreSampler < NoWcalo ){
102            this->SetNoWpreSampler(NoWpreSampler);
103            this->SetNoWcalo(NoWcalo);
104      } else {
105            this->SetNoWcalo(NoWcalo);
106            this->SetNoWpreSampler(NoWpreSampler);
107      };
108    }
109    
110  void CaloPreSampler::Clear(){  void CaloPreSampler::Clear(){
111    //    //
112    pcalo->Clear();    pcalo->Clear();
# Line 205  void CaloPreSampler::Process(){ Line 217  void CaloPreSampler::Process(){
217      if ( nox && view == 0 ) mip = 0.;      if ( nox && view == 0 ) mip = 0.;
218      if ( noy && view == 1 ) mip = 0.;      if ( noy && view == 1 ) mip = 0.;
219      //      //
220        if ( emulate18 && view == 0 && plane == 18 ) mip = 0.;
221        //
222      // Selection mode: fill the matrix only for plane < (22 - N) REMEMBER N = number of W planes to be used as presampler, ie if N = 2 then we want to use planes from 0 to 19      // Selection mode: fill the matrix only for plane < (22 - N) REMEMBER N = number of W planes to be used as presampler, ie if N = 2 then we want to use planes from 0 to 19
223      //                 included so plane < (22 - 2)      //                 included so plane < (22 - 2)
224      //      //

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

  ViewVC Help
Powered by ViewVC 1.1.23