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

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