Changeset 1989 for trunk/MagicSoft


Ignore:
Timestamp:
04/23/03 16:28:05 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1986 r1989  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/04/23: Thomas Bretz
     4
     5    * mhist/MHCerPhotEvt.[h,cc]:
     6      - updated dox
     7
     8
    29
    310 2003/04/23: Abelardo Moralejo
     
    1825      - adapted to changes above.
    1926
     27    * mmc/MMcRunHeader.[hxx,cxx], mmc/MMCEvt.[hxx,cxx]
     28      - added comment in class description about the definition of
     29        the azimuth angle phi in the MC classes.
     30
     31
     32
    2033 2003/04/23: Antonio Stamerra
    2134
     
    2740      - modified accordingly (added MFEnergySlope)
    2841
    29  2003/04/23: Abelardo Moralejo
    30 
    31     * mmc/MMcRunHeader.[hxx,cxx], mmc/MMCEvt.[hxx,cxx]
    32       - added comment in class description about the definition of
    33         the azimuth angle phi in the MC classes.
     42
    3443
    3544 2003/04/22: Abelardo Moralejo
     
    4655    * mfilter/MFCT1SelFinal.[h,cc]
    4756      - added the possibility to cut also in Dist.
     57
     58
    4859
    4960 2003/04/22: Thomas Bretz
     
    7586      - added mhistmc
    7687
    77 
    78 
    79  2003/04/22: Thomas Bretz
    80  
     88    * mmain/MStatusDisplay.cc:
     89      - SetNoContextMenu(Bool_t flag) removed default argument
     90
     91    * mmain/Makefile:
     92      - added -I../mhistmc
     93
    8194   * mhist/MWeight.[h,cc]:
    8295     - added
  • trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc

    r1966 r1989  
    6363// --------------------------------------------------------------------------
    6464//
    65 // Setup four histograms for Width, Length
     65// Initialize the name and title of the task.
     66// Resets the sum histogram
    6667//
    6768MHCerPhotEvt::MHCerPhotEvt(const char *name, const char *title)
     
    7778}
    7879
     80// --------------------------------------------------------------------------
     81//
     82// Delete the corresponding camera display if available
     83//
    7984MHCerPhotEvt::~MHCerPhotEvt()
    8085{
     
    8590// --------------------------------------------------------------------------
    8691//
    87 // Setup the Binning for the histograms automatically if the correct
    88 // instances of MBinning (with the names 'BinningWidth' and 'BinningLength')
    89 // are found in the parameter list
    90 // Use this function if you want to set the conversion factor which
    91 // is used to convert the mm-scale in the camera plain into the deg-scale
    92 // used for histogram presentations. The conversion factor is part of
    93 // the camera geometry. Please create a corresponding MGeomCam container.
     92// Get the event (MCerPhotEvt) the histogram might be filled with. If
     93// it is not given, it is assumed, that it is filled with the argument
     94// of the Fill function.
     95// Looks for the camera geometry MGeomCam and resets the sum histogram.
    9496//
    9597Bool_t MHCerPhotEvt::SetupFill(const MParList *plist)
     
    110112// --------------------------------------------------------------------------
    111113//
    112 // Fill the histograms with data from a MHillas-Container.
    113 // Be careful: Only call this with an object of type MHillas
    114 //
    115 Bool_t MHCerPhotEvt::Fill(const MParContainer *par)
     114// Fill the histograms with data from a MCerPhotEvt-Container.
     115//
     116Bool_t MHCerPhotEvt::Fill(const MParContainer *par, Double_t w)
    116117{
    117118    const MCerPhotEvt *evt = par ? (MCerPhotEvt*)par : fEvt;
     
    143144}
    144145
     146// --------------------------------------------------------------------------
     147//
     148// Scale the sum container with the number of entries
     149//
    145150Bool_t MHCerPhotEvt::Finalize()
    146151{
     
    149154}
    150155
     156// --------------------------------------------------------------------------
     157//
     158// Draw clone
     159//
    151160TObject *MHCerPhotEvt::DrawClone(Option_t *opt) const
    152161{
     
    154163}
    155164
     165// --------------------------------------------------------------------------
     166//
     167// Draw the present 'fill status'
     168//
    156169void MHCerPhotEvt::Draw(Option_t *)
    157170{
     
    168181}
    169182
     183// --------------------------------------------------------------------------
     184//
     185// If a camera display is not yet assigned, assign a new one.
     186//
    170187void MHCerPhotEvt::Paint(Option_t *option="")
    171188{
  • trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h

    r1965 r1989  
    1717{
    1818private:
    19     MCerPhotEvt  fSum;
    20     Int_t        fEntries;
    21     MCerPhotEvt *fEvt;   //!
    22     MGeomCam    *fCam;
    23     MCamDisplay *fDispl; //!
     19    MCerPhotEvt  fSum;      // storing the sum
     20    Int_t        fEntries;  // number of entries in the histogram
     21    MGeomCam    *fCam;      // the present geometry
     22    MCerPhotEvt *fEvt;      //! the current event
     23    MCamDisplay *fDispl;    //! the camera display
    2424
    2525public:
     
    2727    ~MHCerPhotEvt();
    2828
    29     //    TObject *Clone(const char *newname="") const;
    30 
    3129    void Clear();
    3230
    3331    Bool_t SetupFill(const MParList *pList);
    34     Bool_t Fill(const MParContainer *par);
     32    Bool_t Fill(const MParContainer *par, Double_t w=1);
    3533    Bool_t Finalize();
    3634
  • trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc

    r1988 r1989  
    116116    if (!binsenergy || !binstheta)
    117117    {
    118         *fLog << err << dbginf << "At least one MBinning not found... aborting."
    119  << endl;
     118        *fLog << err << dbginf << "At least one MBinning not found... aborting.";
     119        *fLog << endl;
    120120        return kFALSE;
    121121    }
Note: See TracChangeset for help on using the changeset viewer.