/[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.7 by mocchiut, Mon Dec 3 13:57:11 2007 UTC revision 1.8 by mocchiut, Tue Mar 11 16:15:13 2008 UTC
# Line 41  CaloPreSampler::CaloPreSampler(PamLevel2 Line 41  CaloPreSampler::CaloPreSampler(PamLevel2
41    rigdefault = 50.;    rigdefault = 50.;
42    nox = false;    nox = false;
43    noy = false;    noy = false;
44      forcecalo = false;
45    //    //
46    Clear();    Clear();
47    //    //
# Line 208  void CaloPreSampler::Process(){ Line 209  void CaloPreSampler::Process(){
209      if ( sel ){      if ( sel ){
210        if ( plane < (22 - N) ){        if ( plane < (22 - N) ){
211          //          //
212          if ( emulate18 && plane == (18 - N) ) mip = 0.;          if ( emulate18 && plane == (18 - N) && view == 0 ) mip = 0.;
213          if ( plane >= NC ) mip = 0.;          if ( plane >= NC ) mip = 0.;
214          event->clevel1->estrip[strip][plane][view] = mip;          event->clevel1->estrip[strip][plane][view] = mip;
215          //          //
# Line 220  void CaloPreSampler::Process(){ Line 221  void CaloPreSampler::Process(){
221      if ( cont ){      if ( cont ){
222        if ( plane >= N ){        if ( plane >= N ){
223          //          //
224          if ( emulate18 && plane == (18 + N) ) mip = 0.;          if ( emulate18 && plane == (18 + N) && view == 0 ) mip = 0.;
225          if ( (plane-N) >= NC ) mip = 0.;          if ( (plane-N) >= NC ) mip = 0.;
226          event->clevel1->estrip[strip][(plane-N)][view] = mip;          event->clevel1->estrip[strip][(plane-N)][view] = mip;
227          //          //
# Line 357  void CaloPreSampler::Process(){ Line 358  void CaloPreSampler::Process(){
358    // conditions are: 0) no track from the tracker 1) we have a track fit both in x and y 2) no problems with calo for this event 3) no selftrigger event    // conditions are: 0) no track from the tracker 1) we have a track fit both in x and y 2) no problems with calo for this event 3) no selftrigger event
359    //    //
360    //  if ( trackanyway && !filled && event->clevel2->npcfit[0] >= 2 && event->clevel2->npcfit[1] >= 2 && event->clevel2->good != 0 && event->clevel2->trigty < 2. ){    //  if ( trackanyway && !filled && event->clevel2->npcfit[0] >= 2 && event->clevel2->npcfit[1] >= 2 && event->clevel2->good != 0 && event->clevel2->trigty < 2. ){
361    if ( trackanyway && m3 ){    if ( (trackanyway && m3) || forcecalo ){
362      if ( debug ) printf(" Event with a track not fitted by the tracker \n");      if ( debug ) printf(" Event with a track not fitted by the tracker \n");
363      //      //
364      // Disable "track mode" in the fortran routine      // Disable "track mode" in the fortran routine

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

  ViewVC Help
Powered by ViewVC 1.1.23