Changeset 3542 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/18/04 10:06:21 (21 years ago)
Author:
blanch
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MConcentration.cc

    r3526 r3542  
    2020!   Author(s): Rudolf Bock     10/2001 <mailto:Rudolf.Bock@cern.ch>
    2121!   Author(s): Wolfgang Wittek  6/2002 <mailto:wittek@mppmu.mpg.de>
     22!   Author(s): Oscar Blanch     3/2004 <mailto:blanch@ifae.es>
    2223!
    23 !   Copyright: MAGIC Software Development, 2000-2003
     24!   Copyright: MAGIC Software Development, 2000-2004
    2425!
    2526!
     
    3031// MConcentration
    3132//
    32 // Storage Container for image parameters
     33// Storage Container for Concentration parameters
    3334//
    34 //    basic image parameters
    3535//
    3636// Version 1:
    3737// ----------
    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).
    5840//
    5941/////////////////////////////////////////////////////////////////////////////
    6042#include "MConcentration.h"
    6143
    62 //#include <fstream>
    6344
    6445#include <TArrayF.h>
    6546#include <TArrayI.h>
    66 //#include <TEllipse.h>
    6747
    6848#include "MHillas.h"
     
    9575// --------------------------------------------------------------------------
    9676//
    97 // Destructor. Deletes the TEllipse if one exists.
     77// Destructor.
    9878//
    9979MConcentration::~MConcentration()
     
    11494// --------------------------------------------------------------------------
    11595//
    116 // Print the hillas Parameters to *fLog
     96// Print the Concetration Parameters to *fLog
    11797//
    11898void MConcentration::Print(Option_t *) const
     
    120100    *fLog << all;
    121101    *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;
    123104}
    124105
    125106// --------------------------------------------------------------------------
    126107//
    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.
    129111// In case you don't call Calc from within an eventloop make sure, that
    130112// you call the Reset member function before.
    131113// 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
    138116Int_t MConcentration::Calc(const MGeomCam &geom, const MCerPhotEvt &evt, const MHillas &hillas)
    139117{
     
    162140        nphot *= geom.GetPixRatio(pixid);
    163141
    164         // Compute Concentrations 1-8   
     142        // Get number of photons in the 8 most populated pixels
    165143
    166144        if(maxpix[0]<=nphot) {
     
    173151            if (nphot<maxpix[7-i]){
    174152              for(int j=0;j<i-1;j++){ 
    175                 maxpix[7-j]=maxpix[6-j];                    // [1]
     153                maxpix[7-j]=maxpix[6-j];                 // [#phot]
    176154              }
    177155              maxpix[8-i]=nphot;
  • trunk/MagicSoft/Mars/mimage/MConcentration.h

    r3526 r3542  
    1313{
    1414private:
    15     Float_t fConc[9];       // [%] major axis of ellipse
     15    Float_t fConc[9];       // [ratio] Num photons in i+1 pixels over size of event
    1616
    1717public:
Note: See TracChangeset for help on using the changeset viewer.