ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
AFPProtonTransportTool Class Reference

Class for the tool that parameterizes proton transport. More...

#include <AFPProtonTransportTool.h>

Inheritance diagram for AFPProtonTransportTool:
Collaboration diagram for AFPProtonTransportTool:

Public Member Functions

 AFPProtonTransportTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~AFPProtonTransportTool ()
 
virtual StatusCode initialize () override
 
virtual StatusCode load () override
 Loads parametrization file and gets the value of positions, slopes and nominal energy. It takes as argument the path to the txt file containing this information. More...
 
virtual void setParamFile (const std::string &paramFile) override
 
virtual double x (double x0, double y0, double z0, double sx0, double sy0, double E) const override
 Evaluates value of the horizontal position equation. It takes as arguments the initial position, slope and nominal beam energy. More...
 
double y (double x0, double y0, double z0, double sx0, double sy0, double E) const
 Evaluates value of vertical position equation. It takes as arguments the initial position, slope and nominal beam energy. More...
 
double sx (double x0, double y0, double z0, double sx0, double sy0, double E) const
 Evaluates value of horizontal slope equation. It takes as arguments the initial position, slope and nominal beam energy. More...
 
double sy (double x0, double y0, double z0, double sx0, double sy0, double E) const
 Evaluates value of vertical slope equation. It takes as arguments the initial position, slope and nominal beam energy. More...
 
double parametrisationPosition () const
 Returns the detector position for which parametrization was performed. More...
 
double energy () const
 Returns nominal beam energy for which parametrization was performed. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

AFPProtonTransportParamm_x_position = nullptr
 AFPProtonTransportParam object used for the x position evaluation. More...
 
AFPProtonTransportParamm_y_position = nullptr
 AFPProtonTransportParam object used for the y position evaluation. More...
 
AFPProtonTransportParamm_x_slope = nullptr
 AFPProtonTransportParam object used for the x slope. More...
 
AFPProtonTransportParamm_y_slope = nullptr
 AFPProtonTransportParam object used for the y slope. More...
 
Gaudi::Property< double > m_xSlopeInitIP {this, "xSlopeInitIp", 0, "Initial x slope at IP"}
 Beam crossing angle from x axis at the interaction point. More...
 
Gaudi::Property< double > m_ySlopeInitIP {this, "ySlopeInitIp", 0, "Initial y slope at IP"}
 Beam crossing angle from y axis at the interaction point. More...
 
Gaudi::Property< double > m_xPositionInitIP {this, "xPositionInitIp", 0, "Initial x position at IP"}
 Proton's initial x position at the interaction point. More...
 
Gaudi::Property< double > m_yPositionInitIP {this, "yPositionInitIp", 0, "Initial y position at IP"}
 Proton's initial y position at the interaction point. More...
 
Gaudi::Property< double > m_zPositionInitIP {this, "zPositionInitIp", 0, "Initial z position at IP"}
 Proton's initial z position at the interaction point. More...
 
Gaudi::Property< double > m_energy {this, "beamEnergy", 0, "Nominal beam energy"}
 Nominal beam energy. More...
 
Gaudi::Property< double > m_parametrisationPosition {this, "parameterisationPosition", 0, "Detector position for which parameterisation was derived"}
 Detector position for which the parameterisation has been done. More...
 
Gaudi::Property< std::string > m_filename {this, "filename", "", "Parameterisation file"}
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Class for the tool that parameterizes proton transport.

This tool does the transport of the proton from ATLAS to the AFP detector, using a parameterization loaded from a txt file. Given as input the initial x, y and z components of the proton position and the initial x, y and z components of the proton momentum it returns the predicted position of the proton with respect to the AFP near station

Definition at line 24 of file AFPProtonTransportTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ AFPProtonTransportTool()

AFPProtonTransportTool::AFPProtonTransportTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 11 of file AFPProtonTransportTool.cxx.

11  : AthAlgTool(type, name, parent) {
12 
13  declareInterface<IAFPProtonTransportTool>(this);
14 
15 }

