Changeset 905 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 08/02/01 14:02:47 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Hillas.C
r854 r905 58 58 // 59 59 MEvtLoop evtloop; 60 evtloop.SetParList(&plist); 60 if (!evtloop.SetParList(&plist)) 61 return; 61 62 62 63 // -
trunk/MagicSoft/Mars/macros/getCollArea.C
r904 r905 44 44 // Start to loop over all events 45 45 // 46 magic.Eventloop(); 46 if (!magic.Eventloop()) 47 return; 47 48 48 49 // -
trunk/MagicSoft/Mars/macros/getRate.C
r903 r905 30 30 parlist.AddToList(&tasklist); 31 31 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); 57 44 58 45 // … … 67 54 68 55 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; 70 57 71 58 MMcTriggerRateCalc rate(dim, 14, BgR, 100000, 2.75, 10.91e-2); -
trunk/MagicSoft/Mars/macros/merpp.C
r852 r905 13 13 ///////////////////////////////////////////////////////////////////////////// 14 14 15 intmerpp()15 void merpp() 16 16 { 17 17 // … … 56 56 // 57 57 magic.Eventloop(); 58 59 return 0;60 58 } 61 59
Note:
See TracChangeset
for help on using the changeset viewer.