Changeset 1210
- Timestamp:
- 01/22/02 19:07:32 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1209 r1210 15 15 * mmain/MAnalysis.cc, macros/MagicHillas.C: 16 16 - changed to new stylish MHillas parameter containers 17 18 * meventdisp/MGEvtDisplay.cc, mgui/MCamDisplay.cc, 19 mmain/MDataCheck.[h,cc]: 20 - fixed a warning in red hat linux 21 22 * mfilter/FilterLinkDef.h, mfilter/Makefile: 23 - added MFAlpha 24 25 * mhist/MHHillas.[h,cc], mhist/MHHillasSrc.[h,cc]: 26 - added SetupFill and usage of MBinning objects 17 27 18 28 -
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r1203 r1210 28 28 #pragma link C++ class MHillasCalc+; 29 29 30 #pragma link C++ class MEnergyEst+; 31 #pragma link C++ class MEnergyEstimate+; 32 30 33 #pragma link C++ class MPedCalcPedRun+; 31 34 -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r1102 r1210 469 469 TGFileInfo fi; // fFileName and fIniDir deleted in ~TGFileInfo 470 470 471 fi.fFileTypes = gSaveAsTypes;471 fi.fFileTypes = (const char**)gSaveAsTypes; 472 472 fi.fIniDir = StrDup(dir); 473 473 -
trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h
r1015 r1210 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class MFAlpha+; 7 8 #pragma link C++ class MFTriggerLvl1+; 8 9 -
trunk/MagicSoft/Mars/mfilter/Makefile
r1052 r1210 20 20 # @endcode 21 21 22 INCLUDES = -I. -I../mbase -I../mmc 22 INCLUDES = -I. -I../mbase -I../mmc -I../manalysis 23 23 24 24 # @code … … 31 31 .SUFFIXES: .c .cc .cxx .h .hxx .o 32 32 33 SRCFILES = MFTriggerLvl1.cc 33 SRCFILES = MFTriggerLvl1.cc \ 34 MFAlpha.cc 34 35 35 36 SRCS = $(SRCFILES) -
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1203 r1210 291 291 // first treat the over- and under-flows 292 292 // 293 const Float_t maxcolidx = 49.0;293 const Int_t maxcolidx = 49; 294 294 295 295 if (val >= fMaxPhe) … … 303 303 // 304 304 const Float_t ratio = (val-fMinPhe) / (fMaxPhe-fMinPhe); 305 const Int_t colidx = (Int_t)( maxcolidx*ratio+ .5);305 const Int_t colidx = (Int_t)(ratio*maxcolidx + .5); 306 306 307 307 return gStyle->GetColorPalette(colidx); -
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r1208 r1210 8 8 9 9 #pragma link C++ class MH+; 10 #pragma link C++ class MBinning+;11 10 #pragma link C++ class MHFadcCam+; 12 11 #pragma link C++ class MHFadcPix+; … … 14 13 #pragma link C++ class MHHillasSrc+; 15 14 #pragma link C++ class MHStarMap+; 15 #pragma link C++ class MHEnergyTime+; 16 #pragma link C++ class MHEnergyTheta+; 16 17 #pragma link C++ class MHMcEnergy+; 17 18 #pragma link C++ class MHMcCollectionArea+; 19 #pragma link C++ class MHAlphaEnergyTime; 20 #pragma link C++ class MHAlphaEnergyTheta; 21 #pragma link C++ class MHEffOnTimeTime+; 22 #pragma link C++ class MHEffOnTimeTheta+; 23 #pragma link C++ class MHDiffTimeTime+; 24 #pragma link C++ class MHDiffTimeTheta+; 25 26 #pragma link C++ class MBinning+; 18 27 19 28 #pragma link C++ class MHMcRate+; -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r1209 r1210 87 87 fTitle = title ? title : "Task to fill Mars histograms"; 88 88 89 fH = NULL;90 fParContainer = NULL;89 fH = NULL; 90 fParContainer = NULL; 91 91 } 92 92 -
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r1207 r1210 40 40 41 41 #include "MHillas.h" 42 #include "MParList.h" 42 43 43 44 ClassImp(MHHillas); … … 47 48 // Setup four histograms for Width, Length 48 49 // 49 MHHillas::MHHillas 50 MHHillas::MHHillas(const char *name, const char *title) 50 51 { 51 52 // 52 53 // set the name and title of this object 53 54 // 54 fName = name ? name : "MHHillas" 55 fTitle = title ? title : "Container for Hillas histograms" 55 fName = name ? name : "MHHillas"; 56 fTitle = title ? title : "Container for Hillas histograms"; 56 57 57 58 // … … 81 82 delete fWidth; 82 83 delete fLength; 84 } 85 86 // -------------------------------------------------------------------------- 87 // 88 // Setup the Binning for the histograms automatically if the correct 89 // instances of MBinning (with the names 'BinningWidth' and 'BinningLength') 90 // are found in the parameter list 91 // 92 Bool_t MHHillas::SetupFill(const MParList *plist) 93 { 94 const MBinning* binsw = (MBinning*)plist->FindObject("BinningWidth"); 95 const MBinning* binsl = (MBinning*)plist->FindObject("BinningLength"); 96 97 if (binsw) 98 SetBinning(fWidth, binsw); 99 100 if (binsl) 101 SetBinning(fLength, binsl); 102 103 return kTRUE; 83 104 } 84 105 -
trunk/MagicSoft/Mars/mhist/MHHillas.h
r1209 r1210 19 19 ~MHHillas(); 20 20 21 Bool_t SetupFill(const MParList *pList); 21 22 Bool_t Fill(const MParContainer *par); 22 23 -
trunk/MagicSoft/Mars/mhist/MHHillasSrc.cc
r1209 r1210 38 38 #include <TCanvas.h> 39 39 40 #include "MParList.h" 41 40 42 #include "MHillas.h" 41 43 #include "MHillasSrc.h" … … 52 54 // set the name and title of this object 53 55 // 54 fName = name ? name : "MHHillasSrc" 55 fTitle = title ? title : "Container for Hillas histograms" 56 fName = name ? name : "MHHillasSrc"; 57 fTitle = title ? title : "Container for Hillas histograms"; 56 58 57 59 // … … 81 83 delete fAlpha; 82 84 delete fDist; 85 } 86 87 // -------------------------------------------------------------------------- 88 // 89 // Setup the Binning for the histograms automatically if the correct 90 // instances of MBinning (with the names 'BinningAlpha' and 'BinningDist') 91 // are found in the parameter list 92 // 93 Bool_t MHHillasSrc::SetupFill(const MParList *plist) 94 { 95 const MBinning* binsa = (MBinning*)plist->FindObject("BinningAlpha"); 96 const MBinning* binsd = (MBinning*)plist->FindObject("BinningDist"); 97 98 if (binsa) 99 SetBinning(fAlpha, binsa); 100 101 if (binsd) 102 SetBinning(fDist, binsd); 103 104 return kTRUE; 83 105 } 84 106 -
trunk/MagicSoft/Mars/mhist/MHHillasSrc.h
r1209 r1210 19 19 ~MHHillasSrc(); 20 20 21 Bool_t SetupFill(const MParList *pList); 21 22 Bool_t Fill(const MParContainer *par); 22 23 -
trunk/MagicSoft/Mars/mmain/MDataCheck.cc
r1172 r1210 97 97 // histograms. 98 98 // 99 void MDataCheck::ViewAdcSpectra(const Char_t *inputfile, const Char_t*treeName)99 void MDataCheck::ViewAdcSpectra(const char *inputfile, const char *treeName) 100 100 { 101 101 // -
trunk/MagicSoft/Mars/mmain/MDataCheck.h
r1172 r1210 9 9 { 10 10 private: 11 void ViewAdcSpectra(const Char_t *inputfile, const Char_t*treeName);11 void ViewAdcSpectra(const char *inputfile, const char *treeName); 12 12 13 13 public: 14 14 MDataCheck(const TGWindow *main=NULL, const TGWindow *p=NULL, 15 15 const UInt_t w=500, const UInt_t h=500) ; 16 16 17 17 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
Note:
See TracChangeset
for help on using the changeset viewer.