Changeset 3848 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/27/04 14:03:12 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3846 r3848  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/04/26: Abelardo Moralejo
     22
     23   * mhistmc/MHMcCollectionArea.[h,cc]
     24     - Added fMCAreaRadius and setter to allow changing the radius of
     25       the circular area in which MC events are produced. Useful for
     26       instance for stereo configuration studies. By default it is 300 m
     27       as was assumed before.
    2028
    2129 2004/04/26: Markus Gaug
  • trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.cc

    r2606 r3848  
    5555//
    5656MHMcCollectionArea::MHMcCollectionArea(const char *name, const char *title)
     57  : fMCAreaRadius(300.)
    5758{
    5859    //   initialize the histogram for the distribution r vs E
     
    256257    //
    257258    const Float_t r1 = 0;
    258     const Float_t r2 = 300;
    259 
    260     *fLog << warn << endl << dbginf << "WARNING! I will assume a maximum impact parameter of 300 meters for the MC events. Check that this is the true one!" <<endl<<endl;
     259    const Float_t r2 = fMCAreaRadius;
     260
     261    *fLog << warn << endl << dbginf << "WARNING! I will assume a maximum impact parameter of " << fMCAreaRadius << " meters for the MC events. Check that this is the true one!" <<endl<<endl;
    261262    const Float_t total_area = TMath::Pi() * (r2*r2 - r1*r1);
    262263
  • trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.h

    r2250 r3848  
    1919
    2020    TH1D *fHistCol; //  the collection area
     21
     22    Float_t fMCAreaRadius; // [m] Radius of circle within which the cores
     23                           // of Corsika events have been uniformly
     24                           // distributed.
    2125
    2226    void Calc(TH2D &hsel, TH2D &hall);
     
    4549    void Calc(const MHMcEfficiency &heff);
    4650
     51    void SetMCAreaRadius(Float_t x) { fMCAreaRadius = x; }
     52
    4753    ClassDef(MHMcCollectionArea, 1)  // Data Container to calculate Collection Area
    4854};
Note: See TracChangeset for help on using the changeset viewer.