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

Legend:

Unmodified
Added
Removed
  • 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.