source: tags/Mars-V0.9.3/mjobs/MJCut.h

Last change on this file was 7109, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MARS_MJCut
2#define MARS_MJCut
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class MTask;
9class MDataSet;
10class MParList;
11class MHAlpha;
12class MH;
13class MWriteRootFile;
14
15class MJCut : public MJob
16{
17private:
18 Bool_t fStoreSummary;
19 Bool_t fStoreResult;
20 Bool_t fWriteOnly;
21 Bool_t fIsWobble;
22 Bool_t fIsMonteCarlo;
23 Bool_t fFullDisplay;
24 //Bool_t fSubstraction;
25
26 TString fNameSummary;
27 TString fNameResult;
28 TString fNameOutput;
29
30 TString fNameHist;
31 TString fNameHistFS;
32
33 //MTask *fEstimateEnergy;
34 MTask *fCalcHadronness;
35
36 TString GetOutputFile(UInt_t num) const;
37 Bool_t CheckEnvLocal();
38 void SetupWriter(MWriteRootFile *write, const char *name) const;
39 Bool_t WriteTasks(UInt_t num, TObjArray &cont) const;
40 Bool_t WriteResult(const MParList &plist, UInt_t num) const;
41 MHAlpha *CreateNewHist(MParList &plist, const char *name="") const;
42 MH *CreateNewHistFS(MParList &plist, const char *name="") const;
43
44 Bool_t CanStoreSummary() const { return !fPathOut.IsNull() && fStoreSummary; }
45 Bool_t CanStoreResult() const { return !fPathOut.IsNull() && fStoreResult; }
46
47public:
48 MJCut(const char *name=NULL, const char *title=NULL);
49 ~MJCut();
50
51 Bool_t Process(const MDataSet &set);
52
53 void EnableStorageOfSummary(Bool_t b=kTRUE) { fStoreSummary = b; } // See SetNameSummary
54 void EnableStorageOfResult(Bool_t b=kTRUE) { fStoreResult = b; } // See SetNameResult
55 void EnableWriteOnly(Bool_t b=kTRUE) { fWriteOnly = b; }
56 void EnableWobbleMode(Bool_t b=kTRUE) { fIsWobble = b; }
57 void EnableMonteCarloMode(Bool_t b=kTRUE) { fIsMonteCarlo = b; }
58 void EnableFullDisplay(Bool_t b=kTRUE) { fFullDisplay = b; }
59 //void EnableSubstraction(Bool_t b=kTRUE) { fSubstraction = b; }
60
61 void SetNameSummaryFile(const char *name="");
62 void SetNameResultFile(const char *name="");
63 void SetNameOutFile(const char *name="") { fNameOutput=name; }
64
65 void SetNameHist(const char *name) { fNameHist=name; }
66 void SetNameHistFS(const char *name) { fNameHistFS=name; }
67
68 //void SetEnergyEstimator(const MTask *task=0);
69 void SetHadronnessCalculator(const MTask *task=0);
70
71 ClassDef(MJCut, 0) // Standard program to perform g/h-separation cuts
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.