The Gaudi Framework  master (37c0b60a)
MCHit.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 #include <vector>
14 
16 
20  struct MCHit {
21  // This default constructor is neede priori to C++20 in order to allow
22  // emplace_back for MCHits
23  MCHit( float _x, float _y ) : x( _x ), y( _y ) {}
24  float x, y;
25  };
26 
28 
29 } // namespace Gaudi::Example::TinyExperiment
Gaudi::Example::TinyExperiment::MCHit::x
float x
Definition: MCHit.h:24
Gaudi::Example::TinyExperiment::MCHit::y
float y
Definition: MCHit.h:24
std::vector
STL class.
Gaudi::Example::TinyExperiment::MCHit
most simple MC Hit ever : in 2D space, and thus fully defined by x and y
Definition: MCHit.h:20
Gaudi::Example::TinyExperiment::MCHit::MCHit
MCHit(float _x, float _y)
Definition: MCHit.h:23
Gaudi::Example::TinyExperiment
Definition: CheckerAlg.cpp:20