Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:08

0001 #ifndef Alignment_CommonAlignmentAlgorithm_plugins_TreeStruct_h
0002 #define Alignment_CommonAlignmentAlgorithm_plugins_TreeStruct_h
0003 
0004 /// structure to store algorithm results in a TTree
0005 
0006 struct TreeStruct {
0007   TreeStruct() : delta(0.f), error(0.f), paramIndex(0) {}
0008   TreeStruct(int ind) : delta(0.f), error(0.f), paramIndex(ind) {}
0009   TreeStruct(float del, float err, int ind) : delta(del), error(err), paramIndex(ind) {}
0010 
0011   float delta;     /// parameter from alignment algorithm (change wrt. start)
0012   float error;     /// error from alignment algorithm
0013   int paramIndex;  /// internal param. index (same index => same delta)
0014   /// List of leaves to pass as 3rd argument to TTree::Branch(...) if 2nd argument
0015   /// is a pointer to TreeStruct - keep in synch with data members above!
0016   static const char* LeafList() { return "delta/F:error/F:paramIndex/I"; }
0017 };
0018 
0019 #endif