source: trunk/MagicSoft/Mars/mfilter/MFEnergySlope.h@ 3392

Last change on this file since 3392 was 2206, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MFEnergySlope
2#define MARS_MFEnergySlope
3/////////////////////////////////////////////////////////////////////////////
4// //
5// MFEnergySlope //
6// //
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef MARS_MFilter
10#include "MFilter.h"
11#endif
12
13class MParList;
14class MMcEvt;
15class MMcCorsikaRunHeader;
16
17class MFEnergySlope : public MFilter
18{
19private:
20 Int_t fNumSelectedEvts; // counter for number of selected events
21
22 MMcEvt *fEvt; // Events used to determin energy slope
23
24 Bool_t fResult; // Result returned by IsExpressionTrue
25 Float_t fNewSlope; // New slope set by user
26
27 Float_t fMcSlope; // Original energy slope from MC data
28 Float_t fMcMinEnergy; // Starting energy of MC data
29 Float_t fMcMaxEnergy; // Ending energy of MC data
30
31 Float_t fN0; // Normalization factor
32
33 Int_t PreProcess(MParList *pList);
34 Int_t Process();
35
36public:
37 MFEnergySlope(const char *name=NULL, const char *title=NULL);
38
39 Bool_t IsExpressionTrue() const { return fResult; }
40
41 // Slope is used with positive values in the code
42 void SetNewSlope(Float_t f) {fNewSlope = TMath::Abs(f);}
43 void SetMcSlope(Float_t f) {fMcSlope = TMath::Abs(f);}
44
45 void SetMcMinEnergy(Float_t f) {fMcMinEnergy = f;}
46 void SetMcMaxEnergy(Float_t f) {fMcMaxEnergy = f;}
47
48 ClassDef(MFEnergySlope, 0) // A Filter to select events with a given energy slope
49};
50
51#endif
52
53
54
55
56
57
Note: See TracBrowser for help on using the repository browser.