Changeset 1030 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 11/05/01 10:35:36 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MFillH.cc
r1004 r1030 25 25 ////////////////////////////////////////////////////////////////////////////// 26 26 // // 27 // MFill 27 // MFillH // 28 28 // // 29 29 // This is a common interface (task) to fill mars histograms. Every mars // … … 35 35 // objects in the parameter list or by specifiing a pointer to the object. // 36 36 // (s. Constructor) // 37 // // 38 // WARNING: // 39 // Because MFillH is a generalized task to fill histograms it doesn't // 40 // know about which branches from a file are necessary to fill the // 41 // histograms. If you are reading data from a file which is directly // 42 // filled into a histogram via MFillH, please call either // 43 // MReadTree::DisableAutoScheme() or enable the necessary branches by // 44 // yourself, using MReadTree::EnableBranch() // 37 45 // // 38 46 // Input Containers: // -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r1004 r1030 44 44 // creates an a list of histograms for all pixels and both gain channels 45 45 // 46 MHFadcCam::MHFadcCam (const char *name, const char *title) 46 #include <iostream.h> 47 MHFadcCam::MHFadcCam(const char *name, const char *title) 47 48 { 48 49 // 49 50 // set the name and title of this object 50 51 // 51 52 fName = name ? name : "MHFadcCam" ; 53 fTitle = title ? title : "Container for ADC spectra histograms" ; 52 fName = name ? name : "MHFadcCam"; 53 fTitle = title ? title : "Container for ADC spectra histograms"; 54 54 55 55 // … … 65 65 66 66 // -------------------------------------------------------------------------- 67 MHFadcCam::~MHFadcCam 67 MHFadcCam::~MHFadcCam() 68 68 { 69 69 delete fArray; 70 } 71 72 // -------------------------------------------------------------------------- 73 // 74 // Our own clone function is necessary since root 3.01/06 or Mars 0.4 75 // I don't know the reason 76 // 77 TObject *MHFadcCam::Clone(const char *) const 78 { 79 MHFadcCam *cam = new MHFadcCam; 80 81 for (int i=0; i<577; i++) 82 { 83 delete (*cam->fArray)[i]; 84 (*cam->fArray)[i] = (MHFadcPix*)(*fArray)[i]->Clone(); 85 } 86 return cam; 70 87 } 71 88 -
trunk/MagicSoft/Mars/mhist/MHFadcCam.h
r1015 r1030 26 26 27 27 public: 28 28 MHFadcCam(const char *name=NULL, const char *title=NULL); 29 29 ~MHFadcCam(); 30 30 … … 46 46 void DrawPix(UInt_t i) { (*this)[i]->Draw(); } 47 47 48 Int_t GetEntries() { return fArray->GetEntries(); } 48 Int_t GetEntries() const { return fArray->GetEntries(); } 49 50 TObject *Clone(const char *opt="") const; 49 51 50 52 ClassDef(MHFadcCam, 1) // A list of histograms storing the Fadc spektrum of one pixel -
trunk/MagicSoft/Mars/mhist/MHFadcPix.cc
r1027 r1030 54 54 55 55 fHistHi->SetDirectory(NULL); 56 fHistHi->SetXTitle(" Time/Slices");57 fHistHi->SetYTitle(" Signal");56 fHistHi->SetXTitle("Signal/FADC Units"); 57 fHistHi->SetYTitle("Count"); 58 58 59 59 delete [] name; … … 66 66 67 67 fHistLo->SetDirectory(NULL); 68 fHistLo->SetXTitle(" Time/Slices");69 fHistLo->SetYTitle(" Signal");68 fHistLo->SetXTitle("Signal/FADC Units"); 69 fHistLo->SetYTitle("Count"); 70 70 71 71 delete [] name;
Note:
See TracChangeset
for help on using the changeset viewer.