/[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.8 by mocchiut, Tue Mar 11 16:15:13 2008 UTC revision 1.11 by mocchiut, Thu Dec 18 20:57:58 2008 UTC
# Line 42  CaloPreSampler::CaloPreSampler(PamLevel2 Line 42  CaloPreSampler::CaloPreSampler(PamLevel2
42    nox = false;    nox = false;
43    noy = false;    noy = false;
44    forcecalo = false;    forcecalo = false;
45      memset(mask,0,2*22*sizeof(Int_t));
46    //    //
47    Clear();    Clear();
48    //    //
# Line 94  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 200  void CaloPreSampler::Process(){ Line 213  void CaloPreSampler::Process(){
213      //      //
214      // Mask x or y view if nox and/or noy are true (default false)      // Mask x or y view if nox and/or noy are true (default false)
215      //      //
216        if ( mask[view][plane] ) mip = 0.;
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.8  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.23