Changeset 8923


Ignore:
Timestamp:
06/03/08 16:27:48 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MGeomApply.cc

    r7972 r8923  
    205205    // the use of some MC camera files from the 0.7 beta version in which the
    206206    // array containing pixel ratios is not initialized.
     207    geom->StreamerWorkaround();
    207208    geom->CalcPixRatio();
    208209
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc

    r8497 r8923  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCam.cc,v 1.71 2007-05-11 13:33:40 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCam.cc,v 1.72 2008-06-03 15:26:39 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    2020!   Author(s): Markus Gaug   11/2003 <mailto:markus@ifae.es>
    2121!
    22 !   Copyright: MAGIC Software Development, 2000-2004
     22!   Copyright: MAGIC Software Development, 2000-2008
    2323!
    2424!
     
    8585#include "MCalibrationChargePix.h"
    8686
     87#include <TMath.h>
     88
     89#include <TH1.h>
     90#include <TF1.h>
    8791#include <TOrdCollection.h>
    88 #include <TH1D.h>
    89 #include <TF1.h>
    9092
    9193#include "MLog.h"
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePINDiode.cc

    r5455 r8923  
    1818!   Author(s): Markus Gaug   02/2004 <mailto:markus@ifae.es>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    5252#include "MCalibrationChargePINDiode.h"
    5353#include "MCalibrationChargePix.h"
     54
     55#include <TMath.h>
    5456
    5557#include "MLog.h"
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.cc

    r8922 r8923  
    133133{
    134134    //   information about a pixel
    135     *fLog << all << "MPixGeom:  x= " << fX << "mm  y= " << fY << "mm ";
    136     *fLog << "d= " << fD << "mm  A= " << fA << "mm²" << endl;
     135    *fLog << all << "MPixGeom:  x/y=" << fX << "/" << fY << "mm ";
     136    *fLog << "d= " << fD << "mm  A= " << fA << "mm² (";
     137    for (int i=0; i<fNumNeighbors; i++)
     138        *fLog << fNeighbors[i] << (i<fNumNeighbors-1?",":"");
     139    *fLog << ")" << endl;
    137140}
    138141
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.h

    r8909 r8923  
    2525private:
    2626    enum {
    27         kIsInOutermostRing = BIT(22),
    28         kIsInOuterRing     = BIT(23),
    29         kUserBits          = 0x1fc000 // 14-21 are allowed
     27        kIsInOutermostRing = 0,
     28        kIsInOuterRing     = 1,
    3029    };
    3130
     
    4039    UInt_t fSector;        // Number of sector the pixels corresponds to
    4140    UInt_t fAidx;          // Area index of the pixel
     41
     42    Byte_t fUserBits;
    4243
    4344public:
     
    5455        pix.fSector = fSector;
    5556        pix.fAidx = fAidx;
     57        pix.fUserBits = fUserBits;
    5658        for (int i=0; i<6; i++)
    5759            pix.fNeighbors[i] = fNeighbors[i];
     60
     61        TObject::Copy(obj);
    5862    }
    5963
     
    8387    Short_t GetNeighbor(Byte_t i) const { return fNeighbors[i]; }
    8488
    85     Bool_t IsInOutermostRing() const { return TestBit(kIsInOutermostRing); }
    86     Bool_t IsInOuterRing() const     { return TestBit(kIsInOuterRing); }
     89    Bool_t IsInOutermostRing() const { return TESTBIT(fUserBits, kIsInOutermostRing); }
     90    Bool_t IsInOuterRing() const     { return TESTBIT(fUserBits, kIsInOuterRing); }
    8791
    8892    Bool_t IsInside(Float_t px, Float_t py) const;
    8993    Int_t  GetDirection(const MGeomPix &pix) const;
    9094
    91     /*
    92      //
    93      // These function are for future usage. They are not virtual in
    94      // root by now.
    95      //
    96      void SetBit(UInt_t f, Bool_t set) { set ? TObject::SetBit(f) : TObject::ResetBit(f); }
    97      void SetBit(UInt_t f)    { TObject::SetBit(f & kUserBits); }
    98      void ResetBit(UInt_t f)  { TObject::ResetBit(f & kUserBits); }
    99      void InvertBit(UInt_t f) { TObject InvertBit(f & kUserBits); }
    100      */
    101 
    102     ClassDef(MGeomPix, 3) // Geometry class describing the geometry of one pixel
     95    ClassDef(MGeomPix, 4) // Geometry class describing the geometry of one pixel
    10396};
    10497
Note: See TracChangeset for help on using the changeset viewer.