Changeset 7436 for trunk/MagicSoft
- Timestamp:
- 11/30/05 13:19:55 (19 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/showplot.cc
r7432 r7436 163 163 TString file = "/magic/data/"; 164 164 switch (kInput.Hash()) 165 166 165 { 167 case (unsigned long)-856860927:166 case 3438106369: 168 167 case 764164111: 169 168 file += "callisto"; … … 182 181 } 183 182 184 if (kNamePs.IsNull() 183 if (kNamePs.IsNull() && kSaveAsPs) 185 184 kNamePs = kInput; 186 if (kNamePdf.IsNull() 185 if (kNamePdf.IsNull() && kSaveAsPdf) 187 186 kNamePdf = kInput; 188 if (kNameSvg.IsNull() 187 if (kNameSvg.IsNull() && kSaveAsSvg) 189 188 kNameSvg = kInput; 190 if (kNameGif.IsNull() 189 if (kNameGif.IsNull() && kSaveAsGif) 191 190 kNameGif = kInput; 192 if (kNameJpg.IsNull() 191 if (kNameJpg.IsNull() && kSaveAsJpg) 193 192 kNameJpg = kInput; 194 if (kNameXpm.IsNull() 193 if (kNameXpm.IsNull() && kSaveAsXpm) 195 194 kNameXpm = kInput; 196 if (kNamePng.IsNull() 195 if (kNamePng.IsNull() && kSaveAsPng) 197 196 kNamePng = kInput; 198 if (kNameRoot.IsNull() 197 if (kNameRoot.IsNull() && kSaveAsRoot) 199 198 kNameRoot = kInput; 200 if (kNameC.IsNull() 199 if (kNameC.IsNull() && kSaveAsC) 201 200 kNameC = kInput; 202 201 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx
r3041 r7436 1 /* ======================================================================== *\ 2 ! 3 ! * 4 ! * This file is part of MARS, the MAGIC Analysis and Reconstruction 5 ! * Software. It is distributed to you in the hope that it can be a useful 6 ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes. 7 ! * It is distributed WITHOUT ANY WARRANTY. 8 ! * 9 ! * Permission to use, copy, modify and distribute this software and its 10 ! * documentation for any purpose is hereby granted without fee, 11 ! * provided that the above copyright notice appear in all copies and 12 ! * that both that copyright notice and this permission notice appear 13 ! * in supporting documentation. It is provided "as is" without express 14 ! * or implied warranty. 15 ! * 16 ! 17 ! 18 ! Author(s): Unknown 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2005 21 ! 22 ! 23 \* ======================================================================== */ 24 25 ////////////////////////////////////////////////////////////////////////////// 26 // 27 // MMcFadcHeader 28 // 29 // This class contains the MonteCarlo information 30 // of the FADC simulation for the current run. 31 // The information is saved only once, whatever the 32 // number of events is 33 // 34 // NOTE : meaning of fAmplFadc, fAmplFadcOuter changed in camera 0.7, 35 // 30/03/2004: before it was amplitude of (gaussian) pulse, now is 36 // integral of pulse (which may be gaussian or not). 37 // 38 // In camera 0.7, the meaning of fPedesSigmaHigh, fPedesSigmaLow changed: 39 // before it was the rms of the single FADC slice. Now we calculate the 40 // RMS of the distribution of the sum of 14 FADC slices. The value we set 41 // as fPedesSigmaHigh/Low is that RMS divided by sqrt(14). It can be seen 42 // that the fluctuations of the integrated pedestal, when adding n slices 43 // to obtain the pixel signal, with n>~6, is more or less well 44 // approximated by sqrt(n)*RMS(sum_14)slices)/sqrt(14). 45 // 46 // Version 5: 47 // Added member fGainFluctuations 48 // 49 // Version 6: 50 // Added member fNoiseGainFluctuations 51 // 52 // Version 7: 53 // Derived class from MCamEvent 54 // 55 ////////////////////////////////////////////////////////////////////////////// 1 56 #include "MMcFadcHeader.hxx" 2 57 3 58 #include <iostream> 4 59 5 //==========6 // MMcFadcHeader7 //8 // This class contains the MonteCarlo information9 // of the FADC simulation for the current run.10 // The information is saved only once, whatever the11 // number of events is12 13 14 15 60 ClassImp(MMcFadcHeader); 16 61 17 62 using namespace std; 18 19 63 20 64 MMcFadcHeader::MMcFadcHeader(const char *name, const char *title) { … … 44 88 } 45 89 46 MMcFadcHeader::~MMcFadcHeader(){47 //48 // default destructor49 //50 }51 52 53 90 void MMcFadcHeader::Print(Option_t *Option) const { 54 91 // … … 70 107 cout << endl ; 71 108 } 109 110 Bool_t MMcFadcHeader::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const 111 { 112 if ((UInt_t)idx>=GetNumPixel()) 113 return kFALSE; 114 115 switch (type) 116 { 117 case 0: 118 val = fPedesMean[idx]; 119 break; 120 case 1: 121 val = fPedesSigmaHigh[idx]; 122 break; 123 case 2: 124 val = fPedesSigmaLow[idx]; 125 break; 126 case 3: 127 val = fElecNoise[idx]; 128 break; 129 case 4: 130 val = fDigitalNoise[idx]; 131 break; 132 default: 133 return kFALSE; 134 } 135 return kTRUE; 136 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r5410 r7436 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 #endif 7 #ifndef MARS_MCamEvent 8 #include "MCamEvent.h" 6 9 #endif 7 10 … … 15 18 // Added member fNoiseGainFluctuations 16 19 // 20 // Version 7: 21 // Derived class from MCamEvent 22 // 17 23 18 class MMcFadcHeader : public MParContainer {24 class MMcFadcHeader : public MParContainer, public MCamEvent { 19 25 private: 20 26 … … 71 77 public: 72 78 MMcFadcHeader(const char *name=NULL, const char *title=NULL); 73 74 ~MMcFadcHeader();75 79 76 80 void Print(Option_t *opt=NULL) const; … … 131 135 UInt_t GetNumPixel() const { return MFADC_CHANNELS; } 132 136 133 ClassDef(MMcFadcHeader, 6) //Stores Montecarlo Information describing the FADC behaviour 137 // MCamEvent 138 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; 139 void DrawPixelContent(Int_t num) const { } 140 141 ClassDef(MMcFadcHeader, 7) //Stores Montecarlo Information describing the FADC behaviour 134 142 135 143 }; 136 144 137 145 #endif 138 -
trunk/MagicSoft/include-Classes/MMcFormat/Makefile
r6375 r7436 11 11 #------------------------------------------------------------------------------ 12 12 13 INCLUDES = -I. -I../mbase -I../MBase -I../mgeom 13 INCLUDES = -I. -I../mbase -I../MBase -I../mgeom -I../mgui 14 14 15 15 CINT = Mc
Note:
See TracChangeset
for help on using the changeset viewer.