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

Last change on this file since 6463 was 6453, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.5 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
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;
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
35public:
36 MJCut(const char *name=NULL, const char *title=NULL);
37 ~MJCut();
38
39 Bool_t ProcessFile(const MDataSet &seq);
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.