Belle II Software development
MCTrajectoryPoint.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10#ifndef SIMULATION_DATAOBJECTS_MCTRAJECTORYPOINT_H
11#define SIMULATION_DATAOBJECTS_MCTRAJECTORYPOINT_H
12
13namespace Belle2 {
21 MCTrajectoryPoint(float x_ = 0, float y_ = 0, float z_ = 0, float px_ = 0, float py_ = 0, float pz_ = 0):
22 x(x_), y(y_), z(z_), px(px_), py(py_), pz(pz_) {}
23 float x;
24 float y;
25 float z;
26 float px;
27 float py;
28 float pz;
29 };
31} //Belle2 namespace
32
33#endif // SIMULATION_DATAOBJECTS_TRAJECTORYPOINT_H
Abstract base class for different kinds of events.
Small struct to encode a position/momentum without additional overhead.
MCTrajectoryPoint(float x_=0, float y_=0, float z_=0, float px_=0, float py_=0, float pz_=0)
Constructor to allow initialization.
float py
momentum along y
float px
momentum along x
float pz
momentum along z