Changeset 2002 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 04/24/03 11:58:54 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc
r1984 r2002 20 20 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 ! Filter to select events with a energy slope. 02/200323 22 ! 24 23 \* ======================================================================== */ … … 43 42 // // 44 43 // With this filter the statistics of the MC sample is reduced. // 45 // camera ver.0.6 and reflector ver.0.6 are required to fetch //44 // camera ver.0.6 and reflector ver.0.6 are required to fetch // 46 45 // the correct MC information // 47 46 // // … … 49 48 #include "MFEnergySlope.h" 50 49 51 //#include <fstream.h>50 #include <fstream.h> 52 51 #include <TRandom.h> 53 52 … … 56 55 #include "MLog.h" 57 56 #include "MLogManip.h" 58 59 57 60 58 #include "MMcEvt.hxx" … … 73 71 fName = name ? name : "MFEnergySlope"; 74 72 fTitle = title ? title : "Filter to select energy with given slope"; 75 }76 77 // --------------------------------------------------------------------------78 //79 // Destructor80 //81 MFEnergySlope::~MFEnergySlope()82 {83 73 } 84 74 … … 110 100 fMcMaxEnergy = runheader->GetEUppLim(); 111 101 112 *fLog << "MFEnergySlope::PreProcess; fetched MC info:" << endl << 113 " E Slope: "<< fMcSlope << endl << 114 " E Min: "<< fMcMinEnergy << endl << 115 " E Max: "<< fMcMaxEnergy << endl << 116 " New E Slope: "<< fNewSlope << endl; 102 *fLog << inf; 103 *fLog << "MFEnergySlope::PreProcess: fetched MC info:" << endl; 104 *fLog << " E Slope: " << fMcSlope << endl; 105 *fLog << " E Min: " << fMcMinEnergy << endl; 106 *fLog << " E Max: " << fMcMaxEnergy << endl; 107 *fLog << " New E Slope: " << fNewSlope << endl; 117 108 118 109 // Slope is used with positive values in the code … … 180 171 fResult = Nexp > Nrnd; 181 172 182 if (fResult) 183 { 184 fNumSelectedEvts++; 185 return kTRUE; 186 } 187 173 if (!fResult) 174 return kTRUE; 175 176 fNumSelectedEvts++; 188 177 return kTRUE; 189 178 } 190 179 191 192 // --------------------------------------------------------------------------193 //194 // Postprocess all filters.195 //196 Bool_t MFEnergySlope::PostProcess()197 {198 //---------------------------------199 200 return kTRUE;201 }202 203 void MFEnergySlope::StreamPrimitive(ofstream &out) const204 {205 /*206 if (fEvt)207 fEvt->SavePrimitive(out);208 209 out << " MFEnergySlope " << GetUniqueName() << "(";210 211 if (fEvt)212 out << "&" << fEvt->GetUniqueName();213 else214 out << "\"" << fContName << "\"";215 216 out << ", New Energy Slope= " << fValue << " Normalization factor: "217 << fN0 <<" );" << endl;218 */219 }220 221 222 223 224 225 226 227 228
Note:
See TracChangeset
for help on using the changeset viewer.