1 |
flucke |
1.2 |
#ifndef Alignment_CommonAlignmentAlgorithm_plugins_TreeStruct_h
|
2 |
|
|
#define Alignment_CommonAlignmentAlgorithm_plugins_TreeStruct_h
|
3 |
|
|
|
4 |
|
|
/// structure to store algorithm results in a TTree
|
5 |
|
|
|
6 |
|
|
struct TreeStruct
|
7 |
|
|
{
|
8 |
|
|
TreeStruct() : delta(0.f), error(0.f), paramIndex(0) {}
|
9 |
|
|
TreeStruct(int ind) : delta(0.f), error(0.f), paramIndex(ind) {}
|
10 |
|
|
TreeStruct(float del, float err, int ind) : delta(del), error(err), paramIndex(ind) {}
|
11 |
|
|
|
12 |
|
|
float delta; /// parameter from alignment algorithm (change wrt. start)
|
13 |
|
|
float error; /// error from alignment algorithm
|
14 |
|
|
int paramIndex;/// internal param. index (same index => same delta)
|
15 |
|
|
/// List of leaves to pass as 3rd argument to TTree::Branch(...) if 2nd argument
|
16 |
|
|
/// is a pointer to TreeStruct - keep in synch with data members above!
|
17 |
|
|
static const char* LeafList() {return "delta/F:error/F:paramIndex/I";}
|
18 |
|
|
};
|
19 |
|
|
|
20 |
|
|
#endif
|