ATLAS Offline Software
CoordTransformBranch.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTESTER_MUONCOORDTRANSFORMBRANCH_H
5 #define MUONTESTER_MUONCOORDTRANSFORMBRANCH_H
6 
10 
11 namespace MuonVal {
12 
16 public:
17  CoordTransformBranch(MuonTesterTree& tree, const std::string& vec_name);
18  void operator=(const Amg::Transform3D& vec);
19  void set(const Amg::Transform3D& vec);
20 
21  bool fill(const EventContext&) override final;
22  bool init() override final;
23 
24 private:
26 };
29  public:
30  CoordSystemsBranch(MuonTesterTree& tree, const std::string& vec_name);
31  void operator+=(const Amg::Transform3D& trans);
32  void push_back(const Amg::Transform3D& trans);
33  void set(const Amg::Transform3D& trans, size_t pos);
34 
35  size_t size() const;
36  bool fill(const EventContext&) override final;
37  bool init() override final;
38  private:
43 };
44 
45 
46 }
47 #endif
MuonVal::CoordSystemsBranch::fill
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition: CoordTransformBranch.cxx:24
MuonVal::CoordSystemsBranch::m_translation
MuonVal::ThreeVectorBranch m_translation
Definition: CoordTransformBranch.h:39
MuonVal::MuonTesterBranch
Definition: MuonTesterBranch.h:21
MuonVal::CoordSystemsBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition: CoordTransformBranch.cxx:25
MuonVal::CoordTransformBranch::m_transform
ThreeVectorBranch m_transform
Definition: CoordTransformBranch.h:25
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonTesterTree.h
ThreeVectorBranch.h
MuonVal::CoordSystemsBranch::operator+=
void operator+=(const Amg::Transform3D &trans)
Definition: CoordTransformBranch.cxx:27
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonVal::CoordTransformBranch::CoordTransformBranch
CoordTransformBranch(MuonTesterTree &tree, const std::string &vec_name)
Definition: CoordTransformBranch.cxx:7
MuonVal::CoordSystemsBranch::m_linearCol2
MuonVal::ThreeVectorBranch m_linearCol2
Definition: CoordTransformBranch.h:41
MuonVal::CoordSystemsBranch::set
void set(const Amg::Transform3D &trans, size_t pos)
Definition: CoordTransformBranch.cxx:30
MuonVal::CoordTransformBranch
Helper class to dump the Amg::Transformations into a single three vector branch The first entry is th...
Definition: CoordTransformBranch.h:15
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonVal::CoordTransformBranch::operator=
void operator=(const Amg::Transform3D &vec)
Definition: CoordTransformBranch.cxx:12
MuonVal::CoordSystemsBranch::size
size_t size() const
Definition: CoordTransformBranch.cxx:26
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
MuonVal::CoordSystemsBranch::m_linearCol3
MuonVal::ThreeVectorBranch m_linearCol3
Definition: CoordTransformBranch.h:42
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition: MuonTesterBranch.cxx:51
MuonVal::CoordTransformBranch::set
void set(const Amg::Transform3D &vec)
Definition: CoordTransformBranch.cxx:14
MuonVal
Class to store array like branches into the n-tuples.
Definition: MuonTPMetaDataAlg.cxx:25
MuonVal::CoordSystemsBranch
Helper class to dump the Amg::Transformations into 4 three vector branches.
Definition: CoordTransformBranch.h:28
MuonVal::CoordSystemsBranch::m_linearCol1
MuonVal::ThreeVectorBranch m_linearCol1
Definition: CoordTransformBranch.h:40
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonVal::CoordSystemsBranch::CoordSystemsBranch
CoordSystemsBranch(MuonTesterTree &tree, const std::string &vec_name)
Definition: CoordTransformBranch.cxx:21
GeoPrimitivesHelpers.h
MuonVal::CoordSystemsBranch::push_back
void push_back(const Amg::Transform3D &trans)
Definition: CoordTransformBranch.cxx:28
MuonVal::CoordTransformBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition: CoordTransformBranch.cxx:11
MuonVal::CoordTransformBranch::fill
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition: CoordTransformBranch.cxx:10