ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
FPTracker::MagnetData Struct Reference

#include <MagnetData.h>

Collaboration diagram for FPTracker::MagnetData:

Public Types

typedef std::vector< std::vector< double > > ArrayDouble2D
 
typedef std::vector< std::vector< int > > ArrayInt2D
 
typedef std::vector< std::vector< std::vector< double > > > ArrayDouble3D
 

Public Member Functions

 MagnetData ()
 
void setNumberOfMagnets (int)
 
std::string toString () const
 

Public Attributes

int nmagnet
 
ArrayDouble2D magnet_x
 
ArrayDouble2D magnet_y
 
ArrayDouble2D magnet_z
 
ArrayDouble2D magnet_length
 
ArrayDouble2D magnet_strength
 
ArrayDouble2D magnet_xb
 
ArrayDouble3D magnet_aperA
 
ArrayInt2D magnet_type
 
ArrayInt2D magnet_aperclass
 
float x0IP
 
float y0IP
 
float ax0IP
 
float ay0IP
 

Static Public Attributes

static const int nside = 2
 
static const int nmagapergeo = 4
 

Detailed Description

Definition at line 11 of file MagnetData.h.

Member Typedef Documentation

◆ ArrayDouble2D

typedef std::vector<std::vector<double> > FPTracker::MagnetData::ArrayDouble2D

Definition at line 17 of file MagnetData.h.

◆ ArrayDouble3D

typedef std::vector<std::vector<std::vector<double> > > FPTracker::MagnetData::ArrayDouble3D

Definition at line 19 of file MagnetData.h.

◆ ArrayInt2D

typedef std::vector<std::vector<int> > FPTracker::MagnetData::ArrayInt2D

Definition at line 18 of file MagnetData.h.

Constructor & Destructor Documentation

◆ MagnetData()

FPTracker::MagnetData::MagnetData ( )

Definition at line 9 of file MagnetData.cxx.

9  :
10  magnet_x (std::vector< std::vector<double> >(nside, std::vector<double>())),
11  magnet_y (std::vector< std::vector<double> >(nside, std::vector<double>())),
12  magnet_z (std::vector< std::vector<double> >(nside, std::vector<double>())),
13  magnet_length (std::vector< std::vector<double> >(nside, std::vector<double>())),
14  magnet_strength (std::vector< std::vector<double> >(nside, std::vector<double>())),
15  magnet_xb (std::vector< std::vector<double> >(nside, std::vector<double>())),
16  magnet_aperA (std::vector< std::vector<std::vector<double> > >(nside,
17  std::vector< std::vector<double> >(nmagapergeo,
18  std::vector<double>()
19  )
20  )
21  ),
22 
23  magnet_type (std::vector< std::vector<int> >(nside, std::vector<int>())),
24  magnet_aperclass(std::vector< std::vector<int> >(nside, std::vector<int>())){
25 
26  nmagnet = 0;
27 
28  x0IP = 0;
29  y0IP = 0;
30  ax0IP = 0;
31  ay0IP = 0;
32  }

Member Function Documentation

◆ setNumberOfMagnets()

void FPTracker::MagnetData::setNumberOfMagnets ( int  nmags)

Definition at line 35 of file MagnetData.cxx.

35  {
36  for(int is = 0; is<nside; ++is){
37  magnet_x [is].reserve(nmags);
38  magnet_y [is].reserve(nmags);
39  magnet_z [is].reserve(nmags);
40  magnet_length [is].reserve(nmags);
41  magnet_strength [is].reserve(nmags);
42  magnet_xb [is].reserve(nmags);
43  magnet_type [is].reserve(nmags);
44  magnet_aperclass[is].reserve(nmags);
45 
46  for(int ig = 0; ig<nmagapergeo; ++ig){magnet_aperA[is][ig].reserve(nmags); }
47  }
48  nmagnet = nmags;
49 
50  }

◆ toString()

std::string FPTracker::MagnetData::toString ( ) const

Definition at line 52 of file MagnetData.cxx.

52  {
53  std::string total = "\n\n------------ MagnetData ----------\n\n";
54  total += "\nmagnet_x:\n";
55  total += array2DToString(magnet_x);
56  total += "\nmagnet_y:\n";
57  total += array2DToString(magnet_y);
58  total += "\nmagnet_z:\n";
59  total += array2DToString(magnet_z);
60  total += "\nmagnet_length:\n";
62  total += "\nmagnet_strength:\n";
64  total += "\nmagnet_xb:\n";
65  total += array2DToString(magnet_xb);
66  total += "\nmagnet_type:\n";
67  total += array2DToString(magnet_type);
68  total += "\nmagnet_aperclass:\n";
70  total += "\nmagnet_aperA:\n";
71  total += array3DToString(magnet_aperA);
72  return total;
73 
74  }

