er  dev
ERRunAna.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef ERRunAna_H
10 #define ERRunAna_H
11 
12 #include "TH1.h"
13 #include "TCut.h"
14 #include "TString.h"
15 
16 #include "FairRunAna.h"
17 
18 class ERRunAna : public FairRunAna
19 {
20 
21 public:
22  static ERRunAna* Instance();
23  virtual ~ERRunAna(){}
24 
25  /*Modifiers*/
26  void SetUserCut(TCut cut) {fUserCut = cut;}
27  void WithoutGeant() { fWithoutGeant = true; }
28  /*Accessors*/
29  void Init();
31  void Run(Int_t NStart=0 ,Int_t NStop=0);
32 
33  void MarkFill(Bool_t flag);
34  void HoldEventsCount(){fHoldEventsCount = kTRUE;}
35 public:
36  bool ContentForAnalysis(Int_t iEvent);
37 private:
38  ERRunAna();
39 
40  static ERRunAna* fInstance;
41 
42  static TCut fUserCut;
43  static TH1I* fEventsForProcessing;
44 
45  Bool_t fHoldEventsCount;
46  Bool_t fWithoutGeant = false;
47 
48  ClassDef(ERRunAna ,1)
49 };
50 
51 #endif
void Run(Int_t NStart=0, Int_t NStop=0)
Definition: ERRunAna.cxx:93