Line | |
---|
1 | #ifndef MARS_MJCut
|
---|
2 | #define MARS_MJCut
|
---|
3 |
|
---|
4 | #ifndef MARS_MJob
|
---|
5 | #include "MJob.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MTask;
|
---|
9 | class MDataSet;
|
---|
10 | class MWriteRootFile;
|
---|
11 |
|
---|
12 | class MJCut : public MJob
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | Bool_t fStoreSummary;
|
---|
16 | Bool_t fStoreResult;
|
---|
17 | Bool_t fWriteOnly;
|
---|
18 | Bool_t fIsWobble;
|
---|
19 | Bool_t fFullDisplay;
|
---|
20 |
|
---|
21 | TString fNameSummary;
|
---|
22 | TString fNameResult;
|
---|
23 | TString fNameOutput;
|
---|
24 |
|
---|
25 | MTask *fEstimateEnergy;
|
---|
26 | MTask *fCalcHadronness;
|
---|
27 |
|
---|
28 | TString GetOutputFile(UInt_t num) const;
|
---|
29 | Bool_t CheckEnvLocal();
|
---|
30 | void SetupWriter(MWriteRootFile *write, const char *name) const;
|
---|
31 | Bool_t WriteTasks(UInt_t num, TObjArray &cont) const;
|
---|
32 | Bool_t WriteResult(UInt_t num) const;
|
---|
33 |
|
---|
34 | Bool_t CanStoreSummary() const { return !fPathOut.IsNull() && fStoreSummary; }
|
---|
35 | Bool_t CanStoreResult() const { return !fPathOut.IsNull() && fStoreResult; }
|
---|
36 |
|
---|
37 | public:
|
---|
38 | MJCut(const char *name=NULL, const char *title=NULL);
|
---|
39 | ~MJCut();
|
---|
40 |
|
---|
41 | Bool_t ProcessFile(const MDataSet &set);
|
---|
42 |
|
---|
43 | void EnableStorageOfSummary(Bool_t b=kTRUE) { fStoreSummary = b; } // See SetNameSummary
|
---|
44 | void EnableStorageOfResult(Bool_t b=kTRUE) { fStoreResult = b; } // See SetNameResult
|
---|
45 | void EnableWriteOnly(Bool_t b=kTRUE) { fWriteOnly = b; }
|
---|
46 | void EnableWobbleMode(Bool_t b=kTRUE) { fIsWobble = b; }
|
---|
47 | void EnableFullDisplay(Bool_t b=kTRUE) { fFullDisplay = b; }
|
---|
48 |
|
---|
49 | void SetNameSummaryFile(const char *name="");
|
---|
50 | void SetNameResultFile(const char *name="");
|
---|
51 | void SetNameOutFile(const char *name="") { fNameOutput=name; }
|
---|
52 |
|
---|
53 | void SetEnergyEstimator(const MTask *task=0);
|
---|
54 | void SetHadronnessCalculator(const MTask *task=0);
|
---|
55 |
|
---|
56 | ClassDef(MJCut, 0) // Standard program to perform g/h-separation cuts
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.