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

Last change on this file since 1999 was 1984, checked in by stamerra, 22 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MFEnergySlope
2#define MARS_MFEnergySlope
3/////////////////////////////////////////////////////////////////////////////
4// //
5// MFEnergySlope //
6// //
7// auth. A.stamerra //
8// created 30.01.03 //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MFilter
13#include "MFilter.h"
14#endif
15
16class MParList;
17class MMcEvt;
18class MMcCorsikaRunHeader;
19
20class MFEnergySlope : public MFilter
21{
22private:
23
24 Int_t fNumSelectedEvts;
25 Int_t fErrors[2];
26
27 MMcEvt *fEvt;
28 // MMcCorsikaRunHeader *fMcRunHeader;
29
30 Bool_t fResult;
31 Float_t fNewSlope; // New slope set by user
32
33 Float_t fMcSlope; // Original energy slope from MC data
34 Float_t fMcMinEnergy; // Starting energy of MC data
35 Float_t fMcMaxEnergy; // Ending energy of MC data
36
37 Float_t fN0; // Normalization factor
38
39 // void Init(const Float_t val,
40 // const char *name, const char *title);
41
42 void StreamPrimitive(ofstream &out) const;
43
44 Bool_t PreProcess(MParList *pList);
45 Bool_t Process();
46 Bool_t PostProcess();
47
48public:
49
50 // MFEnergySlope(const char *name=NULL, const char *title=NULL);
51 // MFEnergySlope();
52 MFEnergySlope(const char *name=NULL, const char *title=NULL);
53 ~MFEnergySlope();
54
55
56 Bool_t IsExpressionTrue() const { return fResult; }
57
58 // Slope is used with positive values in the code
59 void SetNewSlope(Float_t f) {fNewSlope = TMath::Abs(f);}
60 void SetMcSlope(Float_t f) {fMcSlope = TMath::Abs(f);}
61
62 void SetMcMinEnergy(Float_t f) {fMcMinEnergy = f;}
63 void SetMcMaxEnergy(Float_t f) {fMcMaxEnergy = f;}
64
65 ClassDef(MFEnergySlope, 0) // A Filter to select events with a given energy slope
66};
67
68#endif
69
70
71
72
73
74
Note: See TracBrowser for help on using the repository browser.