Changeset 967 for trunk


Ignore:
Timestamp:
10/16/01 16:18:29 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/BUGS

    r949 r967  
    44-------------------
    55
    6  - if you try to use the constructor MFillH(const char *, ...)
    7    in a precompiled program, the program will fail.
    8    MFillH(MParContainer *, ...) works
  • trunk/MagicSoft/Mars/Changelog

    r961 r967  
    11                                                                  -*-*- END -*-*-
     2
     3 2001/10/05: Thomas Bretz
     4
     5   * mbase/MReadTree.[h,cc]:
     6     - added some output statements
     7     - added comments
     8     - added UseLeaf
     9     - changed AddFile to Int_t
     10     - simplified GetEntry call
     11
     12   * mgui/MGeomCam.[h,cc], MGeomCamCT1.[h,cc], MGeomCamMagic.[h,cc]:
     13     - added come comments
     14     - removed Draw-function
     15   
     16   * mars.cc:
     17     - Changed name of TROOT object to 'mars'
     18
     19   * merpp.cc:
     20     - changed name of TROOT object to 'merpp'
     21     - added some more ouput
     22
     23   * mbase/MBaseLinkDef.h:
     24     - added MRootFileBranch
     25     - added MRootFileTree
     26
     27   * mgui/MGeomPix.cc, mbase/MClone.cc, mraw/MRawRunHeader.cc:
     28     - added comments
     29
     30   * mbase/MEvtLoop.cc:
     31     - added missing include
     32     - added another time output
     33
     34   * mbase/MWriteRootFile.cc:
     35     - added ClassImp
     36   
     37   * mhist/MFillH.cc, mmontecarlo/MMcCollectionAreaCalc.cc:
     38     - changed output
     39   
     40   * mhist/MHMcCollectionArea.cc:
     41     - small fixes
     42     - changed error calculation according to Ciro
     43
     44   * macros/CT1Hillas.C:
     45     - fixes some bugs (typos)
     46
     47
    248
    349 2001/10/05: Thomas Bretz
  • trunk/MagicSoft/Mars/macros/CT1Hillas.C

    r948 r967  
    8383    //
    8484    MEvtLoop evtloop;
    85     if (!evtloop.SetParList(&plist))
    86         return;
     85    evtloop.SetParList(&plist)
    8786
    8887    //
    8988    // Execute your analysis
    9089    //
    91     evtloop.Eventloop();
     90    if (!evtloop.Eventloop())
     91        return;
    9292
    9393    //
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h

    r938 r967  
    1111
    1212    Int_t   fPixId;       // the pixel Id
     13
    1314    Bool_t  fIsUsed;      // the pixel is used for calculations --> kTRUE
    1415    Bool_t  fIsCore;      // the pixel is a Core pixel          --> kTRUE
     16
    1517    Float_t fPhot;        // The number of Cerenkov photons
    1618    Float_t fErrPhot;     // the error of fPhot
     19
     20    // FIXME: arrival time t, and it's error sigma t
    1721
    1822public:
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r959 r967  
    3434
    3535#pragma link C++ class MReadTree;
     36
     37#pragma link C++ class MRootFileBranch;
     38#pragma link C++ class MRootFileTree;
     39
    3640#pragma link C++ class MWriteFile;
    3741#pragma link C++ class MWriteAsciiFile;
  • trunk/MagicSoft/Mars/mbase/MClone.cc

    r961 r967  
    3939//  The object does only exist until a new object is cloned. It is deleted  //
    4040//  in the destructor.                                                      //
     41//                                                                          //
     42//  To use MClone you must make sure, that TObject::Clone is correctly      //
     43//  working for this class (maybe you have to overload it)                  //
    4144//                                                                          //
    4245//  Input Containers:                                                       //
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r962 r967  
    195195    clock.Print();
    196196
    197     *fLog << dec << endl
     197    *fLog << dec << endl << "CPU   - "
    198198        << "Time: " << clock.CpuTime() << "s"
    199199        << " for " << (maxcnt<0?dummy:maxcnt) << " Events"
    200200        << " --> " << (maxcnt<0?dummy:maxcnt)/clock.CpuTime() << " Events/s"
     201        << endl;
     202    *fLog << "Total - "
     203        << "Time: " << clock.RealTime() << "s"
     204        << " for " << (maxcnt<0?dummy:maxcnt) << " Events"
     205        << " --> " << (maxcnt<0?dummy:maxcnt)/clock.RealTime() << " Events/s"
    201206        << endl << endl;
    202207}
  • trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc

    r858 r967  
    4343#include "MParList.h"
    4444
     45ClassImp(MRootFileBranch);
     46ClassImp(MRootFileTree);
     47
    4548ClassImp(MWriteRootFile);
    4649
  • trunk/MagicSoft/Mars/mhist/MFillH.cc

    r953 r967  
    150150        if (!fParContainer)
    151151        {
    152             *fLog << dbginf << fParContainerName << " not found... aborting." << endl;
     152            *fLog << dbginf << fParContainerName << " [MParContainer] not found... aborting." << endl;
    153153            return kFALSE;
    154154        }
  • trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc

    r959 r967  
    5252
    5353
    54     fHistAll = new TH2D("All Events", "All showers - Radius vs log(E) distribution",
     54    fHistAll = new TH2D("AllEvents", "All showers - Radius vs log(E) distribution",
    5555                        50, 0., 5.,
    5656                        50, 0., 500.);
     
    6060    fHistAll->SetZTitle("N");
    6161
    62     fHistSel = new TH2D("Selected Events", "Selected showers - Radius vs log(E) distribution",
     62    fHistSel = new TH2D("SelectedEvents", "Selected showers - Radius vs log(E) distribution",
    6363                        50, 0., 5.,
    6464                        50, 0., 500.);
     
    6868    fHistSel->SetYTitle("N");
    6969
    70     fHistCol = new TH1D("Area", "Collection Area vs. log(E)",
     70    fHistCol = new TH1D("CollectionArea", "Collection Area vs. log(E)",
    7171                        50, 0., 5.);
    7272
    7373    fHistCol->SetXTitle("log(E/GeV)");
    74     fHistCol->SetYTitle("A/m^2");
     74    fHistCol->SetYTitle("A/m^{2}");
    7575}
    7676
     
    204204        for (Int_t iy=1; iy<=nbiny; iy++)
    205205        {
    206             const Float_t Ns = fHistSel->GetCellContent(ix, iy);
    207206            const Float_t Na = fHistAll->GetCellContent(ix, iy);
    208207
     
    210209                continue;
    211210
     211            const Float_t Ns = fHistSel->GetCellContent(ix, iy);
     212
    212213            const Double_t eff = Ns/Na;
    213             const Double_t err = sqrt(Na + Na*Ns - Ns*Ns - Ns) / (Na*Na);
     214            const Double_t err = sqrt((1.-eff)*Ns)/Na;
     215
     216            // old calculation from Harald:
     217            //  const Double_t eff = Ns/Na;
     218            //  const Double_t err = sqrt(Na + Na*Ns - Ns*Ns - Ns) / (Na*Na);
    214219
    215220            fHistSel->SetCellContent(ix, iy, eff);
     
    229234        for (Int_t iy=1; iy<=nbiny; iy++)
    230235        {
    231             const Double_t r1  = fHistSel->GetYaxis()->GetBinLowEdge(iy);
    232             const Double_t r2  = fHistSel->GetYaxis()->GetBinLowEdge(iy+1);
     236            TAxis *yaxis = fHistSel->GetYaxis();
     237
     238            const Double_t r1  = yaxis->GetBinLowEdge(iy);
     239            const Double_t r2  = yaxis->GetBinLowEdge(iy+1);
    233240
    234241            const Double_t A   = TMath::Pi() * (r2*r2 - r1*r1);
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r867 r967  
    6161    if (!fMcTrig)
    6262    {
    63         *fLog << dbginf << fObjName << " not found... exit." << endl;
     63        *fLog << dbginf << fObjName << " [MMcTrig] not found... exit." << endl;
    6464        return kFALSE;
    6565    }
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r867 r967  
    9494    fin.read((Byte_t*)&fProjectName,     22);
    9595    fin.read((Byte_t*)&fSourceName,      12);
    96     fin.read((Byte_t*)dummy,              4); // was RA
    97     fin.read((Byte_t*)dummy,              4); // was DEC
     96    fin.read((Byte_t*)dummy,              4); // was RA  (moved to tracking system)
     97    fin.read((Byte_t*)dummy,              4); // was DEC (moved to tracking system)
    9898    fin.read((Byte_t*)&fSourceEpochChar,  2);
    9999    fin.read((Byte_t*)&fSourceEpochDate,  2);
Note: See TracChangeset for help on using the changeset viewer.