Ignore:
Timestamp:
06/13/01 15:29:47 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/HistLinkDef.h

    r846 r851  
    1010#pragma link C++ class MHStarMap;
    1111#pragma link C++ class MHMcEnergy;
     12#pragma link C++ class MHMcEnergies;
     13#pragma link C++ class MHMcCollectionArea;
    1214
    1315#pragma link C++ class MFillHFadc;
  • trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc

    r846 r851  
    3333ClassImp(MHMcEnergy)
    3434
    35 MHMcEnergy::MHMcEnergy(const UInt_t idx)
     35MHMcEnergy::MHMcEnergy(const UInt_t idx, const char *name, const char *title)
    3636{
    3737    //
    3838    //   default constructor
    3939    //
     40    char aux[15]="MHMcEnergy";
     41
     42    if (idx>0)
     43        sprintf(aux+10, ";%i", idx);
     44    *fName  = name  ? name  : aux;
     45    *fTitle = title ? title : "Container for a MC energy histogram" ;
    4046
    4147    //  - we initialize the histogram and the gaus function
     
    4349    //    root don't allow us to have diferent histograms with the same name
    4450
    45     char aux[15];
     51    strcpy(aux, "fLogEnergy");
     52    if (idx>0)
     53        sprintf(aux+10, ";%i", idx);
     54    fLogEner = new TF1(aux, "gaus", 1., 3.);
    4655
    4756    strcpy(aux, "hLogEnergy");
     
    4958        sprintf(aux+10, ";%i", idx);
    5059    hLogEner = new TH1F(aux, "", 100, 0.5, 4.5);
    51 
    52     strcpy(aux, "fLogEnergy");
    53     if (idx>0)
    54         sprintf(aux+10, ";%i", idx);
    55     fLogEner = new TF1(aux, "gaus", 1., 3.);
     60    //hLogEner->SetBins(60);
    5661}
    5762
  • trunk/MagicSoft/Mars/mhist/MHMcEnergy.h

    r846 r851  
    2121public:
    2222
    23     MHMcEnergy(const UInt_t idx=0);
     23    MHMcEnergy(const UInt_t idx=0, const char *name=NULL, const char *title=NULL);
    2424    ~MHMcEnergy();
    2525
  • trunk/MagicSoft/Mars/mhist/Makefile

    r846 r851  
    3535           MHHillas.cc \
    3636           MHStarMap.cc \
    37            MHMcEnergy.cc
     37           MHMcCollectionArea.cc \
     38           MHMcEnergy.cc \
     39           MHMcEnergies.cc
    3840
    3941SRCS    = $(SRCFILES)
Note: See TracChangeset for help on using the changeset viewer.