Ignore:
Timestamp:
06/23/03 11:19:04 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmontecarlo
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r2173 r2207  
    6565}
    6666
    67 Bool_t MMcCollectionAreaCalc::PreProcess (MParList *pList)
     67Int_t MMcCollectionAreaCalc::PreProcess (MParList *pList)
    6868{
    6969    // connect the raw data with this task
     
    151151}
    152152
    153 Bool_t MMcCollectionAreaCalc::Process()
     153Int_t MMcCollectionAreaCalc::Process()
    154154{
    155155    const Double_t energy = fMcEvt->GetEnergy();
     
    178178}
    179179
    180 Bool_t MMcCollectionAreaCalc::PostProcess()
     180Int_t MMcCollectionAreaCalc::PostProcess()
    181181{
    182182    //
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h

    r2036 r2207  
    3030    Bool_t fAllEvtsTriggered;
    3131
     32    Bool_t ReInit(MParList *plist);
     33
     34    Int_t PreProcess(MParList *pList);
     35    Int_t Process();
     36    Int_t PostProcess();
     37
    3238public:
    3339    MMcCollectionAreaCalc(const char *input=NULL,
    3440                          const char *name=NULL, const char *title=NULL);
    35 
    36     Bool_t ReInit(MParList *plist);
    37 
    38     Bool_t PreProcess(MParList *pList);
    39     Bool_t Process();
    40     Bool_t PostProcess();
    4141
    4242    ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc

    r2173 r2207  
    100100// connect Monte Carlo data with this task
    101101//
    102 Bool_t MMcThresholdCalc::PreProcess(MParList* pList)
     102Int_t MMcThresholdCalc::PreProcess(MParList* pList)
    103103{
    104104    //
     
    142142// distribution to get the energy threshold.
    143143//
    144 Bool_t MMcThresholdCalc::Process()
     144Int_t MMcThresholdCalc::Process()
    145145{
    146146    const Float_t energy   = fMcEvt->GetEnergy();
     
    160160// Some iterations are done to be sure the fit parameters converge.
    161161//
    162 Bool_t MMcThresholdCalc::PostProcess()
     162Int_t MMcThresholdCalc::PostProcess()
    163163{
    164164    for (UInt_t i=0; i<fNum; i++)
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h

    r1016 r2207  
    1414#endif
    1515#ifndef ROOT_TObjArray
    16 #include "TObjArray.h"
     16#include <TObjArray.h>
    1717#endif
    1818
     
    3939    MHMcEnergy *GetHEnergy(UInt_t i) { return (MHMcEnergy*)(*fEnergy)[i]; }
    4040
     41    Int_t PreProcess(MParList* pList);
     42    Int_t Process();
     43    Int_t PostProcess();
     44
    4145public:
    42 
    4346    MMcThresholdCalc(const Int_t dim = 0,
    4447                     const char* name = NULL, const char* title = NULL);
    4548    ~MMcThresholdCalc();
    46 
    47     Bool_t PreProcess(MParList* pList);
    48     Bool_t Process();
    49     Bool_t PostProcess();
    5049
    5150    ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.cc

    r2173 r2207  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!   Author(s): Harald Kornmayer 1/2001
    2020!
     
    6363//  options, either Montecarlo files with a single trigger option.
    6464//
    65 Bool_t MMcTimeGenerate::PreProcess (MParList *pList)
     65Int_t MMcTimeGenerate::PreProcess (MParList *pList)
    6666{
    6767    // connect the raw data with this task
     
    7777//
    7878//
    79 Bool_t MMcTimeGenerate::Process()
     79Int_t MMcTimeGenerate::Process()
    8080{
    8181    Double_t dt;
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.h

    r1211 r2207  
    2020    Double_t fDeadTime;
    2121
     22    Int_t PreProcess(MParList *pList);
     23    Int_t Process();
     24
    2225public:
    2326    MMcTimeGenerate(const char *name=NULL, const char *title=NULL);
     
    2528    ~MMcTimeGenerate();
    2629
    27     Bool_t PreProcess(MParList *pList);
    28     Bool_t Process();
    29 
    3030    ClassDef(MMcTimeGenerate, 0) // To generate a random time
    3131};
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r2173 r2207  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!   Author(s): Harald Kornmayer 1/2001
    2020!
    2121!   Copyright: MAGIC Software Development, 2000-2003
    2222!
    23 !   Modified 4/7/2002 Abelardo Moralejo: now the dimension of fTrigger is
    24 !    set dinamically, to allow an arbitrary large number of trigger
    25 !    conditions to be processed.
    26 !
    2723!
    2824\* ======================================================================== */
     25
     26/////////////////////////////////////////////////////////////////////////////
     27//
     28// Modified 4/7/2002 Abelardo Moralejo: now the dimension of fTrigger is
     29//  set dinamically, to allow an arbitrary large number of trigger
     30//  conditions to be processed.
     31//
     32/////////////////////////////////////////////////////////////////////////////
    2933#include "MMcTriggerRateCalc.h"
    3034
     
    3236
    3337#include <TCanvas.h>
     38#include <TGraphErrors.h>
    3439
    3540#include "MLog.h"
     
    215220//  options, either Montecarlo files with a single trigger option.
    216221//
    217 Bool_t MMcTriggerRateCalc::PreProcess (MParList *pList)
     222Int_t MMcTriggerRateCalc::PreProcess (MParList *pList)
    218223{
    219224    // connect the raw data with this task
     
    266271//  MHMcRate container.
    267272//
    268 Bool_t MMcTriggerRateCalc::Process()
     273Int_t MMcTriggerRateCalc::Process()
    269274{
    270275    //
     
    318323//  The PostProcess-function calculates and shows the trigger rate
    319324//
    320 Bool_t MMcTriggerRateCalc::PostProcess()
     325Int_t MMcTriggerRateCalc::PostProcess()
    321326{
    322327    for (UInt_t i=0; i<fNum; i++)
     
    374379     sure, that the histograms are not overwritten.
    375380     Also the comment for the function doesn't match the rules.
    376 
     381     BTW: please replace all arrays by Root lists (TArray*, TList, etc)
    377382  TCanvas *c = MH::MakeDefCanvas("Rate");
    378383
  • TabularUnified trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h

    r2173 r2207  
    99#endif
    1010
    11 #include <TGraphErrors.h>
    12 
    1311class MParList;
    1412class MMcEvt;
     
    1715class MMcTrig;
    1816class MHMcRate;
     17class TH1F;
    1918
    2019class MMcTriggerRateCalc : public MTask
    2120{
    2221private:
    23     MMcEvt    *fMcEvt;        //!
     22    MMcEvt    *fMcEvt;     //!
    2423
    2524    TObjArray *fMcRate;
     
    2928    MMcCorsikaRunHeader *fMcCorRunHeader;
    3029
    31     UInt_t     fNum;           // decoded dimension
     30    UInt_t     fNum;       // decoded dimension
    3231    UInt_t     fFirst;
    3332    UInt_t     fLast;
    3433
    35     Float_t*   fTrigNSB;   // Number of triggers due to NSB alone
     34    Float_t   *fTrigNSB;   // Number of triggers due to NSB alone
    3635    Float_t    fSimNSB;    // Number of simulated NSB-only events
    3736
    38     Float_t*   fTrigger;       // Number of triggered showers
    39     Float_t    fShowers;       // Number of simulated showers
    40     Float_t    fAnalShow;      // Number of analysed showers
     37    Float_t   *fTrigger;   // Number of triggered showers
     38    Float_t    fShowers;   // Number of simulated showers
     39    Float_t    fAnalShow;  // Number of analysed showers
    4140
    42     Int_t      fPartId;        // Incident particle that generates showers
     41    Int_t      fPartId;    // Incident particle that generates showers
     42
     43    TH1F      *fHist[5];
    4344
    4445    void Init(int dim, float *trigbg,
     
    4849    MMcTrig  *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
    4950
    50     TH1F*     fHist[5];
     51    Bool_t ReInit(MParList *plist);
     52
     53    Int_t PreProcess(MParList *pList);
     54    Int_t Process();
     55    Int_t PostProcess();
    5156
    5257public:
     
    5964    ~MMcTriggerRateCalc();
    6065
    61     Bool_t ReInit(MParList *plist);
    62 
    63     Bool_t PreProcess(MParList *pList);
    64     Bool_t Process();
    65     Bool_t PostProcess();
    66 
    6766    TH1F* GetHist(Int_t i) {return fHist[i];}
    6867
Note: See TracChangeset for help on using the changeset viewer.