Ignore:
Timestamp:
05/30/05 18:12:10 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc

    r5807 r7109  
    5555#include "MBadPixelsPix.h"
    5656
     57#include "MPedestalCam.h"
     58#include "MPedestalPix.h"
     59
    5760ClassImp(MPedPhotCam);
    5861
     
    6164// --------------------------------------------------------------------------
    6265//
    63 // Default constructor. Creates a MPedPhotPix object for each pixel
    64 //
    65 MPedPhotCam::MPedPhotCam(const char *name, const char *title)
     66// Contains the default constructor. Creates a MPedPhotPix object
     67// for each pixel
     68//
     69void MPedPhotCam::InitArrays(const char *name, const char *title)
    6670{
    6771    fName  = name  ? name  : "MPedPhotCam";
     
    7175    fAreas   = new TClonesArray("MPedPhotPix", 1);
    7276    fSectors = new TClonesArray("MPedPhotPix", 1);
     77}
     78
     79// --------------------------------------------------------------------------
     80//
     81// Default constructor. Creates a MPedPhotPix object for each pixel
     82//
     83MPedPhotCam::MPedPhotCam(const char *name, const char *title)
     84{
     85    InitArrays(name, title);
     86}
     87
     88// --------------------------------------------------------------------------
     89//
     90// Initialize the mean, rms and number of events with the values from
     91// the MPedestalCam converted 1:1
     92//
     93MPedPhotCam::MPedPhotCam(const MPedestalCam &p)
     94{
     95    const Int_t n = p.GetSize();
     96
     97    InitArrays();
     98    InitSize(n);
     99
     100    for (int i=0; i<n; i++)
     101        (*this)[i].Set(p[i].GetPedestal(), p[i].GetPedestalRms(), p[i].GetNumEvents());
    73102}
    74103
Note: See TracChangeset for help on using the changeset viewer.