source: trunk/MagicSoft/Mars/mjobs/MJCut.h@ 7062

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