◆ ~AFPProtonTransportTool()

AFPProtonTransportTool::~AFPProtonTransportTool ( )
virtual

Definition at line 24 of file AFPProtonTransportTool.cxx.

24 { }

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ energy()

double AFPProtonTransportTool::energy ( ) const
inline

Returns nominal beam energy for which parametrization was performed.

Definition at line 64 of file AFPProtonTransportTool.h.

64 {return m_energy;};

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ initialize()

StatusCode AFPProtonTransportTool::initialize ( )
overridevirtual

Definition at line 17 of file AFPProtonTransportTool.cxx.

17  {
18 
19  ATH_MSG_INFO("AFPProtonTransportTool::initialize Initializing transport tool");
20 
21  return StatusCode::SUCCESS;
22 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& IAFPProtonTransportTool::interfaceID ( )
inlinestaticinherited

Definition at line 13 of file IAFPProtonTransportTool.h.

13  {
14  static const InterfaceID id("IAFPProtonTransportTool", 1 , 0);
15  return id;
16  }

◆ load()

StatusCode AFPProtonTransportTool::load ( )
overridevirtual

Loads parametrization file and gets the value of positions, slopes and nominal energy. It takes as argument the path to the txt file containing this information.

Implements IAFPProtonTransportTool.

Definition at line 26 of file AFPProtonTransportTool.cxx.

26  {
27  std::ifstream file;
28  file.open(m_filename);
29  ATH_MSG_INFO("AFPProtonTransportTool::load "<<m_filename);
30  if (!file.is_open()) return StatusCode::FAILURE;
31 
33 
34  while (file.peek() == '#') {
35  char ch;
36  std::string name;
37  file >> ch >> name;
38 
39  //Fetching variable values from the txt file
40  if (name == "m_xPositionInitIP") {
41  double value;
42  file >> value;
44  }
45  if (name == "m_yPositionInitIP") {
46  double value;
47  file >> value;
49  }
50  if (name == "m_zPositionInitIP") {
51  double value;
52  file >> value;
54  }
55  if (name == "m_xSlopeInitIP") {
56  double value;
57  file >> value;
59  }
60  if (name == "m_ySlopeInitIP") {
61  double value;
62  file >> value;
64  }
65  if (name == "m_detectorPosition") {
66  double value;
67  file >> value;
69  }
70  if (name == "m_nominalEnergy") {
71  double value;
72  file >> value;
73  m_energy = value;
74  }
75 
76  file.ignore(1000, '\n');
77  }
78 
79  //Fetching the polynomial coeficients
80  for (int iEqu = 0; iEqu < 4; iEqu++) {
81  file.ignore(1000, '\n');
82  for (int iPoly = 0; iPoly < 8; iPoly++) {
83  int N = 0;
84  file >> N;
85  double ch[10];
86  for (int i = 0; i < 10; i++) {
87  if (i <= N) file >> ch[i];
88  else ch[i] = 0;
89  }
90  file.ignore(1000, '\n');
91 
92  //Create polynomial object with the coeficients loaded from the file
93  pol[iEqu][iPoly] =
94  new AFPProtonTransportPolynomial(N, ch[0], ch[1], ch[2], ch[3], ch[4], ch[5], ch[6], ch[7], ch[8], ch[9]);
95  }
96  }
97  //Creating the Parameterization objects with the polynomials created
102 
103  return StatusCode::SUCCESS;
104 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ parametrisationPosition()

double AFPProtonTransportTool::parametrisationPosition ( ) const
inline

Returns the detector position for which parametrization was performed.

Definition at line 61 of file AFPProtonTransportTool.h.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setParamFile()

virtual void AFPProtonTransportTool::setParamFile ( const std::string &  paramFile)
inlineoverridevirtual

Implements IAFPProtonTransportTool.

Definition at line 35 of file AFPProtonTransportTool.h.

35 { m_filename = paramFile; }

◆ sx()

double AFPProtonTransportTool::sx ( double  x0,
double  y0,
double  z0,
double  sx0,
double  sy0,
double  E 
) const
inline

Evaluates value of horizontal slope equation. It takes as arguments the initial position, slope and nominal beam energy.

Definition at line 50 of file AFPProtonTransportTool.h.

50  {
52  sy0 + m_ySlopeInitIP, E);
53  }

◆ sy()

double AFPProtonTransportTool::sy ( double  x0,
double  y0,
double  z0,
double  sx0,
double  sy0,
double  E 
) const
inline

Evaluates value of vertical slope equation. It takes as arguments the initial position, slope and nominal beam energy.

Definition at line 56 of file AFPProtonTransportTool.h.

56  {
58  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ x()

virtual double AFPProtonTransportTool::x ( double  x0,
double  y0,
double  z0,
double  sx0,
double  sy0,
double  E 
) const
inlineoverridevirtual

Evaluates value of the horizontal position equation. It takes as arguments the initial position, slope and nominal beam energy.

Implements IAFPProtonTransportTool.

Definition at line 38 of file AFPProtonTransportTool.h.

38  {
40  sy0 + m_ySlopeInitIP, E);
41  }

◆ y()

double AFPProtonTransportTool::y ( double  x0,
double  y0,
double  z0,
double  sx0,
double  sy0,
double  E 
) const
inline

Evaluates value of vertical position equation. It takes as arguments the initial position, slope and nominal beam energy.

Definition at line 44 of file AFPProtonTransportTool.h.

44  {
46  sy0 + m_ySlopeInitIP, E);
47  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_energy

Gaudi::Property<double> AFPProtonTransportTool::m_energy {this, "beamEnergy", 0, "Nominal beam energy"}
private

Nominal beam energy.

Definition at line 87 of file AFPProtonTransportTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_filename

Gaudi::Property<std::string> AFPProtonTransportTool::m_filename {this, "filename", "", "Parameterisation file"}
private

Definition at line 91 of file AFPProtonTransportTool.h.

◆ m_parametrisationPosition

Gaudi::Property<double> AFPProtonTransportTool::m_parametrisationPosition {this, "parameterisationPosition", 0, "Detector position for which parameterisation was derived"}
private

Detector position for which the parameterisation has been done.

Definition at line 89 of file AFPProtonTransportTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_x_position

AFPProtonTransportParam* AFPProtonTransportTool::m_x_position = nullptr
private

AFPProtonTransportParam object used for the x position evaluation.

Definition at line 68 of file AFPProtonTransportTool.h.

◆ m_x_slope

AFPProtonTransportParam* AFPProtonTransportTool::m_x_slope = nullptr
private

AFPProtonTransportParam object used for the x slope.

Definition at line 72 of file AFPProtonTransportTool.h.

◆ m_xPositionInitIP

Gaudi::Property<double> AFPProtonTransportTool::m_xPositionInitIP {this, "xPositionInitIp", 0, "Initial x position at IP"}
private

Proton's initial x position at the interaction point.

Definition at line 81 of file AFPProtonTransportTool.h.

◆ m_xSlopeInitIP

Gaudi::Property<double> AFPProtonTransportTool::m_xSlopeInitIP {this, "xSlopeInitIp", 0, "Initial x slope at IP"}
private

Beam crossing angle from x axis at the interaction point.

Definition at line 77 of file AFPProtonTransportTool.h.

◆ m_y_position

AFPProtonTransportParam* AFPProtonTransportTool::m_y_position = nullptr
private

AFPProtonTransportParam object used for the y position evaluation.

Definition at line 70 of file AFPProtonTransportTool.h.

◆ m_y_slope

AFPProtonTransportParam* AFPProtonTransportTool::m_y_slope = nullptr
private

AFPProtonTransportParam object used for the y slope.

Definition at line 74 of file AFPProtonTransportTool.h.

◆ m_yPositionInitIP

Gaudi::Property<double> AFPProtonTransportTool::m_yPositionInitIP {this, "yPositionInitIp", 0, "Initial y position at IP"}
private

Proton's initial y position at the interaction point.

Definition at line 83 of file AFPProtonTransportTool.h.

◆ m_ySlopeInitIP

Gaudi::Property<double> AFPProtonTransportTool::m_ySlopeInitIP {this, "ySlopeInitIp", 0, "Initial y slope at IP"}
private

Beam crossing angle from y axis at the interaction point.

Definition at line 79 of file AFPProtonTransportTool.h.

◆ m_zPositionInitIP

Gaudi::Property<double> AFPProtonTransportTool::m_zPositionInitIP {this, "zPositionInitIp", 0, "Initial z position at IP"}
private

Proton's initial z position at the interaction point.

Definition at line 85 of file AFPProtonTransportTool.h.


The documentation for this class was generated from the following files:
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AFPProtonTransportTool::m_parametrisationPosition
Gaudi::Property< double > m_parametrisationPosition
Detector position for which the parameterisation has been done.
Definition: AFPProtonTransportTool.h:89
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AFPProtonTransportTool::m_ySlopeInitIP
Gaudi::Property< double > m_ySlopeInitIP
Beam crossing angle from y axis at the interaction point.
Definition: AFPProtonTransportTool.h:79
jobOptions.paramFile
string paramFile
Definition: jobOptions.crmc.py:12
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
athena.value
value
Definition: athena.py:122
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
AFPProtonTransportParam::evaluate
double evaluate(double x0, double y0, double z0, double sx, double sy, double E) const
This function evaluates value of the parameterization given a certain polynomial. It takes as argumen...
Definition: AFPProtonTransportParam.cxx:17
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AFPProtonTransportTool::m_x_position
AFPProtonTransportParam * m_x_position
AFPProtonTransportParam object used for the x position evaluation.
Definition: AFPProtonTransportTool.h:68
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:92
AFPProtonTransportTool::m_yPositionInitIP
Gaudi::Property< double > m_yPositionInitIP
Proton's initial y position at the interaction point.
Definition: AFPProtonTransportTool.h:83
file
TFile * file
Definition: tile_monitor.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AFPProtonTransportPolynomial
Definition: AFPProtonTransportPolynomial.h:8
AFPProtonTransportTool::m_xSlopeInitIP
Gaudi::Property< double > m_xSlopeInitIP
Beam crossing angle from x axis at the interaction point.
Definition: AFPProtonTransportTool.h:77
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
AFPProtonTransportTool::m_filename
Gaudi::Property< std::string > m_filename
Definition: AFPProtonTransportTool.h:91
AFPProtonTransportTool::m_y_slope
AFPProtonTransportParam * m_y_slope
AFPProtonTransportParam object used for the y slope.
Definition: AFPProtonTransportTool.h:74
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
AFPProtonTransportTool::m_y_position
AFPProtonTransportParam * m_y_position
AFPProtonTransportParam object used for the y position evaluation.
Definition: AFPProtonTransportTool.h:70
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
AFPProtonTransportParam
Class for the parameterization used by the proton transport tool.
Definition: AFPProtonTransportParam.h:16
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
AFPProtonTransportTool::m_x_slope
AFPProtonTransportParam * m_x_slope
AFPProtonTransportParam object used for the x slope.
Definition: AFPProtonTransportTool.h:72
AFPProtonTransportTool::m_energy
Gaudi::Property< double > m_energy
Nominal beam energy.
Definition: AFPProtonTransportTool.h:87
a
TList * a
Definition: liststreamerinfos.cxx:10
AFPProtonTransportTool::m_zPositionInitIP
Gaudi::Property< double > m_zPositionInitIP
Proton's initial z position at the interaction point.
Definition: AFPProtonTransportTool.h:85
h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AFPProtonTransportTool::m_xPositionInitIP
Gaudi::Property< double > m_xPositionInitIP
Proton's initial x position at the interaction point.
Definition: AFPProtonTransportTool.h:81
fitman.k
k
Definition: fitman.py:528