Ignore:
Timestamp:
09/17/04 10:20:52 (20 years ago)
Author:
moralejo
Message:
Updated some calls to current version of Mars:

- EvtData[i]->InitRead(RunHeader)  instead of  EvtData[i]->Init(RunHeader);
- MRawRunHeader::kMagicNumber instead of just kMagicNumber
- EvtData[i]->ResetPixels (0, 0) instead of EvtData[i]->DeletePixels();
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r5074 r5094  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.70 $
     23// $Revision: 1.71 $
    2424// $Author: moralejo $
    25 // $Date: 2004-09-16 15:23:12 $
     25// $Date: 2004-09-17 09:20:52 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    10751075    for (int i=0;i<numberBranches;i++) {
    10761076      EvtData[i] = new MRawEvtData();
    1077       EvtData[i]->Init(RunHeader);     //  We need thr RunHeader to read
    1078                                        //  number of pixels
     1077      EvtData[i]->InitRead(RunHeader);   //  We need the RunHeader to read
     1078                                         //  number of pixels
    10791079    }
    10801080  }
     
    11821182  //  Fill branches for MRawRunHeader
    11831183
    1184   RunHeader->SetMagicNumber(kMagicNumber);
     1184  RunHeader->SetMagicNumber(MRawRunHeader::kMagicNumber);
    11851185  RunHeader->SetFormatVersion(4);
    11861186  RunHeader->SetSoftVersion((UShort_t) (VERSION*10));
     
    22942294              for(int i=0;i<numberBranches;i++){
    22952295                EvtHeader[i]->Clear() ;
    2296                 EvtData[i]->DeletePixels();
     2296                EvtData[i]->ResetPixels (0, 0);
    22972297              }
    22982298            }
     
    25452545          for(int ict=0;ict<ct_Number;ict++){
    25462546            if (Write_RawEvt) EvtHeader[ict]->Clear() ;
    2547             if (Write_RawEvt) EvtData[ict]->DeletePixels();
     2547            if (Write_RawEvt) EvtData[ict]->ResetPixels(0,0);
    25482548            if (Write_McTrig) McTrig[ict]->Clear() ;
    25492549            if (Write_McEvt) McEvt[ict]->Clear() ;
     
    43634363//
    43644364// $Log: not supported by cvs2svn $
     4365// Revision 1.70  2004/09/16 15:23:12  moralejo
     4366//
     4367// Changed "flashadc" and "trigger" in procedure produce_nsbrates from
     4368// objects to pointers (followed by dynamical allocation). This is only
     4369// to avoid memory problems (-> segmentation fault) in some systems.
     4370// Introduced missing initialization to 0 of *itotnphe in produce_phes.
     4371// Now the number of phes produced by stars shown on the screen make sense.
     4372//
    43654373//
    43664374// Revision 1.69  2004/03/30
Note: See TracChangeset for help on using the changeset viewer.