MillHeaderTree.cxx
Go to the documentation of this file.
1 /*
2  * MillHeaderTree.cxx
3  *
4  * Created on: Feb 15, 2021
5  * Author: chilgenb
6  */
7 
9 
10 using namespace garana;
11 
12 MillHeaderTree::MillHeaderTree(TTree* treeIn, TTree* treeOut)
13 {
14  fHeaderIn = new HeaderTree(treeIn,'r');
15  fHeaderOut = new HeaderTree(treeOut,'w');
17  MillTrees();
18 
19 }
20 
21 
23 
24  //only a single entry to process
27  fHeaderOut->SetTreeType("flat");
28  fHeaderOut->Fill();
29  fHeaderOut->Write();
30 
31  delete fHeaderIn;
32  delete fHeaderOut;
33 }
35 
36  fIsVerified = true;
37  return true;
38 }
Int_t const & SubRun() const
Definition: HeaderTree.cxx:55
void SetSubRun(const Int_t subrun)
Definition: HeaderTree.cxx:114
bool VerifyBranches() override
bool fIsVerified
Definition: Mill.h:33
Int_t const & Run() const
Definition: HeaderTree.cxx:50
void SetRun(const Int_t run)
Definition: HeaderTree.cxx:105
void SetTreeType(std::string type)
Definition: HeaderTree.cxx:120
void MillTrees() override