Changeset 1991 for trunk/MagicSoft/Mars
- Timestamp:
- 04/23/03 16:44:15 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/triglvl2.C
r1920 r1991 10 10 // - fValue comparision value for the filter 11 11 // 12 // 23/04/2003 Added example of MFEnergySlope filter 13 // 14 // 12 15 void triglvl2(char *filename = "Gamma.root") 13 16 // USER: Data File Name ---^ … … 20 23 21 24 parlist.AddToList(&tasklist); 25 26 MGeomCamMagic geocam; 27 parlist.AddToList(&geocam); 28 29 // MHillas hillas; 30 // parlist.AddToList(&hillas); 22 31 23 32 // An instance of the class MMcTriggerLvl2 is created and added to the … … 35 44 // 36 45 MF lvl2filter("MMcTriggerLvl2.fLutPseudoSize > 8"); 37 // MF lvl2filter("MMcTriggerLvl2.fSizeBiggerCell > 16");38 46 39 47 // 40 48 // A second filter is created using the class MFTriggerLvl2 41 49 // 42 MFTriggerLvl2 fTrig 1("MMcTriggerLvl2", '>', 8);50 MFTriggerLvl2 fTrig("MMcTriggerLvl2", '>', 8); 43 51 // USER: fValue to be compared --^ 44 52 … … 48 56 MF energyfilter("MMcEvt.fEnergy > 100"); 49 57 MFEventSelector selector; 50 selector.SetNumSelectEvts(4000); 58 //selector.SetNumSelectEvts(4000); 59 60 61 // Filter to select events according to a give slope 62 MFEnergySlope eslope; 63 64 eslope.SetMcMinEnergy(50.); 65 eslope.SetMcMaxEnergy(400.); 66 eslope.SetNewSlope(-3.91); 51 67 52 68 // A filter list is created; the filters created can be added to the list 53 69 // 54 70 MFilterList flist; 55 // flist.AddToList(&energyfilter); 56 // flist.AddToList(&lvl2filter); 57 // flist.AddToList(&selector); 58 flist.AddToList(&fTrig1); 71 // flist.AddToList(&energyfilter); 72 // flist.AddToList(&lvl2filter); 73 // flist.AddToList(&selector); 74 // flist.AddToList(&eslope); 75 flist.AddToList(&fTrig); 76 59 77 60 78 // … … 72 90 73 91 // 92 // The filter list is added to the task list 93 // 94 tasklist.AddToList(&flist); 95 96 // 74 97 // Task to calculate and plot the effective area 75 98 // … … 83 106 84 107 // 85 // The filter list is added to the task list86 //87 tasklist.AddToList(&flist);88 89 //90 108 // The task to calculate the L2T parameter is added to the task list 91 109 // 92 110 MMcTriggerLvl2Calc fill("MMcTriggerLvl2","MMcTriggerLvl2"); 93 111 tasklist.AddToList(&fill); 112 113 // 114 // Filling of histos for MHMcTriggerLvl2 115 // 116 MFillH hfill1("MHMcTriggerLvl2","MMcTriggerLvl2"); 117 tasklist.AddToList(&hfill1); 94 118 95 119 // … … 117 141 118 142 parlist.FindObject("MHMcTriggerLvl2")->DrawClone("lps"); 119 parlist.FindObject("MHMcTriggerLvl2")->DrawClone();143 // parlist.FindObject("MHMcTriggerLvl2")->DrawClone(); 120 144 121 145 // Returns histogram of the class MHMcTriggerLvl2 122 //parlist.FindObject("MHMcTriggerLvl2")->GetHistByName("hfPseudoSize"); 123 124 146 // parlist.FindObject("MHMcTriggerLvl2")->GetHistByName("hfPseudoSize")); 125 147 126 148 } 149 150 151 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc
r1920 r1991 47 47 #include "MMcRunHeader.hxx" 48 48 49 #include "MGeomCam.h" 50 49 51 50 52 ClassImp(MMcTriggerLvl2Calc); … … 83 85 { 84 86 *fLog << err << dbginf << "MMcTrig not found... exit." << endl; 87 return kFALSE; 88 } 89 90 fCam = (MGeomCam*)pList->FindObject("MGeomCam"); 91 if (!fCam) 92 { 93 *fLog << dbginf << "MGeomCam not found (no geometry information available)... aborting." << endl; 85 94 return kFALSE; 86 95 } … … 125 134 126 135 fMMcTriggerLvl2->SetLv1(fMcTrig); 127 136 137 fMMcTriggerLvl2->CalcCompactPixels(fCam); 138 128 139 fMMcTriggerLvl2->Calc(); 129 130 fMHMcTriggerLvl2->Fill(fMMcTriggerLvl2);131 140 132 141 //fMMcTriggerLvl2->DrawLv1(); … … 149 158 } 150 159 160 161 162
Note:
See TracChangeset
for help on using the changeset viewer.