/[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.2 by mocchiut, Fri Jul 20 09:13:38 2007 UTC revision 1.4 by mocchiut, Fri Aug 31 15:36:35 2007 UTC
# Line 36  CaloPreSampler::CaloPreSampler(PamLevel2 Line 36  CaloPreSampler::CaloPreSampler(PamLevel2
36    cont = false;    cont = false;
37    emulate18 = true;    emulate18 = true;
38    simulation = false;    simulation = false;
39      withtrk = true;
40      rigdefault = 50.;
41    //    //
42    Clear();    Clear();
43    //    //
# Line 131  void CaloPreSampler::Process(){ Line 133  void CaloPreSampler::Process(){
133    Int_t S11 = 0;    Int_t S11 = 0;
134    Float_t tmptrigty = -1.;    Float_t tmptrigty = -1.;
135    Bool_t trackanyway = true;    Bool_t trackanyway = true;
136    Float_t rigdefault = 50.;    //  Float_t rigdefault = 50.;
137    Bool_t hZn = true;    Bool_t hZn = true;
138    Bool_t withtrk = true;    //  Bool_t withtrk = true;
139    Bool_t st = true;    Bool_t st = true;
140    Int_t ntrkentry = 0;    Int_t ntrkentry = 0;
141    TrkLevel2 *trk = L2->GetTrkLevel2();    TrkLevel2 *trk = L2->GetTrkLevel2();
# Line 153  void CaloPreSampler::Process(){ Line 155  void CaloPreSampler::Process(){
155      if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -2 ) m2 = true;      if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -2 ) m2 = true;
156      if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -3 ) m3 = true;      if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -3 ) m3 = true;
157    };    };
158      if ( !withtrk ) m3 = true;
159    //    //
160    if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n");    if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n");
161    //    //
# Line 248  void CaloPreSampler::Process(){ Line 251  void CaloPreSampler::Process(){
251    //    //
252    event->clevel1->good2 = 1;    event->clevel1->good2 = 1;
253    //    //
254      // copy variables calculated during calibration process which is skipped here...
255      //
256      event->clevel2->good = L2->GetCaloLevel2()->good;
257      memcpy(event->clevel2->perr,L2->GetCaloLevel2()->perr,sizeof(L2->GetCaloLevel2()->perr));
258      memcpy(event->clevel2->swerr,L2->GetCaloLevel2()->swerr,sizeof(L2->GetCaloLevel2()->swerr));
259      memcpy(event->clevel2->crc,L2->GetCaloLevel2()->crc,sizeof(L2->GetCaloLevel2()->crc));
260      event->clevel2->selftrigger = L2->GetCaloLevel2()->selftrigger;
261      //
262    // Calculate variables common to all tracks (qtot, nstrip, etc.)    // Calculate variables common to all tracks (qtot, nstrip, etc.)
263    //    //
264    if ( debug ) printf("1 Call GetCommonVar() \n");    if ( debug ) printf("1 Call GetCommonVar() \n");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23