Changeset 5448 for trunk/MagicSoft/Mars/mtemp/mpadova/macros/resize.C
- Timestamp:
- 11/22/04 11:36:32 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mpadova/macros/resize.C
r5335 r5448 42 42 write.AddContainer("MHillasSrc", "Events"); 43 43 44 write.AddContainer("MGeomCam", "RunHeaders");45 write.AddContainer("MMcConfigRunHeader", "RunHeaders");44 write.AddContainer("MGeomCam", "RunHeaders"); 45 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 46 46 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 47 write.AddContainer("MMcFadcHeader", "RunHeaders");48 write.AddContainer("MMcTrigHeader", "RunHeaders");47 write.AddContainer("MMcFadcHeader", "RunHeaders"); 48 write.AddContainer("MMcTrigHeader", "RunHeaders"); 49 49 50 write.AddContainer("MRawRunHeader", "RunHeaders"); 51 write.AddContainer("MSrcPosCam", "RunHeaders"); 52 write.AddContainer("MMcRunHeader", "RunHeaders"); 53 50 write.AddContainer("MRawRunHeader", "RunHeaders"); 51 write.AddContainer("MSrcPosCam", "RunHeaders"); 52 write.AddContainer("MMcRunHeader", "RunHeaders"); 54 53 55 54 // … … 59 58 // 60 59 61 TH1F* h = new TH1F("h", "", 20, 2., 4.); 60 Float_t frac[20] = {0.180451, 0.236564, 0.253332, 0.282566, 0.355083, 61 0.424058, 0.566892, 0.657478, 0.753713, 0.738402, 62 0.789239, 0.762777, 0.857609, 0.833747, 0.923706, 63 1.04348, 0.978622, 0.875537, 0.971831, 1.}; 62 64 63 Float_t frac[20] = {0.144928, 0.171911, 0.18763, 0.209461, 0.253219, 64 0.305425, 0.384593, 0.485204, 0.612452, 0.708138, 65 0.754522, 0.728028, 0.774046, 0.791422, 0.808775, 66 0.896842, 1., 1., 1., 1.}; 67 65 66 TH1F hist("probability", "", 20, 2., 4.); 67 hist.SetXTitle("log10(MHillas.fSize)"); 68 68 for (Int_t i = 0; i < 20; i++) 69 h ->SetBinContent(i+1, frac[i]);69 hist.SetBinContent(i+1, frac[i]); 70 70 71 MFSize fsize; 72 fsize.SetProb(h); 71 MH3 mh(hist); 72 MFEventSelector2 fsize(mh); 73 fsize.SetHistIsProbability(kTRUE); 73 74 74 75 write.SetFilter(&fsize);
Note:
See TracChangeset
for help on using the changeset viewer.