Mill.h
Go to the documentation of this file.
1 /*
2  * Mill.h
3  *
4  * Created on: Feb 14, 2021
5  * Author: chilgenb
6  */
7 
8 #ifndef GARANA_MILL_H_
9 #define GARANA_MILL_H_
10 
11 #include "garana/Base/TreeReader.h"
12 #include <TLorentzVector.h>
13 #include <string>
14 
15 namespace garana {
16 
17  class Mill {// : public TreeReader {
18 
19  public:
20 
21  virtual ~Mill(){};
22 
23  //SetBranchAddrs passed from TreeReader
24 
25  virtual void MillTrees() = 0; //Fill out tree for given entry
26  virtual bool VerifyBranches() = 0; //check our expectations vs. input tree for genTree branches
27 
28  inline bool IsVerified() const { return fIsVerified; }
29  std::string CharStarToString(const char* cstr);
30 
31  protected:
32 
33  bool fIsVerified = false;
34 
35  TTree* fTreeOut = nullptr;
36  TFile* fOutfile = nullptr;
37 
38  };//class Mill
39 
40 } /* namespace garana */
41 
42 #endif /* GARANA_MILL_H_ */
TFile * fOutfile
Definition: Mill.h:36
virtual ~Mill()
Definition: Mill.h:21
std::string string
Definition: nybbler.cc:12
virtual void MillTrees()=0
std::string CharStarToString(const char *cstr)
Definition: Mill.cxx:12
bool fIsVerified
Definition: Mill.h:33
virtual bool VerifyBranches()=0
bool IsVerified() const
Definition: Mill.h:28
TTree * fTreeOut
Definition: Mill.h:35