/[PAMELA software]/DarthVader/CalorimeterLevel2/src/CaloProcessing.cpp
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/src/CaloProcessing.cpp

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

revision 1.9 by pam-fi, Thu Jan 11 09:32:54 2007 UTC revision 1.10 by mocchiut, Wed Jan 17 09:58:17 2007 UTC
# Line 363  Int_t CaloProcessing::Calibrate(Int_t ei Line 363  Int_t CaloProcessing::Calibrate(Int_t ei
363    Int_t val = 0;    Int_t val = 0;
364    Int_t del = 1100;    Int_t del = 1100;
365    if ( clevel2->trigty != 2. ){    if ( clevel2->trigty != 2. ){
366        Bool_t ck = false;
367      for (Int_t sec = 0; sec < 4; sec++){      for (Int_t sec = 0; sec < 4; sec++){
368        val = (Int_t)de->calselftrig[sec][6];        val = (Int_t)de->calselftrig[sec][6];
369        del = delay(val);        del = delay(val);
370        if ( del < 1100 ){        if ( del < 1100 ){
371            clevel2->wartrig = 0.;      
372          clevel2->trigty = 3.;          clevel2->trigty = 3.;
373            ck = true;
374          break;          break;
375        };        };
376      };      };
377        if ( !ck ) clevel2->wartrig = 100.;      
378      } else {
379        Bool_t ck = false;
380        for (Int_t sec = 0; sec < 4; sec++){
381          val = (Int_t)de->calselftrig[sec][6];
382          del = delay(val);
383          if ( del < 1100 ){
384            clevel2->wartrig = 0.;      
385            ck = true;
386          };
387        };
388        if ( !ck ) clevel2->wartrig = 100.;      
389    };    };
390    //    //
391    Int_t se = 5;    Int_t se = 5;
# Line 747  void CaloProcessing::FillCommonVar(CaloL Line 762  void CaloProcessing::FillCommonVar(CaloL
762    } else {    } else {
763      ca->selftrigger = 0;      ca->selftrigger = 0;
764    };    };
765      //
766      ca->selftrigger += (Int_t)clevel2->wartrig;
767      //
768    memcpy(ca->perr,clevel2->perr,sizeof(clevel2->perr));    memcpy(ca->perr,clevel2->perr,sizeof(clevel2->perr));
769    memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr));    memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr));
770    memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc));    memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc));
# Line 829  void CaloProcessing::ClearTrkVar(){ Line 847  void CaloProcessing::ClearTrkVar(){
847  void CaloProcessing::ClearCommonVar(){  void CaloProcessing::ClearCommonVar(){
848    istrip = 0;    istrip = 0;
849    clevel2->trigty = -1.;    clevel2->trigty = -1.;
850      clevel2->wartrig = 0.;
851    clevel2->good = 0;    clevel2->good = 0;
852    clevel2->nstrip = 0.;    clevel2->nstrip = 0.;
853    clevel2->qtot = 0.;    clevel2->qtot = 0.;

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

  ViewVC Help
Powered by ViewVC 1.1.23