source: tags/Mars-V0.9.1/mjobs/MJCut.h

Last change on this file was 6907, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.7 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 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
37public:
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.