FairShip
Loading...
Searching...
No Matches
CaloScoringPlane.cxx
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#include "CaloScoringPlane.h"
6
7#include "ShipDetectorList.h"
8
10 : ScoringPlane("CaloScoringPlane", kTRUE, kCaloScoringPlane) {
11 fLineColor = kOrange;
12}
13
14CaloScoringPlane::CaloScoringPlane(const char* name, Bool_t active)
15 : ScoringPlane(name, active, kCaloScoringPlane) {
16 fLineColor = kOrange;
17}
18
20 // A single plane on the beam axis, set by SetZposition and SetBoxDimensions.
21 AddPlane("CaloScoringPlane", 0., 0., fZPos, fXSize, fYSize, fZSize);
22 ScoringPlane::ConstructGeometry();
23}
@ kCaloScoringPlane
void ConstructGeometry() override
Double_t fYSize
full width
Double_t fZSize
full height
void AddPlane(const char *name, Double_t x, Double_t y, Double_t z, Double_t sizeX, Double_t sizeY, Double_t sizeZ, const std::vector< Int_t > &absPdgCodes={}, Bool_t keepTracks=kTRUE)