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 |
|
---|
19 | TString fNameSummary;
|
---|
20 | TString fNameResult;
|
---|
21 | TString fNameOutput;
|
---|
22 |
|
---|
23 | MTask *fEstimateEnergy;
|
---|
24 | MTask *fCalcHadronness;
|
---|
25 |
|
---|
26 | TString GetOutputFile(UInt_t num) const;
|
---|
27 | Bool_t CheckEnvLocal();
|
---|
28 | void SetupWriter(MWriteRootFile &write, const char *name) const;
|
---|
29 | Bool_t WriteTasks(UInt_t num, TObjArray &cont) const;
|
---|
30 | Bool_t WriteResult(UInt_t num) const;
|
---|
31 |
|
---|
32 | Bool_t CanStoreSummary() const { return !fPathOut.IsNull() && fStoreSummary; }
|
---|
33 | Bool_t CanStoreResult() const { return !fPathOut.IsNull() && fStoreResult; }
|
---|
34 |
|
---|
35 | public:
|
---|
36 | MJCut(const char *name=NULL, const char *title=NULL);
|
---|
37 | ~MJCut();
|
---|
38 |
|
---|
39 | Bool_t ProcessFile(const MDataSet &set);
|
---|
40 |
|
---|
41 | void EnableStorageOfSummary(Bool_t b=kTRUE) { fStoreSummary = b; } // See SetNameSummary
|
---|
42 | void EnableStorageOfResult(Bool_t b=kTRUE) { fStoreResult = b; } // See SetNameResult
|
---|
43 | void EnableWriteOnly(Bool_t b=kTRUE) { fWriteOnly = b; }
|
---|
44 |
|
---|
45 | void SetNameSummaryFile(const char *name="");
|
---|
46 | void SetNameResultFile(const char *name="");
|
---|
47 | void SetNameOutFile(const char *name="") { fNameOutput=name; }
|
---|
48 |
|
---|
49 | void SetEnergyEstimator(const MTask *task=0);
|
---|
50 | void SetHadronnessCalculator(const MTask *task=0);
|
---|
51 |
|
---|
52 | ClassDef(MJCut, 0) // Standard program to perform g/h-seperation cuts
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.