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

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

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

revision 1.5 by mocchiut, Tue May 22 08:15:05 2007 UTC revision 1.6 by mocchiut, Mon Sep 3 08:42:13 2007 UTC
# Line 399  Int_t CaloLevel0::Calibrate(Int_t ei){ Line 399  Int_t CaloLevel0::Calibrate(Int_t ei){
399    //    //
400    Int_t val = 0;    Int_t val = 0;
401    Int_t del = 1100;    Int_t del = 1100;
402      for (Int_t sec = 0; sec < 4; sec++){
403        for (Int_t dsec = 0; dsec < 7; dsec++){
404          val = (Int_t)de->calselftrig[sec][dsec];
405          del = delay(val);
406          clevel2->selfdelay[sec][dsec] = del;
407        };
408      };
409      val = 0;
410      del = 1100;
411    if ( clevel2->trigty != 2. ){    if ( clevel2->trigty != 2. ){
412      Bool_t ck = false;      Bool_t ck = false;
413      for (Int_t sec = 0; sec < 4; sec++){      for (Int_t sec = 0; sec < 4; sec++){
# Line 786  void CaloLevel0::FillTrkVar(CaloLevel2 * Line 795  void CaloLevel0::FillTrkVar(CaloLevel2 *
795      memcpy(t_ca->tibar,clevel2->cibar,sizeof(clevel2->cibar));      memcpy(t_ca->tibar,clevel2->cibar,sizeof(clevel2->cibar));
796      memcpy(t_ca->tbar,clevel2->cbar,sizeof(clevel2->cbar));      memcpy(t_ca->tbar,clevel2->cbar,sizeof(clevel2->cbar));
797      memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax));      memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax));
798        memcpy(ca->selfdelay,clevel2->selfdelay,sizeof(clevel2->selfdelay));
799      ca->varcfit[2] = clevel2->varcfit[0];      ca->varcfit[2] = clevel2->varcfit[0];
800      ca->varcfit[3] = clevel2->varcfit[1];      ca->varcfit[3] = clevel2->varcfit[1];
801      ca->npcfit[2] = clevel2->npcfit[0];      ca->npcfit[2] = clevel2->npcfit[0];
# Line 838  void CaloLevel0::FillCommonVar(CaloLevel Line 848  void CaloLevel0::FillCommonVar(CaloLevel
848    ca->selen = clevel2->selen;    ca->selen = clevel2->selen;
849    memcpy(ca->qq,clevel2->qq,sizeof(clevel2->qq));    memcpy(ca->qq,clevel2->qq,sizeof(clevel2->qq));
850    memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax));    memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax));
851      memcpy(ca->selfdelay,clevel2->selfdelay,sizeof(clevel2->selfdelay));
852    ca->varcfit[0] = clevel2->varcfit[0];    ca->varcfit[0] = clevel2->varcfit[0];
853    ca->varcfit[1] = clevel2->varcfit[1];    ca->varcfit[1] = clevel2->varcfit[1];
854    ca->npcfit[0] = clevel2->npcfit[0];    ca->npcfit[0] = clevel2->npcfit[0];
# Line 928  void CaloLevel0::ClearCommonVar(){ Line 939  void CaloLevel0::ClearCommonVar(){
939    memset(clevel2->varcfit, 0, 4*sizeof(Float_t));    memset(clevel2->varcfit, 0, 4*sizeof(Float_t));
940    memset(clevel2->npcfit, 0, 4*sizeof(Int_t));    memset(clevel2->npcfit, 0, 4*sizeof(Int_t));
941    memset(clevel2->planemax, 0, 2*sizeof(Int_t));    memset(clevel2->planemax, 0, 2*sizeof(Int_t));
942      memset(clevel2->selfdelay, 0, 4*7*sizeof(Int_t));
943    memset(clevel2->fmode, 0, 2*sizeof(Int_t));    memset(clevel2->fmode, 0, 2*sizeof(Int_t));
944    memset(clevel2->cibar, 0, 2*22*sizeof(Int_t));    memset(clevel2->cibar, 0, 2*22*sizeof(Int_t));
945    memset(clevel2->cbar, 0, 2*22*sizeof(Float_t));    memset(clevel2->cbar, 0, 2*22*sizeof(Float_t));

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23