Changeset 851 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/13/01 15:29:47 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r846 r851 10 10 #pragma link C++ class MHStarMap; 11 11 #pragma link C++ class MHMcEnergy; 12 #pragma link C++ class MHMcEnergies; 13 #pragma link C++ class MHMcCollectionArea; 12 14 13 15 #pragma link C++ class MFillHFadc; -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc
r846 r851 33 33 ClassImp(MHMcEnergy) 34 34 35 MHMcEnergy::MHMcEnergy(const UInt_t idx )35 MHMcEnergy::MHMcEnergy(const UInt_t idx, const char *name, const char *title) 36 36 { 37 37 // 38 38 // default constructor 39 39 // 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" ; 40 46 41 47 // - we initialize the histogram and the gaus function … … 43 49 // root don't allow us to have diferent histograms with the same name 44 50 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.); 46 55 47 56 strcpy(aux, "hLogEnergy"); … … 49 58 sprintf(aux+10, ";%i", idx); 50 59 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); 56 61 } 57 62 -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.h
r846 r851 21 21 public: 22 22 23 MHMcEnergy(const UInt_t idx=0 );23 MHMcEnergy(const UInt_t idx=0, const char *name=NULL, const char *title=NULL); 24 24 ~MHMcEnergy(); 25 25 -
trunk/MagicSoft/Mars/mhist/Makefile
r846 r851 35 35 MHHillas.cc \ 36 36 MHStarMap.cc \ 37 MHMcEnergy.cc 37 MHMcCollectionArea.cc \ 38 MHMcEnergy.cc \ 39 MHMcEnergies.cc 38 40 39 41 SRCS = $(SRCFILES)
Note:
See TracChangeset
for help on using the changeset viewer.