Changeset 1051 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/08/01 10:49:49 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r1048 r1051  
    117117        const MPedestalPix &ped = (*fPedestals)[pixid];
    118118
    119         const Float_t nphot = (Float_t)pixel.GetSumHiGainFadcSamples() - ped.GetMean();
     119        const Float_t nphot = (Float_t)pixel.GetSumHiGainSamples() - ped.GetMean();
    120120
    121121        fCerPhotEvt->AddPixel(pixid, nphot, ped.GetMeanRms());
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r1048 r1051  
    3030
    3131#include <TCanvas.h>
    32 #include <TClonesArray.h>
    3332
    3433#include "MLog.h"
    3534#include "MHexagon.h"
    36 #include "MCerPhotPix.h"
    3735
    3836ClassImp(MCerPhotEvt);
     
    4745    fTitle = title ? title : "(Number of Photon)-Event Information";
    4846
    49     fPixels = new TClonesArray ("MCerPhotPix", 0);
     47    fPixels = new TClonesArray("MCerPhotPix", 0);
    5048}
    5149
     
    6664    //    delete geom;
    6765    //    disp->DrawPhotNum(this);
    68 }
    69 
    70 // --------------------------------------------------------------------------
    71 //
    72 // add a new pixel to the list and increase the number
    73 // of valid pixels in the list by one
    74 //
    75 void MCerPhotEvt::AddPixel(Int_t id, Float_t nph, Float_t err)
    76 {
    77     // TClonesArray -> 'operator new with placement' should be used
    78 
    79     //    fPixels->ExpandCreate(fNumPixels);
    80     new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, err);
    8166}
    8267
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h

    r1048 r1051  
    55#include <TClonesArray.h>
    66#endif
    7 #ifndef MARS_MParContainer
    8 #include "MParContainer.h"
     7#ifndef MARS_MCerPhotPix
     8#include "MCerPhotPix.h"
    99#endif
    1010
     
    2424    void   InitSize(UInt_t num) { fPixels->Expand(num); }
    2525
    26     void   AddPixel(Int_t id, Float_t nph, Float_t err);
     26    void   AddPixel(Int_t id, Float_t nph, Float_t err)
     27    {
     28        new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, err);
     29    }
     30
    2731
    2832    Bool_t  IsPixelExisting(Int_t id) const;
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r1035 r1051  
    6363    {
    6464        if (run->GetRunType() != kRTMonteCarlo)
     65        {
     66            *fLog << "No Monte Carlo File - MMcPedestalCopy skipped." << endl;
    6567            return kTRUE;
     68        }
    6669    }
    6770
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r1010 r1051  
    8787    while (pixel.Next())
    8888    {
    89               Byte_t *ptr = pixel.GetHiGainFadcSamples();
     89              Byte_t *ptr = pixel.GetHiGainSamples();
    9090        const Byte_t *end = ptr + fRawEvt->GetNumHiGainSamples();
    9191
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r1003 r1051  
    4949    //
    5050    // TClonesArray: The 'new operator with placement' must be used
     51    // FIXME: Use ExpandCraete instead
    5152    //
    5253    for (int i=0; i<577; i++)
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r1036 r1051  
    390390
    391391        //*fLog << "Branch " << bname << " autodel: " << (int)branch->IsAutoDelete() << endl;
    392         branch->SetAutoDelete();
     392        //branch->SetAutoDelete();
    393393
    394394        num++;
  • trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc

    r1030 r1051  
    149149    //   Map the window, set up the layout, etc.
    150150    //
    151     SetWMSizeHints(450, 400, 1000, 1000, 10, 10 );      // set the smallest and biggest size of the Main frame
    152 
    153151    MapSubwindows();
    154152
  • trunk/MagicSoft/Mars/mhist/MHFadcCam.cc

    r1030 r1051  
    102102
    103103        for (Int_t i=0;  i<nhisamples; i++)
    104             FillHi(id, pixel.GetHiGainFadcSamples()[i]);
     104            FillHi(id, pixel.GetHiGainSamples()[i]);
    105105
    106106        if (!pixel.HasLoGain())
     
    108108
    109109        for (Int_t i=0; i<nlosamples; i++)
    110             FillLo(id, pixel.GetLoGainFadcSamples()[i]);
     110            FillLo(id, pixel.GetLoGainSamples()[i]);
    111111    }
    112112
Note: See TracChangeset for help on using the changeset viewer.