a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
InterfaceToClhepLorentzVectorClass.hpp
Go to the documentation of this file.
1/*
2 * InterfaceToClhepLorentzVectorClass.hpp
3 *
4 * Created on: Jan 27, 2012
5 * Author: Ben O'Leary (benjamin.oleary@gmail.com)
6 * Copyright 2012 Ben O'Leary
7 *
8 * This file is part of LesHouchesParserClasses, released under the
9 * GNU General Public License. Please see the accompanying
10 * README.LHPC_CPP.txt file for a full list of files, brief documentation
11 * on how to use these classes, and further details on the license.
12 */
13
14// including this file gives a way of filling CLHEP::HepLorentzVector instances
15// with data from ParticleLine instances.
16
17#ifndef INTERFACETOCLHEPLORENTZVECTORCLASS_HPP_
18#define INTERFACETOCLHEPLORENTZVECTORCLASS_HPP_
19
20#ifdef HEP_LORENTZVECTOR_H
21#include "ParticleLine.hpp"
22
23namespace LHPC
24{
25 namespace LHEF
26 {
28 {
29 public:
30 static void
31 fillFromLine( CLHEP::HepLorentzVector const& vectorToFill,
32 ParticleLine const& lineToConvert );
33 };
35
36
37
38
39 inline void
40 InterfaceToClhepLorentzVector::fillVectorFromParticleLine(
41 CLHEP::HepLorentzVector const& vectorToFill,
42 ParticleLine const& lineToConvert )
43 {
44 vectorToFill.set( lineToConvert.getXMomentum(),
45 lineToConvert.getYMomentum(),
46 lineToConvert.getZMomentum(),
47 lineToConvert.getEnergy() );
48 }
49
50 }
51
52} // end of LHEF namespace
53
54#endif /* HEP_LORENTZVECTOR_H */
55
56#endif /* INTERFACETOCLHEPLORENTZVECTORCLASS_HPP_ */
static void fillFromLine(CLHEP::HepLorentzVector const &vectorToFill, ParticleLine const &lineToConvert)
double getXMomentum() const
double getYMomentum() const
double getZMomentum() const
InterfaceToClhepLorentzVector LineToVec