Ignore:
Timestamp:
05/30/05 18:12:10 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
2 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
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.h

    r4609 r7109  
    1414class MPedPhotPix;
    1515class MBadPixelsCam;
     16class MPedestalCam;
    1617
    1718class MPedPhotCam : public MParContainer, public MCamEvent
     
    2223    TClonesArray *fSectors;  //-> Array of MPedPhotPix, one per camera sector
    2324
     25    void InitArrays(const char *name=NULL, const char *title=NULL);
     26
    2427    //  void InitSize(const UInt_t i);
    2528    void InitAreas(const UInt_t i);
     
    2831public:
    2932    MPedPhotCam(const char *name=NULL, const char *title=NULL);
     33    MPedPhotCam(const MPedestalCam &pcam);
    3034    ~MPedPhotCam();
    3135
Note: See TracChangeset for help on using the changeset viewer.