The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
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
14#include <GaudiKernel/Kernel.h>
16
17namespace Gaudi {
18 namespace TestSuite {
19
20 // CLID definition
21 static const CLID& CLID_Collision = 1111;
22
25
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
57 } // namespace TestSuite
58} // namespace Gaudi
unsigned int CLID
Class ID definition.
Definition ClassID.h:16
#define GAUDI_API
Definition Kernel.h:49
DataObject()
Standard Constructor.
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition Collision.h:33
void setCollision(int num)
Definition Collision.h:36
int m_collision
Collision number.
Definition Collision.h:48
Collision()=default
Constructors.
static const CLID & classID()
Definition Collision.h:34
StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
Definition Collision.h:53
The stream buffer is a small object collecting object data.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1