Member Data Documentation

◆ ax0IP

float FPTracker::MagnetData::ax0IP

Definition at line 37 of file MagnetData.h.

◆ ay0IP

float FPTracker::MagnetData::ay0IP

Definition at line 38 of file MagnetData.h.

◆ magnet_aperA

ArrayDouble3D FPTracker::MagnetData::magnet_aperA

Definition at line 28 of file MagnetData.h.

◆ magnet_aperclass

ArrayInt2D FPTracker::MagnetData::magnet_aperclass

Definition at line 31 of file MagnetData.h.

◆ magnet_length

ArrayDouble2D FPTracker::MagnetData::magnet_length

Definition at line 24 of file MagnetData.h.

◆ magnet_strength

ArrayDouble2D FPTracker::MagnetData::magnet_strength

Definition at line 25 of file MagnetData.h.

◆ magnet_type

ArrayInt2D FPTracker::MagnetData::magnet_type

Definition at line 30 of file MagnetData.h.

◆ magnet_x

ArrayDouble2D FPTracker::MagnetData::magnet_x

Definition at line 21 of file MagnetData.h.

◆ magnet_xb

ArrayDouble2D FPTracker::MagnetData::magnet_xb

Definition at line 26 of file MagnetData.h.

◆ magnet_y

ArrayDouble2D FPTracker::MagnetData::magnet_y

Definition at line 22 of file MagnetData.h.

◆ magnet_z

ArrayDouble2D FPTracker::MagnetData::magnet_z

Definition at line 23 of file MagnetData.h.

◆ nmagapergeo

const int FPTracker::MagnetData::nmagapergeo = 4
static

Definition at line 15 of file MagnetData.h.

◆ nmagnet

int FPTracker::MagnetData::nmagnet

Definition at line 13 of file MagnetData.h.

◆ nside

const int FPTracker::MagnetData::nside = 2
static

Definition at line 14 of file MagnetData.h.

◆ x0IP

float FPTracker::MagnetData::x0IP

Definition at line 35 of file MagnetData.h.

◆ y0IP

float FPTracker::MagnetData::y0IP

Definition at line 36 of file MagnetData.h.


The documentation for this struct was generated from the following files:
FPTracker::MagnetData::x0IP
float x0IP
Definition: MagnetData.h:35
FPTracker::MagnetData::magnet_xb
ArrayDouble2D magnet_xb
Definition: MagnetData.h:26
FPTracker::MagnetData::magnet_length
ArrayDouble2D magnet_length
Definition: MagnetData.h:24
FPTracker::MagnetData::magnet_aperA
ArrayDouble3D magnet_aperA
Definition: MagnetData.h:28
FPTracker::MagnetData::ay0IP
float ay0IP
Definition: MagnetData.h:38
FPTracker::MagnetData::magnet_z
ArrayDouble2D magnet_z
Definition: MagnetData.h:23
FPTracker::MagnetData::magnet_y
ArrayDouble2D magnet_y
Definition: MagnetData.h:22
FPTracker::MagnetData::magnet_aperclass
ArrayInt2D magnet_aperclass
Definition: MagnetData.h:31
FPTracker::MagnetData::magnet_x
ArrayDouble2D magnet_x
Definition: MagnetData.h:21
FPTracker::array2DToString
std::string array2DToString(const Array2D &arr)
Definition: DataDumperHelpers.h:43
FPTracker::MagnetData::nmagapergeo
static const int nmagapergeo
Definition: MagnetData.h:15
FPTracker::MagnetData::ax0IP
float ax0IP
Definition: MagnetData.h:37
FPTracker::MagnetData::nside
static const int nside
Definition: MagnetData.h:14
FPTracker::MagnetData::nmagnet
int nmagnet
Definition: MagnetData.h:13
FPTracker::array3DToString
std::string array3DToString(const Array3D &arr)
Definition: DataDumperHelpers.h:56
FPTracker::MagnetData::magnet_type
ArrayInt2D magnet_type
Definition: MagnetData.h:30
FPTracker::MagnetData::magnet_strength
ArrayDouble2D magnet_strength
Definition: MagnetData.h:25
FPTracker::MagnetData::y0IP
float y0IP
Definition: MagnetData.h:36