Project
Loading...
Searching...
No Matches
Composition.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include "FOCALBase/Geometry.h"
13
14using namespace o2::focal;
15
16Composition::Composition(std::string material, int layer, int stack, int id,
17 float cx, float cy, float cz, float dx, float dy, float dz) : mMaterial(material),
18 mLayer(layer),
19 mStack(stack),
20 mId(id),
21 mCenterX(cx),
22 mCenterY(cy),
23 mCenterZ(cz),
24 mSizeX(dx),
25 mSizeY(dy),
26 mSizeZ(dz)
27{
28 // Default constructor
29}
30
31Composition::Composition(Composition* comp) : mMaterial(nullptr),
32 mLayer(0),
33 mStack(0),
34 mId(0),
35 mCenterX(0),
36 mCenterY(0),
37 mCenterZ(0),
38 mSizeX(0),
39 mSizeY(0),
40 mSizeZ(0)
41{
42 *this = comp;
43}
uint32_t stack
Definition RawData.h:1
GLenum GLuint GLint GLint layer
Definition glcorearb.h:1310
GLuint id
Definition glcorearb.h:650