/[PAMELA software]/yoda/techmodel/CalibTrk2Reader.cpp
ViewVC logotype

Diff of /yoda/techmodel/CalibTrk2Reader.cpp

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

revision 1.3 by kusanagi, Sat Jul 17 20:03:38 2004 UTC revision 1.4 by kusanagi, Thu Aug 19 15:24:46 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v $
3   * $Id: CalibTrk2Reader.cpp,v 1.2 2004/07/06 13:31:18 kusanagi Exp $   * $Id: CalibTrk2Reader.cpp,v 1.3 2004/07/17 20:03:38 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# Line 69  CalibTrk2Reader::CalibTrk2Reader(void): Line 69  CalibTrk2Reader::CalibTrk2Reader(void):
69   */   */
70  std::string CalibTrk2Reader::GetVersionInfo(void) const {  std::string CalibTrk2Reader::GetVersionInfo(void) const {
71    return    return
72      "$Header: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v 1.2 2004/07/06 13:31:18 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v 1.3 2004/07/17 20:03:38 kusanagi Exp $\n";
73  }  }
74    
75  /**  /**
# Line 137  void CalibTrk2Reader::RunEvent(int Event Line 137  void CalibTrk2Reader::RunEvent(int Event
137          memcpy(calibTrk2->nbad_l2,   trkcalib_.nbad_l2,    sizeof(calibTrk2->nbad_l2));          memcpy(calibTrk2->nbad_l2,   trkcalib_.nbad_l2,    sizeof(calibTrk2->nbad_l2));
138          memcpy(calibTrk2->nbad_l3,   trkcalib_.nbad_l3,    sizeof(calibTrk2->nbad_l3));          memcpy(calibTrk2->nbad_l3,   trkcalib_.nbad_l3,    sizeof(calibTrk2->nbad_l3));
139          memcpy(calibTrk2->cal_flag,  trkcalib_.cal_flag,   sizeof(calibTrk2->cal_flag));                memcpy(calibTrk2->cal_flag,  trkcalib_.cal_flag,   sizeof(calibTrk2->cal_flag));      
140          memcpy(calibTrk2->checksum,  trkcalib_.checksum,   sizeof(calibTrk2->checksum));          
141          memcpy(calibTrk2->DSPbad_par,trkcalib_.DSPbad_par, sizeof(calibTrk2->DSPbad_par));        //--------have to invert array because of FORTRAN <-> C different management of the indexes
142          memcpy(calibTrk2->DSPped_par,trkcalib_.DSPped_par, sizeof(calibTrk2->DSPped_par));                int tempBad_par[3072][6];
143          memcpy(calibTrk2->DSPsig_par,trkcalib_.DSPsig_par, sizeof(calibTrk2->DSPsig_par));                int tempPed_par[3072][6];
144            int tempSig_par[3072][6];
145            memcpy(tempBad_par,trkcalib_.DSPbad_par, sizeof(tempBad_par));      
146            memcpy(tempPed_par,trkcalib_.DSPped_par, sizeof(tempPed_par));      
147            memcpy(tempSig_par,trkcalib_.DSPsig_par, sizeof(tempSig_par));      
148    
149            for (int i = 0; i < 6; i++){
150                for (int j = 0; j < 3072; j++){
151                    calibTrk2->DSPbad_par[i][j] = tempBad_par[j][i];
152                    calibTrk2->DSPped_par[i][j] = tempPed_par[j][i];
153                    calibTrk2->DSPsig_par[i][j] = tempSig_par[j][i];
154                }
155            }
156    //-----------------------------------------------------------------------------------------
157    
158          cat <<  log4cpp::Priority::ERROR          cat <<  log4cpp::Priority::ERROR
159              <<  "Fortran77 function trkcalibpkt error code = " << ERROR              <<  "Fortran77 function trkcalibpkt error code = " << ERROR

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

  ViewVC Help
Powered by ViewVC 1.1.23