CbmRoot
Loading...
Searching...
No Matches
CbmMuchModule.cxx
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 St. Petersburg Polytechnic University, St. Petersburg
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Mikhail Ryzhinskiy [committer], Florian Uhlig */
4
13#include "CbmMuchModule.h"
14
15#include "CbmMuchAddress.h" // for CbmMuchAddress
16
17#include <TPave.h> // for TPave
18#include <TVector3.h> // for TVector3
19
20// ----- Default constructor -------------------------------------------
22 : TPave()
23 , fDetectorId(0)
24 , fDetectorType(-1)
25 , fCutRadius(0)
26 , fSize(TVector3())
27 , fPosition(TVector3())
28 , fPoints(nullptr)
29 , fHits(nullptr)
30 , fClusters(nullptr)
31 , fDigis()
32{
33}
34// -------------------------------------------------------------------------
35
36
37// ----- Standard constructor ------------------------------------------
38CbmMuchModule::CbmMuchModule(Int_t iStation, Int_t iLayer, Bool_t iSide, Int_t iModule, TVector3 position,
39 TVector3 size, Double_t cutRadius)
40 : TPave(position[0] - size[0] / 2, position[1] - size[1] / 2, position[0] + size[0] / 2, position[1] + size[1] / 2, 1)
41 , fDetectorId(CbmMuchAddress::GetAddress(iStation, iLayer, iSide, iModule))
42 , fDetectorType(-1)
43 , fCutRadius(cutRadius)
44 , fSize(size)
45 , fPosition(position)
46 , fPoints(nullptr)
47 , fHits(nullptr)
48 , fClusters(nullptr)
49 , fDigis()
50{
51}
52// -------------------------------------------------------------------------
53
54
ClassImp(CbmConverterManager)
static constexpr size_t size()
Definition KfSimdPseudo.h:2
Interface class to unique address for the MUCH.