The Gaudi Framework
master (37c0b60a)
Collision.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 <
GaudiKernel/DataObject.h
>
14
#include <
GaudiKernel/Kernel.h
>
15
#include <
GaudiKernel/StreamBuffer.h
>
16
17
namespace
Gaudi
{
18
namespace
TestSuite
{
19
20
// CLID definition
21
static
const
CLID
& CLID_Collision = 1111;
22
26
class
GAUDI_API
Collision
:
public
DataObject
{
27
public
:
29
Collision
() =
default
;
30
Collision
(
int
num ) :
DataObject
(), m_collision( num ) {}
31
33
const
CLID
&
clID
()
const override
{
return
classID(); }
34
static
const
CLID
&
classID
() {
return
CLID_Collision; }
35
36
void
setCollision
(
int
num ) { m_collision = num; }
37
int
collision
()
const
{
return
m_collision; }
38
// std::vector<double, CLHEP::HepGenMatrix::Alloc<double,25> >& matrix() {
39
// return m_matrix;
40
// }
42
StreamBuffer
& serialize(
StreamBuffer
&
s
)
const
;
44
StreamBuffer
& serialize(
StreamBuffer
&
s
);
45
46
private
:
48
int
m_collision{ 0 };
49
// std::vector<double, CLHEP::HepGenMatrix::Alloc<double,25> > m_matrix;
50
};
51
53
inline
StreamBuffer
&
Collision::serialize
(
StreamBuffer
&
s
)
const
{
return
s
<<
m_collision
; }
54
56
inline
StreamBuffer
&
Collision::serialize
(
StreamBuffer
&
s
) {
return
s
>>
m_collision
; }
57
}
// namespace TestSuite
58
}
// namespace Gaudi
gaudirun.s
string s
Definition:
gaudirun.py:346
TestSuite
#define TestSuite
Definition:
MakeAndConsume.cpp:658
StreamBuffer.h
Gaudi::TestSuite::Collision
Definition:
Collision.h:26
Gaudi::TestSuite::Collision::classID
static const CLID & classID()
Definition:
Collision.h:34
StreamBuffer
Definition:
StreamBuffer.h:52
Gaudi::TestSuite::Collision::Collision
Collision()=default
Constructors.
Gaudi::TestSuite::Collision::serialize
StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
Definition:
Collision.h:53
CLID
unsigned int CLID
Class ID definition.
Definition:
ClassID.h:18
Gaudi::TestSuite::Collision::Collision
Collision(int num)
Definition:
Collision.h:30
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition:
__init__.py:1
DataObject.h
Kernel.h
DataObject
Definition:
DataObject.h:36
Gaudi::TestSuite::Collision::m_collision
int m_collision
Collision number.
Definition:
Collision.h:48
Gaudi::TestSuite::Collision::collision
int collision() const
Definition:
Collision.h:37
Gaudi::TestSuite::Collision::setCollision
void setCollision(int num)
Definition:
Collision.h:36
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:81
Gaudi::TestSuite::Collision::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition:
Collision.h:33
GaudiTestSuite
include
GaudiTestSuite
Collision.h
Generated on Thu Dec 19 2024 15:35:06 for The Gaudi Framework by
1.8.18