ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ForwardTransportSvc Class Reference

#include <ForwardTransportSvc.h>

Inheritance diagram for ForwardTransportSvc:
Collaboration diagram for ForwardTransportSvc:

Public Member Functions

 ForwardTransportSvc (const std::string &name, ISvcLocator *svc)
 
virtual StatusCode initialize ()
 
virtual ForwardTracker::ConfigData getConfigData () const
 
virtual bool getTransportFlag () const
 
virtual double getEtaCut () const
 
virtual double getXiCut () const
 
virtual bool selectedParticle (G4ThreeVector mom, int pid)
 

Private Attributes

ForwardTracker::ConfigData m_cData
 
BooleanProperty m_transportFlag {this, "TransportFlag", false}
 
DoubleProperty m_etaCut {this, "EtaCut", 7.5}
 
DoubleProperty m_xiCut {this, "XiCut", 0.8}
 

Detailed Description

Definition at line 12 of file ForwardTransportSvc.h.

Constructor & Destructor Documentation

◆ ForwardTransportSvc()

ForwardTransportSvc::ForwardTransportSvc ( const std::string &  name,
ISvcLocator *  svc 
)

Definition at line 17 of file ForwardTransportSvc.cxx.

17  :
18  base_class(name,svc)
19 {
20  declareProperty("TwissFile1", m_cData.twissFile1);
21  declareProperty("TwissFile2", m_cData.twissFile2);
22  declareProperty("PositionC1", m_cData.positionC1);
23  declareProperty("PositionC2", m_cData.positionC2);
24  declareProperty("ApertureC1", m_cData.apertureC1);
25  declareProperty("ApertureC2", m_cData.apertureC2);
26  declareProperty("EndMarker", m_cData.endMarker);
27 }

Member Function Documentation

◆ getConfigData()

virtual ForwardTracker::ConfigData ForwardTransportSvc::getConfigData ( ) const
inlinevirtual

Definition at line 19 of file ForwardTransportSvc.h.

19 { return m_cData; }

◆ getEtaCut()

virtual double ForwardTransportSvc::getEtaCut ( ) const
inlinevirtual

Definition at line 21 of file ForwardTransportSvc.h.

21 { return m_etaCut; }

◆ getTransportFlag()

virtual bool ForwardTransportSvc::getTransportFlag ( ) const
inlinevirtual

Definition at line 20 of file ForwardTransportSvc.h.

20 { return m_transportFlag; }

◆ getXiCut()

virtual double ForwardTransportSvc::getXiCut ( ) const
inlinevirtual

Definition at line 22 of file ForwardTransportSvc.h.

22 { return m_xiCut; }

◆ initialize()

StatusCode ForwardTransportSvc::initialize ( )
virtual

Definition at line 29 of file ForwardTransportSvc.cxx.

29  {
30 
31  ATH_MSG_INFO("ForwardTransportSvc::initialize");
32  return StatusCode::SUCCESS;
33 }

◆ selectedParticle()

bool ForwardTransportSvc::selectedParticle ( G4ThreeVector  mom,
int  pid 
)
virtual

Definition at line 35 of file ForwardTransportSvc.cxx.

35  {
36 
37  std::ifstream pfile(m_cData.twissFile1.c_str());
39 
40  double eta = fabs(momentum.pseudoRapidity());
41  double xi = momentum.mag()/beamEnergy;
42 
43  ATH_MSG_INFO(" pseudoRapidity: " << std::setprecision(9) << eta);
44  ATH_MSG_INFO(" p/beamEnergy: " << std::setprecision(9) << xi);
45 
46  if (eta < m_etaCut) return false;
47  if (xi < m_xiCut) return false;
48 
49  if (m_transportFlag) {
50 
51  if (pid == 2212) return true; // proton
52  }
53  else {
54 
55  if (pid == 2112) return true; // neutron
56  if (pid == 22) return true; // gamma
57  if (pid == 3122) return true; // lambda
58  }
59 
60  return false;
61 }

Member Data Documentation

◆ m_cData

ForwardTracker::ConfigData ForwardTransportSvc::m_cData
private

Definition at line 27 of file ForwardTransportSvc.h.

◆ m_etaCut

DoubleProperty ForwardTransportSvc::m_etaCut {this, "EtaCut", 7.5}
private

Definition at line 29 of file ForwardTransportSvc.h.

◆ m_transportFlag

BooleanProperty ForwardTransportSvc::m_transportFlag {this, "TransportFlag", false}
private

Definition at line 28 of file ForwardTransportSvc.h.

◆ m_xiCut

DoubleProperty ForwardTransportSvc::m_xiCut {this, "XiCut", 0.8}
private

Definition at line 30 of file ForwardTransportSvc.h.


The documentation for this class was generated from the following files:
ForwardTracker::ConfigData::positionC1
double positionC1
Definition: ForwardTracker/ForwardTracker/ConfigData.h:17
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
ForwardTransportSvc::m_transportFlag
BooleanProperty m_transportFlag
Definition: ForwardTransportSvc.h:28
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ForwardTransportSvc::m_etaCut
DoubleProperty m_etaCut
Definition: ForwardTransportSvc.h:29
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
LArNewCalib_Delay_OFC_Cali.pfile
string pfile
Definition: LArNewCalib_Delay_OFC_Cali.py:181
ForwardTracker::ConfigData::apertureC1
double apertureC1
Definition: ForwardTracker/ForwardTracker/ConfigData.h:19
ForwardTransportSvc::m_xiCut
DoubleProperty m_xiCut
Definition: ForwardTransportSvc.h:30
ForwardTransportSvc::m_cData
ForwardTracker::ConfigData m_cData
Definition: ForwardTransportSvc.h:27
ParticleGun_EoverP_Config.momentum
momentum
Definition: ParticleGun_EoverP_Config.py:63
ForwardTracker::ConfigData::apertureC2
double apertureC2
Definition: ForwardTracker/ForwardTracker/ConfigData.h:20
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RunTileTBMonitoring.beamEnergy
beamEnergy
Definition: RunTileTBMonitoring.py:248
ForwardTracker::ConfigData::twissFile1
std::string twissFile1
Definition: ForwardTracker/ForwardTracker/ConfigData.h:15
ForwardTracker::ConfigData::twissFile2
std::string twissFile2
Definition: ForwardTracker/ForwardTracker/ConfigData.h:16
ForwardTracker::GetBeamEnergy
double GetBeamEnergy(std::ifstream &)
Definition: TwissFile.cxx:112
ForwardTracker::ConfigData::endMarker
double endMarker
Definition: ForwardTracker/ForwardTracker/ConfigData.h:21
ForwardTracker::ConfigData::positionC2
double positionC2
Definition: ForwardTracker/ForwardTracker/ConfigData.h:18