Changeset 3619 for trunk/MagicSoft


Ignore:
Timestamp:
03/31/04 13:52:24 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3617 r3619  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21
     22 2004/03/31: Abelardo Moralejo
     23
     24   * mmc/MMcConfigRunHeader.[h,cc]
     25     - updated to current version (3) in camera program. Added member
     26       fLightCollectionFactorOuter so that we can store the data on
     27       the simulatedlight collection efficiency (light guides +
     28       plexiglas +...) as a function of incidence angle for outer and
     29       inner pixels independently.
    2030
    2131 2004/03/30: Markus Gaug
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.cc

    r2705 r3619  
    6262//
    6363MMcConfigRunHeader::MMcConfigRunHeader(const char *name, const char *title)
    64     : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLightGuidesFactor(181)
     64    : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLightCollectionFactor(181), fLightCollectionFactorOuter(181)
    6565{
    6666    fName  = name  ? name  : "MMcConfigRunHeader";
     
    9898// --------------------------------------------------------------------------
    9999//
    100 // DESCRIPTION MISSING Please contact Oscar
    101 //
    102 void  MMcConfigRunHeader::SetLightGuides(const TArrayF &theta, const TArrayF &factor)
     100// Set the values corresponding to the light collection efficiency due to
     101// light guides, plexiglas, double crossing, collection of 1st dynode. These
     102// are fed to the camera program via de Data/LightCollection.dat file (see
     103// camera manual)
     104//
     105void  MMcConfigRunHeader::SetLightCollection(const TArrayF &theta, const TArrayF &factor, const TArrayF &factor_outer)
    103106{
    104107    if (fIncidentTheta.GetSize()    !=theta.GetSize() ||
    105         fLightGuidesFactor.GetSize()!=factor.GetSize())
     108        fLightCollectionFactor.GetSize()!=factor.GetSize() ||
     109        fLightCollectionFactorOuter.GetSize()!=factor_outer.GetSize())
    106110    {
    107         *fLog<< err << dbginf << "fIncidentTheta or fLightGuidesFactor ";
     111        *fLog<< err << dbginf << "fIncidentTheta or fLightCollectionFactor";
     112        *fLog << "or fLightCollectionFactorOuter" << endl;
    108113        *fLog << "do not have size of setting arrays" << endl;
    109114        return;
     
    111116
    112117    fIncidentTheta = theta;
    113     fLightGuidesFactor = factor;
     118    fLightCollectionFactor = factor;
     119    fLightCollectionFactorOuter = factor_outer;
    114120}
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h

    r3442 r3619  
    2626    // Magic Def Parameters
    2727    Float_t fFocalDist;         // [cm] Focal distance
    28     Float_t fPointSpread;       // [cm] Point spread function, sigma in x and y on the camera
     28    Float_t fPointSpread;       // [cm] Point spread function, sigma in x and y on the camera as simualted in the Reflector
     29    Float_t fPointSpreadX;       // [cm] Point spread function, sigma in x on the camera adding gaussian in the Camera
     30    Float_t fPointSpreadY;       // [cm] Point spread function, sigma in y on the camera adding gaussian in the Camera
    2931    Float_t fBlackSpot;         // [cm] Radius of black spot in the mirror center
    3032    Float_t fCameraWidth;       // [cm] Radius on the camera plain
    3133                                // inside which the phe are kept.
     34
     35    Float_t fMissPointingX;     // [deg] Misspointing in deg added in he Camera
     36    Float_t fMissPointingY;     // [deg] simulation at rho (rotation FoV) = 0.
    3237
    3338    // QE Information
     
    3540    TClonesArray  *fPMTs;
    3641
    37     // Light Guides Information
     42    // Light Collection Information (guides , plexiglas, 1st dynode)
    3843    TArrayF fIncidentTheta;    // [deg]
    39     TArrayF fLightGuidesFactor;// []
     44    TArrayF fLightCollectionFactor;// []
     45    TArrayF fLightCollectionFactorOuter;// []
    4046
    4147public:
     
    4551    void SetMagicDef(Float_t radius, Float_t focal, Float_t point,
    4652                     Float_t spot, Float_t camwidth);
    47     void SetLightGuides(const TArrayF &theta, const TArrayF &factor);
     53    void SetLightCollection(const TArrayF &theta, const TArrayF &factor,
     54                            const TArrayF &factor_outer);
    4855
    4956    UInt_t GetNumMirror() const { return fNumMirrors; }
     
    5562    Float_t GetPointSpread() const { return fPointSpread; }
    5663    void    SetPointSpread(Float_t x) { fPointSpread = x; }
     64
     65    Float_t GetPointSpreadX() const { return fPointSpreadX; }
     66    void    SetPointSpreadX(Float_t x) { fPointSpreadX = x; }
     67    Float_t GetPointSpreadY() const { return fPointSpreadY; }
     68    void    SetPointSpreadY(Float_t x) { fPointSpreadY = x; }
     69
     70    Float_t GetMissPointingX() const {return fMissPointingX;}
     71    void    SetMissPointingX(Float_t x) {fMissPointingX=x;}
     72
     73    Float_t GetMissPointingY() const {return fMissPointingY;}
     74    void    SetMissPointingY(Float_t x) {fMissPointingY=x;}
    5775
    5876    void   AddMirror(Int_t id)
     
    6987    MGeomMirror &GetMirror(int i) const { return *(MGeomMirror*)(fMirrors->UncheckedAt(i)); }
    7088
    71     TClonesArray *GetMirrors() { return fMirrors; }
    72 
    7389    MGeomPMT &GetPMT(int i)  { return *(MGeomPMT*)(fPMTs->UncheckedAt(i)); }
    7490    MGeomPMT &GetPMT(int i) const { return *(MGeomPMT*)(fPMTs->UncheckedAt(i)); }
    7591
    76     ClassDef(MMcConfigRunHeader, 2)  // class for monte carlo configuration information
     92    ClassDef(MMcConfigRunHeader, 3)  // class for monte carlo configuration information
    7793};
    7894
Note: See TracChangeset for help on using the changeset viewer.