Changeset 5999 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 01/25/05 17:00:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r5975 r5999 19 19 -*-*- END OF LINE -*-*- 20 20 21 2005/01/25 Javier Rico 22 * macros/mmcCleaning.C 23 - added extractor spline and input arguments 24 21 25 2005/01/24 Javier Rico 22 26 * programs/RFstd.root, programs/RFdist.root, programs/RFalpha.root -
trunk/MagicSoft/Mars/mtemp/mifae/macros/mmcCleaning.C
r5278 r5999 6 6 7 7 8 void mmcCleaning( )8 void mmcCleaning(TString NoiseFilename, TString NoiseOutFilename) 9 9 { 10 10 // … … 15 15 16 16 // ------------- user change ----------------- 17 Char_t* NonoiseFilename = "/local_disk/jrico/mc/Gamma s/Gamma_zbin0_0_7_1000to1009_w0_nonoise.root"; // File to be used for the calibration (must be a camera file without added noise)18 Char_t* NoiseFilename = "/local_disk/jrico/mc/Gammas/Gamma_zbin0_0_7_1000to1009_w0.root"; // File to be analyzed17 Char_t* NonoiseFilename = "/local_disk/jrico/mc/Gamma_zbin0_0_7_1000to1009_w0.root"; 18 // Char_t* NoiseFilename = "/mnt/wdflix/root_0.73mirror/wuerzburg/gammas/Gamma_zbin3_0_7_1160to1169_w0.root"; // File to be analyzed 19 19 20 Char_t* NoiseOutFilename = "/local_disk/jrico/mc/Gammas/prueba.root"; // Output file name20 // Char_t* NoiseOutFilename = "/mnt/users/jrico/prueba.root"; // Output file name 21 21 22 // Signal extractor 22 const Int_t wsize=2; 23 // Signal sigextract 23 24 // (other extraction methods can be used) 24 MExtractFixedWindowPeakSearch sigextract; 25 25 MExtractor* sigextract = new MExtractTimeAndChargeSpline(); 26 ((MExtractTimeAndChargeSpline*)sigextract)->SetTimeType(MExtractTimeAndChargeSpline::kHalfMaximum); 27 ((MExtractTimeAndChargeSpline*)sigextract)->SetChargeType(MExtractTimeAndChargeSpline::kIntegral); 28 ((MExtractTimeAndChargeSpline*)sigextract)->SetRiseTime((Float_t)wsize*0.25); 29 ((MExtractTimeAndChargeSpline*)sigextract)->SetFallTime((Float_t)wsize*0.75); 30 26 31 // Define FADC slices to be integrated in high and low gain: 27 sigextract.SetRange(1, 14, 2, 14); 28 sigextract.SetWindows(6,6,4); 32 sigextract->SetRange(1, 11, 2, 12); 29 33 30 34 // Defines when to switch to low gain 31 sigextract .SetSaturationLimit(240);35 sigextract->SetSaturationLimit(240); 32 36 33 37 // --------------------------------------------------------------------- … … 82 86 calib.SetCalibrationMode(MCalibrate::kFfactor); 83 87 84 MImgCleanStd clean( 2.5,2.0);88 MImgCleanStd clean(4.0,3.5); 85 89 clean.SetCleanRings(1); 86 90 // clean.SetRemoveSingle(kFALSE); … … 97 101 MMcCalibrationCalc mccalibcalc; 98 102 // Calculates calibration constants to convert from ADC counts to photons. 99 103 100 104 tlist.AddToList(&read); 101 105 tlist.AddToList(&geom); 102 106 tlist.AddToList(&pcopy); 103 107 tlist.AddToList(&pointcalc); 104 tlist.AddToList( &sigextract);108 tlist.AddToList(sigextract); 105 109 tlist.AddToList(&mccalibupdate); 106 110 tlist.AddToList(&calib); … … 118 122 119 123 MEvtLoop evtloop; 120 evtloop.SetProgressBar(&bar);124 // evtloop.SetProgressBar(&bar); 121 125 evtloop.SetParList(&plist); 122 126 … … 133 137 MIslands isl; 134 138 MArrivalTimeCam timecam; 139 MTopology topology; 135 140 plist.AddToList(&isl); 136 141 plist.AddToList(&timecam); 142 plist.AddToList(&topology); 137 143 138 144 MArrivalTimeCalc2 timecalc; … … 143 149 islclean.SetInputName("MIslands"); 144 150 islclean.SetMethod(1); 151 MTopologyCalc topcalc; 145 152 146 153 MReadMarsFile read2("Events"); … … 152 159 tlist.AddToListBefore(&timecalc,&mccalibupdate,"All"); 153 160 tlist.AddToListBefore(&islandcalc,&hcalc,"All"); 154 tlist.AddToListBefore(& islclean,&hcalc,"All");161 tlist.AddToListBefore(&topcalc,&hcalc,"All"); 155 162 156 163 MWriteRootFile write(NoiseOutFilename); // Writes output 164 write.AddContainer("MRawRunHeader", "RunHeaders"); 165 write.AddContainer("MMcRunHeader", "RunHeaders"); 166 write.AddContainer("MSrcPosCam", "RunHeaders"); 167 write.AddContainer("MGeomCam", "RunHeaders"); 168 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 169 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 170 write.AddContainer("MMcFadcHeader", "RunHeaders"); 171 write.AddContainer("MMcTrigHeader", "RunHeaders"); 172 157 173 write.AddContainer("MRawRunHeader", "Events"); 158 174 write.AddContainer("MMcEvt", "Events"); … … 160 176 write.AddContainer("MHillas", "Events"); 161 177 write.AddContainer("MHillasSrc", "Events"); 178 write.AddContainer("MHillasExt", "Events"); 179 write.AddContainer("MConcentration","Events"); 162 180 write.AddContainer("MImagePar", "Events"); 163 181 write.AddContainer("MNewImagePar", "Events"); 164 182 write.AddContainer("MIslands", "Events"); 183 write.AddContainer("MPointingPos", "Events"); 184 write.AddContainer("MTopology", "Events"); 165 185 166 186 tlist.RemoveFromList(&mccalibcalc);
Note:
See TracChangeset
for help on using the changeset viewer.