Changeset 6977 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 04/25/05 15:30:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6958 r6977 84 84 fPointPos(0), fTimeEffOn(0), fTime(0), 85 85 fSkipHistTime(kFALSE), fSkipHistTheta(kFALSE), fSkipHistEnergy(kFALSE), 86 fNumTimeBins(10), fMatrix(0) 86 fForceUsingSize(kFALSE), fNumTimeBins(10), fMatrix(0) 87 87 88 { 88 89 // … … 95 96 fHAlpha.SetTitle("Alpha"); 96 97 fHAlpha.SetXTitle("\\Theta [deg]"); 97 fHAlpha.SetYTitle("E_{est} [GeV]");98 //fHAlpha.SetYTitle("E_{est} [GeV]"); 98 99 fHAlpha.SetZTitle("|\\alpha| [\\circ]"); 99 100 fHAlpha.SetDirectory(NULL); … … 108 109 109 110 110 //fHEnergy.SetName("Energy");111 fHEnergy.SetName("Excess"); 111 112 //fHEnergy.SetTitle(" N_{exc} vs. E_{est} "); 112 113 //fHEnergy.SetXTitle("E_{est} [GeV]"); … … 256 257 257 258 fHillas = 0; 258 /* 259 if (fSizeMin>=0 || fSizeMax>=0) 260 { 261 fHillas = (MHillas*)pl->FindObject("MHillas"); 262 if (!fHillas) 263 { 264 *fLog << warn << "Size cut set, but MHillas not found... abort." << endl; 265 return kFALSE; 266 } 267 } 268 */ 269 fEnergy = (MParameterD*)pl->FindObject("MEnergyEst", "MParameterD"); 259 fEnergy = fForceUsingSize ? 0 : (MParameterD*)pl->FindObject("MEnergyEst", "MParameterD"); 270 260 if (!fEnergy) 271 { /* 272 if (fEnergyMin>=0 || fEnergyMax>=0) 273 { 274 *fLog << warn << "Energy cut set, but MEnergyEst not found... abort." << endl; 275 return kFALSE; 276 } */ 277 261 { 278 262 *fLog << warn << "MEnergyEst [MParameterD] not found... " << flush; 279 263 … … 285 269 *fLog << "ignored." << endl; 286 270 287 fHEnergy.SetName("ExcessSize");288 271 fHEnergy.SetTitle(" N_{exc} vs. Size "); 289 fHEnergy.SetXTitle("Size [\\gamma]"); 272 fHEnergy.SetXTitle("Size [phe]"); 273 fHAlpha.SetYTitle("Size [phe]"); 290 274 } 291 275 else 292 276 { 293 fHEnergy.SetName("ExcessEnergy");294 277 fHEnergy.SetTitle(" N_{exc} vs. E_{est} "); 295 278 fHEnergy.SetXTitle("E_{est} [GeV]"); 279 fHAlpha.SetYTitle("E_{est} [GeV]"); 296 280 } 297 281 … … 325 309 binse.SetEdges(fOffData ? *fOffData : fHAlpha, 'y'); 326 310 binsa.SetEdges(fOffData ? *fOffData : fHAlpha, 'z'); 327 328 311 if (!fOffData) 329 312 { … … 336 319 binse.SetEdges(1, 10, 100000); 337 320 else 338 binse.SetEdges(*pl, "BinningEnergyEst"); 321 if (fEnergy) 322 binse.SetEdges(*pl, "BinningEnergyEst"); 323 else 324 binse.SetEdges(*pl, "BinningSize"); 339 325 340 326 binsa.SetEdges(*pl, "BinningAlpha"); 327 } 328 else 329 { 330 fHEnergy.SetTitle(fOffData->GetTitle()); 331 fHEnergy.SetXTitle(fOffData->GetYaxis()->GetTitle()); 332 fHAlpha.SetYTitle(fOffData->GetYaxis()->GetTitle()); 341 333 } 342 334 … … 946 938 rc = kTRUE; 947 939 } 940 if (IsEnvDefined(env, prefix, "ForceUsingSize", print)) 941 { 942 fForceUsingSize = GetEnvValue(env, prefix, "ForceUsingSize", fForceUsingSize); 943 rc = kTRUE; 944 } 948 945 return rc; 949 946 } -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r6958 r6977 106 106 Bool_t fSkipHistTheta; 107 107 Bool_t fSkipHistEnergy; 108 Bool_t fForceUsingSize; 108 109 109 110 UShort_t fNumTimeBins; // Number of time bins to fill together … … 141 142 void SetOffData(const MHAlpha &h) 142 143 { 143 fOffData = &h.fHAlpha; 144 fOffData = &h.fHAlpha; 145 fForceUsingSize = h.fForceUsingSize; 146 fNumTimeBins = h.fNumTimeBins; 144 147 } 145 148 void SetNumTimeBins(UShort_t n) { fNumTimeBins = n; } … … 161 164 void SkipHistTheta(Bool_t b=kTRUE) { fSkipHistTheta=b; } 162 165 void SkipHistEnergy(Bool_t b=kTRUE) { fSkipHistEnergy=b; } 166 void ForceUsingSize(Bool_t b=kTRUE) { fForceUsingSize=b; } 163 167 164 168 void DrawAll(); //*MENU*
Note:
See TracChangeset
for help on using the changeset viewer.