Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garana
garana
Processors
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
8
#include "
garana/Processors/MillHeaderTree.h
"
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'
);
16
VerifyBranches
();
17
MillTrees
();
18
19
}
20
21
22
void
MillHeaderTree::MillTrees
() {
23
24
//only a single entry to process
25
fHeaderOut
->
SetRun
(
fHeaderIn
->
Run
());
26
fHeaderOut
->
SetSubRun
(
fHeaderIn
->
SubRun
());
27
fHeaderOut
->
SetTreeType
(
"flat"
);
28
fHeaderOut
->
Fill
();
29
fHeaderOut
->
Write
();
30
31
delete
fHeaderIn
;
32
delete
fHeaderOut
;
33
}
34
bool
MillHeaderTree::VerifyBranches
() {
35
36
fIsVerified
=
true
;
37
return
true
;
38
}
garana::MillHeaderTree::MillHeaderTree
MillHeaderTree()
Definition:
MillHeaderTree.h:20
garana::HeaderTree::SubRun
Int_t const & SubRun() const
Definition:
HeaderTree.cxx:55
garana
Definition:
FlatDetTree.h:15
garana::HeaderTree::SetSubRun
void SetSubRun(const Int_t subrun)
Definition:
HeaderTree.cxx:114
garana::MillHeaderTree::VerifyBranches
bool VerifyBranches() override
Definition:
MillHeaderTree.cxx:34
garana::TreeReader::Fill
void Fill()
Definition:
TreeReader.cxx:51
garana::Mill::fIsVerified
bool fIsVerified
Definition:
Mill.h:33
garana::HeaderTree::Run
Int_t const & Run() const
Definition:
HeaderTree.cxx:50
garana::HeaderTree
Definition:
HeaderTree.h:16
garana::HeaderTree::SetRun
void SetRun(const Int_t run)
Definition:
HeaderTree.cxx:105
garana::HeaderTree::SetTreeType
void SetTreeType(std::string type)
Definition:
HeaderTree.cxx:120
garana::TreeReader::Write
void Write()
Definition:
TreeReader.cxx:58
MillHeaderTree.h
garana::MillHeaderTree::fHeaderOut
HeaderTree * fHeaderOut
Definition:
MillHeaderTree.h:30
garana::MillHeaderTree::MillTrees
void MillTrees() override
Definition:
MillHeaderTree.cxx:22
garana::MillHeaderTree::fHeaderIn
HeaderTree * fHeaderIn
Definition:
MillHeaderTree.h:29
Generated by
1.8.11