master
a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models
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
23
namespace
LHPC
24
{
25
namespace
LHEF
26
{
27
class
InterfaceToClhepLorentzVector
28
{
29
public
:
30
static
void
31
fillFromLine
( CLHEP::HepLorentzVector
const
& vectorToFill,
32
ParticleLine
const
& lineToConvert );
33
};
34
typedef
InterfaceToClhepLorentzVector
LineToVec
;
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_ */
ParticleLine.hpp
LHPC::LHEF::InterfaceToClhepLorentzVector
Definition:
InterfaceToClhepLorentzVectorClass.hpp:28
LHPC::LHEF::InterfaceToClhepLorentzVector::fillFromLine
static void fillFromLine(CLHEP::HepLorentzVector const &vectorToFill, ParticleLine const &lineToConvert)
LHPC::LHEF::ParticleLine
Definition:
ParticleLine.hpp:30
LHPC::LHEF::ParticleLine::getXMomentum
double getXMomentum() const
Definition:
ParticleLine.hpp:355
LHPC::LHEF::ParticleLine::getEnergy
double getEnergy() const
Definition:
ParticleLine.hpp:373
LHPC::LHEF::ParticleLine::getYMomentum
double getYMomentum() const
Definition:
ParticleLine.hpp:361
LHPC::LHEF::ParticleLine::getZMomentum
double getZMomentum() const
Definition:
ParticleLine.hpp:367
LHPC::LHEF::LineToVec
InterfaceToClhepLorentzVector LineToVec
Definition:
InterfaceToClhepLorentzVectorClass.hpp:34
LHPC
Definition:
FourMomentum.hpp:24
LHPC
include
LHEF
InterfaceToClhepLorentzVectorClass.hpp
Generated on Mon Aug 4 2025 for $\texttt{HEPfit}$ using
1.9.2