Changeset 1952


Ignore:
Timestamp:
04/12/03 16:50:35 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1950 r1952  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/04/12: Thomas Bretz
     4
     5   * manalysis/MPadding.[h,cc]:
     6     - simplified includes
     7     - changed some code (discussed with Robert)
     8     - fixed comments in header
     9     - changed ClassDef to 0
     10     - changed output to Mars style
     11     - fixed the memory leak of fHSigmabarMax
     12     - replaced TRandom by gRandom
     13     - removed usage of ->operator
     14
     15   * manalysis/MApplyPadding.[h,cc]:
     16     - replaced fRnd by gRandom
     17     - used MH::SetBinning
     18     - use telescope theta instead of theta
     19     - removed usage of ->operator
     20     - removed PostProcess
     21     
     22   * manalysis/MPadSchweizer.cc:
     23     - fixed outputs in PreProcess
     24
     25   * manalysis/MSigmabar.[h,cc]:
     26     - added Reset member function
     27     - usage of memset
     28     - don't skip NumPhotons==0
     29     - changes discussed with Robert
     30     - small simplifications in loops
     31     - some fixes to the output
     32
     33   * manalysis/MSigmabarCalc.[h,cc]:
     34     - fixed outputs
     35     - some small simplifications
     36     - moved test for theta<120deg to MCT1ReadPreProc
     37
     38   * mfileio/MCT1ReadPreProc.[h,cc]:
     39     - skip events with theta>90deg
     40
     41   * mhist/MHSigmaPixel.[h,cc]:
     42     - fixes to the screen output
     43     - simplified usage of MBinning
     44
     45   * mhist/MHSigmaTheta.[h,cc]:
     46     - fixes to the screen output
     47     - simplified usage of MBinning
     48     - lower cased upper case local variables   
     49     - removed DrawClone from Finalize (call from macro or executable)
     50
     51   * mhist/MHSigmabarTheta.[h,cc]:
     52     - fixes to the screen output
     53     
     54   * mhist/MHStarMap.cc:
     55     - added some const qualifiers
     56
     57   * mhist/MHHadronnes.cc:
     58     - removed output of function name in Finalize because this
     59       information is already available on the screen.
     60
     61   * manalysis/MCT1PointingCorrCalc.h:
     62     - changed ClassDef to 0
     63     - removed empty PostProcess
     64     - fixes to the screen output in PreProcess
     65     - changed the order of the arguments in the constructor
     66       (name, title to the end)
     67
     68
    269
    370 2003/04/12: Wolfgang Wittek
     
    875   * manalysis/AnalysisLinkDef.h
    976               Makefile
    10 
    11 
    12  2003/04/12: Wolfgang Wittek
    1377
    1478   * mbase/MFilter.h
     
    2185     - type of 3rd argument of member function Fill
    2286       changed from 'MF' to 'MFilter'
     87
    2388
    2489
     
    49114
    50115
    51  2003/04/10: Thomas Bretz
     116 2003/04/10: Thomas Bretz                 
    52117 
    53118   * mbase/MContinue.[h,cc]:
  • trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.cc

    r1950 r1952  
    4949// Default constructor.
    5050//
    51 MCT1PointingCorrCalc::MCT1PointingCorrCalc(const char *name, const char *title,
    52                              const char *srcname)
     51MCT1PointingCorrCalc::MCT1PointingCorrCalc(const char *srcname,
     52                                           const char *name, const char *title)
     53    : fSrcName(srcname)
    5354{
    5455    fName  = name  ? name  : "MCT1PointingCorrCalc";
    5556    fTitle = title ? title : "Task to do the CT1 pointing correction";
    56 
    57     fSrcName = srcname;
    5857}
    5958
    6059// --------------------------------------------------------------------------
    61 //
    62 //
    63 //
    64 //
    6560//
    6661Bool_t MCT1PointingCorrCalc::PreProcess(MParList *pList)
     
    7873    if (!fMcEvt)
    7974    {
    80         *fLog << dbginf << "MMcEvt not found... aborting." << endl;
     75        *fLog << err << "MMcEvt not found... aborting." << endl;
    8176        return kFALSE;
    8277    }
     
    8580    if (!fHourAngle)
    8681    {
    87         *fLog << dbginf << "HourAngle not found... aborting." << endl;
     82        *fLog << err << "HourAngle [MParameterD] not found... aborting." << endl;
    8883        return kFALSE;
    8984    }
     
    9388    if (!fSrcPos)
    9489    {
    95         *fLog << err << dbginf << fSrcName << " [MSrcPosCam] not found... aborting." << endl;
     90        *fLog << err << fSrcName << " [MSrcPosCam] not found... aborting." << endl;
    9691        return kFALSE;
    9792    }
     
    135130   return kTRUE;
    136131}
    137 // --------------------------------------------------------------------------
    138 //
    139 // 
    140 //
    141 Bool_t MCT1PointingCorrCalc::PostProcess()
    142 {
    143     return kTRUE;
    144 }
    145 //============================================================================
    146132
    147 
    148 
    149 
    150 
    151 
  • trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.h

    r1950 r1952  
    3030
    3131public:
    32     MCT1PointingCorrCalc(const char *name=NULL, const char *title=NULL,
    33                          const char *srcname="MSrcPosCam");
     32    MCT1PointingCorrCalc(const char *srcname="MSrcPosCam",
     33                         const char *name=NULL, const char *title=NULL);
    3434
    3535    Bool_t PreProcess(MParList *pList);
    3636    Bool_t Process();
    37     Bool_t PostProcess();
    3837
    39     ClassDef(MCT1PointingCorrCalc, 1)   // Task to do the CT1 pointing correction for Mkn421 2001 data
     38    ClassDef(MCT1PointingCorrCalc, 0)   // Task to do the CT1 pointing correction for Mkn421 2001 data
    4039};
    4140
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1936 r1952  
    708708    //  look for the HourAngle container in the plist
    709709    //
    710     fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD","HourAngle");
     710    fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD", "HourAngle");
    711711    if (!fHourAngle)
    712712        return kFALSE;
     
    716716    //  look for the ThetaOrig container in the plist
    717717    //
    718     fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD","ThetaOrig");
     718    fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD", "ThetaOrig");
    719719    if (!fThetaOrig)
    720720        return kFALSE;
     
    826826// Mars structures and data members
    827827//
    828 void MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)
     828Bool_t MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)
    829829{
    830830    /*
     
    912912    fThetaOrig->SetVal(theta);
    913913
    914     //*fLog << "Theta, smearedTheta = " << theta << ",  " << SmearTheta(theta)
    915     //      << endl;
     914    if (theta>TMath::Pi()/2)
     915        return kCONTINUE;
    916916
    917917    // store hour angle
     
    959959    fMcTrig->SetReadyToSave();
    960960    fMcEvt->SetReadyToSave();
     961
     962    return kTRUE;
    961963}
    962964
     
    10851087    fIn->read((Byte_t*)&event, sizeof(struct eventrecord));
    10861088
    1087     ProcessEvent(event);
     1089    switch (ProcessEvent(event))
     1090    {
     1091    case kFALSE:
     1092        return kFALSE;
     1093    case kCONTINUE:
     1094        return kCONTINUE;
     1095    }
    10881096
    10891097    fNumEvents++;
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h

    r1899 r1952  
    6868    Bool_t CheckFilePosition();
    6969    void   ProcessRunHeader(const struct outputpars &outpars);
    70     void  ProcessEvent(const struct eventrecord &event);
     70    Bool_t ProcessEvent(const struct eventrecord &event);
    7171
    7272    Double_t SmearTheta(Double_t theta);
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r1948 r1952  
    251251    const Stat_t sump = fPhness->Integral();
    252252
    253     *fLog << inf << "MHHadronness::Finalize - Sum Hadronness: gammas=" << sumg << " hadrons=" << sump << endl;
     253    *fLog << inf << "Sum Hadronness: gammas=" << sumg << " hadrons=" << sump << endl;
    254254
    255255    if (sumg==0 )
    256         *fLog << warn << "MHHadronness::Finalize: Cannot calculate hadronness for 'gammas'." << endl;
     256        *fLog << warn << "Cannot calculate hadronness for 'gammas'." << endl;
    257257    if (sump==0)
    258         *fLog << warn << "MHHadronness::Finalize: Cannot calculate hadronness for 'hadrons'." << endl;
    259 
     258        *fLog << warn << "Cannot calculate hadronness for 'hadrons'." << endl;
    260259
    261260    // Normalize photon distribution
Note: See TracChangeset for help on using the changeset viewer.