CbmRoot
Loading...
Searching...
No Matches
CbmLitFieldGridCreator.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
14#ifndef CBMLITFIELDGRIDCREATOR_H_
15#define CBMLITFIELDGRIDCREATOR_H_
16
17#include "LitFieldGrid.h"
18
19#include <vector>
20class FairField;
21
23 public:
28
33
38 void SetXangle(float xangle) { fXangle = xangle; }
39
44 void SetYangle(float yangle) { fYangle = yangle; }
45
50 void SetCellSizeX(int cellSizeX) { fCellSizeX = cellSizeX; }
51
56 void SetCellSizeY(int cellSizeY) { fCellSizeY = cellSizeY; }
57
65
66 private:
67 FairField* fField; // Magnetic field
68
69 float fXangle; // Acceptance angle for X [grad]
70 float fYangle; // Acceptance angle for Y [grad]
71
72 float fCellSizeX; // Cell size along X [cm]
73 float fCellSizeY; // Cell size along Y [cm]
74};
75
76#endif /* CBMLITFIELDGRIDCREATOR_H_ */
Class stores a grid of magnetic field values in XY slice at Z position.
void SetYangle(float yangle)
Set acceptance angle for Y.
void SetXangle(float xangle)
Set acceptance angle for X.
virtual ~CbmLitFieldGridCreator()
Destructor.
void SetCellSizeX(int cellSizeX)
Set cell size for X.
void CreateGrid(fscal Z, lit::parallel::LitFieldGrid &grid)
Main function which creates grid with magnetic field values in (X, Y) slice.
void SetCellSizeY(int cellSizeY)
Set cell size for Y.
Class stores a grid of magnetic field values in XY slice at Z position.