Public Member Functions | Private Attributes | List of all members
garana::MillHeaderTree Class Reference

#include <MillHeaderTree.h>

Inheritance diagram for garana::MillHeaderTree:
garana::Mill

Public Member Functions

 MillHeaderTree ()
 
 MillHeaderTree (TTree *treeIn, TTree *treeOut)
 
void MillTrees () override
 
bool VerifyBranches () override
 
- Public Member Functions inherited from garana::Mill
virtual ~Mill ()
 
bool IsVerified () const
 
std::string CharStarToString (const char *cstr)
 

Private Attributes

HeaderTreefHeaderIn = nullptr
 
HeaderTreefHeaderOut = nullptr
 
std::string fTreeType = ""
 

Additional Inherited Members

- Protected Attributes inherited from garana::Mill
bool fIsVerified = false
 
TTree * fTreeOut = nullptr
 
TFile * fOutfile = nullptr
 

Detailed Description

Definition at line 17 of file MillHeaderTree.h.

Constructor & Destructor Documentation

garana::MillHeaderTree::MillHeaderTree ( )
inline

Definition at line 20 of file MillHeaderTree.h.

20 {}
MillHeaderTree::MillHeaderTree ( TTree *  treeIn,
TTree *  treeOut 
)

Definition at line 12 of file MillHeaderTree.cxx.

13 {
14  fHeaderIn = new HeaderTree(treeIn,'r');
15  fHeaderOut = new HeaderTree(treeOut,'w');
17  MillTrees();
18 
19 }
bool VerifyBranches() override
void MillTrees() override

Member Function Documentation

void MillHeaderTree::MillTrees ( )
overridevirtual

Implements garana::Mill.

Definition at line 22 of file MillHeaderTree.cxx.

22  {
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 }
Int_t const & SubRun() const
Definition: HeaderTree.cxx:55
void SetSubRun(const Int_t subrun)
Definition: HeaderTree.cxx:114
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
bool MillHeaderTree::VerifyBranches ( )
overridevirtual

Implements garana::Mill.

Definition at line 34 of file MillHeaderTree.cxx.

34  {
35 
36  fIsVerified = true;
37  return true;
38 }
bool fIsVerified
Definition: Mill.h:33

Member Data Documentation

HeaderTree* garana::MillHeaderTree::fHeaderIn = nullptr
private

Definition at line 29 of file MillHeaderTree.h.

HeaderTree* garana::MillHeaderTree::fHeaderOut = nullptr
private

Definition at line 30 of file MillHeaderTree.h.

std::string garana::MillHeaderTree::fTreeType = ""
private

Definition at line 34 of file MillHeaderTree.h.


The documentation for this class was generated from the following files: