Changeset 905


Ignore:
Timestamp:
08/02/01 14:02:47 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/CT1Hillas.C

    r854 r905  
    5858    //
    5959    MEvtLoop evtloop;
    60     evtloop.SetParList(&plist);
     60    if (!evtloop.SetParList(&plist))
     61        return;
    6162
    6263    //
  • trunk/MagicSoft/Mars/macros/getCollArea.C

    r904 r905  
    4444    // Start to loop over all events
    4545    //
    46     magic.Eventloop();
     46    if (!magic.Eventloop())
     47        return;
    4748
    4849    //
  • trunk/MagicSoft/Mars/macros/getRate.C

    r903 r905  
    3030    parlist.AddToList(&tasklist);
    3131
    32     if (dim==0){
    33       MHMcRate *rate = new MHMcRate();
    34       parlist.AddToList(rate);
    35     }
    36     if (dim<0){
    37       char *name = new char[8];
    38       name="MHMcRate";
    39       char *auxname = new char[8+7];
    40       strcpy(auxname, name);
    41       sprintf(auxname+8, ";%d", -dim);
    42       MHMcRate *ratem = new MHMcRate(auxname);
    43       parlist.AddToList(ratem);
    44     }
    45     else{
    46       MHMcRate **ratep = new MHMcRate *[dim];
    47       char *name = new char[8];
    48       name="MHMcRate";
    49       char *auxname = new char[8+7];
    50       strcpy(auxname, name);
    51       for(int i=0;i<dim;i++){
    52         sprintf(auxname+8, ";%d", i+1);
    53         ratep[i] = new MHMcRate(auxname);
    54         parlist.AddToList(ratep[i]);
    55       }
    56     }
     32    TObjArray *hists = new TObjArray(MParList::CreateObjList("MHMcRate", dim));
     33
     34    //
     35    // Check if the list really contains the right number of histograms
     36    //
     37    if (hists->GetEntriesFast() != dim)
     38        return;
     39
     40    //
     41    // Add the histograms to the paramater list.
     42    //
     43    parlist.AddToList(hists);
    5744
    5845    //
     
    6754
    6855    Float_t BgR[10]={660,4,0,0,0,0,0,0,0,0};
    69     cout<<dim<<endl;
     56    cout << "Number of Trigger conditions: " << dim << endl;
    7057
    7158    MMcTriggerRateCalc rate(dim, 14, BgR, 100000, 2.75, 10.91e-2);
  • trunk/MagicSoft/Mars/macros/merpp.C

    r852 r905  
    1313/////////////////////////////////////////////////////////////////////////////
    1414
    15 int merpp()
     15void merpp()
    1616{
    1717    //
     
    5656    //
    5757    magic.Eventloop();
    58 
    59     return 0;
    6058}
    6159
  • trunk/MagicSoft/Mars/mbase/MParList.cc

    r901 r905  
    101101// --------------------------------------------------------------------------
    102102//
    103 //  Add an Container to the list.
     103//  Add a single container to the list.
    104104//
    105105//  If 'where' is given, the object will be added after this.
  • trunk/MagicSoft/Mars/mhist/HistLinkDef.h

    r893 r905  
    1212#pragma link C++ class MHMcEnergy;
    1313#pragma link C++ class MHMcCollectionArea;
     14
    1415#pragma link C++ class MHMcRate;
    1516
Note: See TracChangeset for help on using the changeset viewer.