Changeset 3542
- Timestamp:
- 03/18/04 10:06:21 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MConcentration.cc
r3526 r3542 20 20 ! Author(s): Rudolf Bock 10/2001 <mailto:Rudolf.Bock@cern.ch> 21 21 ! Author(s): Wolfgang Wittek 6/2002 <mailto:wittek@mppmu.mpg.de> 22 ! Author(s): Oscar Blanch 3/2004 <mailto:blanch@ifae.es> 22 23 ! 23 ! Copyright: MAGIC Software Development, 2000-200 324 ! Copyright: MAGIC Software Development, 2000-2004 24 25 ! 25 26 ! … … 30 31 // MConcentration 31 32 // 32 // Storage Container for imageparameters33 // Storage Container for Concentration parameters 33 34 // 34 // basic image parameters35 35 // 36 36 // Version 1: 37 37 // ---------- 38 // fLength [mm] major axis of ellipse 39 // fWidth [mm] minor axis 40 // fDelta [rad] angle of major axis with x-axis 41 // by definition the major axis is pointing into 42 // the hemisphere x>0, thus -pi/2 < delta < pi/2 43 // fSize [#CerPhot] total sum of pixels 44 // fMeanX [mm] x of center of ellipse 45 // fMeanY [mm] y of center of ellipse 46 // 47 // Version 2: 48 // ---------- 49 // fNumCorePixels number of pixels called core 50 // fNumUsedPixels number of pixels which survived the cleaning 51 // 52 // Version 3: 53 // ---------- 54 // fNumCorePixels moved to MNewImagePar 55 // fNumUsedPixels moved to MNewImagePar 56 // fCosDelta added 57 // fSinDelte added 38 // fConc[i] [ratio] Number of photons in the i+1 more populated pixels 39 // over the event size (till i=7). 58 40 // 59 41 ///////////////////////////////////////////////////////////////////////////// 60 42 #include "MConcentration.h" 61 43 62 //#include <fstream>63 44 64 45 #include <TArrayF.h> 65 46 #include <TArrayI.h> 66 //#include <TEllipse.h>67 47 68 48 #include "MHillas.h" … … 95 75 // -------------------------------------------------------------------------- 96 76 // 97 // Destructor. Deletes the TEllipse if one exists.77 // Destructor. 98 78 // 99 79 MConcentration::~MConcentration() … … 114 94 // -------------------------------------------------------------------------- 115 95 // 116 // Print the hillasParameters to *fLog96 // Print the Concetration Parameters to *fLog 117 97 // 118 98 void MConcentration::Print(Option_t *) const … … 120 100 *fLog << all; 121 101 *fLog << "Concentrations (" << GetName() << ")" << endl; 122 //*fLog << " - Length [mm] = " << fLength << endl; 102 for(int i=0;i<9;i++) 103 *flog << "Conc" << i+1 <<" = "<< fConc[i] << endl; 123 104 } 124 105 125 106 // -------------------------------------------------------------------------- 126 107 // 127 // Calculate the image parameters from a Cherenkov photon event 128 // assuming Cher.photons/pixel and pixel coordinates are given 108 // Calculate the Concentrations from a Cherenkov photon event 109 // assuming Cher.photons/pixel, their standard hillas parameters 110 // and pixel coordinates are given. 129 111 // In case you don't call Calc from within an eventloop make sure, that 130 112 // you call the Reset member function before. 131 113 // Returns: 132 // 0 no error 133 // 1 number of pixels < 3 134 // 2 size==0 135 // 3 number of used pixel < 3 136 // 4 CorrXY == 0 137 // 114 // Nothing. 115 138 116 Int_t MConcentration::Calc(const MGeomCam &geom, const MCerPhotEvt &evt, const MHillas &hillas) 139 117 { … … 162 140 nphot *= geom.GetPixRatio(pixid); 163 141 164 // Compute Concentrations 1-8142 // Get number of photons in the 8 most populated pixels 165 143 166 144 if(maxpix[0]<=nphot) { … … 173 151 if (nphot<maxpix[7-i]){ 174 152 for(int j=0;j<i-1;j++){ 175 maxpix[7-j]=maxpix[6-j]; // [1]153 maxpix[7-j]=maxpix[6-j]; // [#phot] 176 154 } 177 155 maxpix[8-i]=nphot; -
trunk/MagicSoft/Mars/mimage/MConcentration.h
r3526 r3542 13 13 { 14 14 private: 15 Float_t fConc[9]; // [ %] major axis of ellipse15 Float_t fConc[9]; // [ratio] Num photons in i+1 pixels over size of event 16 16 17 17 public:
Note:
See TracChangeset
for help on using the changeset viewer.