LarPandoraPseudoLayerPlugin class.
More...
#include <LArPseudoLayerPlugin.h>
LarPandoraPseudoLayerPlugin class.
Definition at line 19 of file LArPseudoLayerPlugin.h.
lar_content::LArPseudoLayerPlugin::LArPseudoLayerPlugin |
( |
| ) |
|
Constructor.
Definition at line 27 of file LArPseudoLayerPlugin.cc.
unsigned int m_zerothLayer
The zeroth layer.
float m_zPitch
The z pitch.
float m_zOffset
The z offset.
static int max(int a, int b)
unsigned int lar_content::LArPseudoLayerPlugin::GetPseudoLayer |
( |
const pandora::CartesianVector & |
positionVector | ) |
const |
Definition at line 33 of file LArPseudoLayerPlugin.cc.
37 if (zLayer < std::numeric_limits<float>::epsilon())
38 throw StatusCodeException(STATUS_CODE_FAILURE);
40 return static_cast<unsigned int>(zLayer);
unsigned int m_zerothLayer
The zeroth layer.
float m_zPitch
The z pitch.
float m_zOffset
The z offset.
unsigned int lar_content::LArPseudoLayerPlugin::GetPseudoLayerAtIp |
( |
| ) |
const |
|
inline |
StatusCode lar_content::LArPseudoLayerPlugin::Initialize |
( |
void |
| ) |
|
|
private |
Definition at line 45 of file LArPseudoLayerPlugin.cc.
47 const LArTPCMap &larTPCMap(this->GetPandora().
GetGeometry()->GetLArTPCMap());
49 if (larTPCMap.empty())
51 std::cout <<
"LArPseudoLayerPlugin::Initialize - LArTPC description not registered with Pandora as required " <<
std::endl;
52 return STATUS_CODE_NOT_INITIALIZED;
55 const LArTPC *
const pFirstLArTPC(larTPCMap.begin()->second);
56 m_zPitch = pFirstLArTPC->GetWirePitchW();
58 for (
const LArTPCMap::value_type &mapEntry : larTPCMap)
60 const LArTPC *
const pLArTPC(mapEntry.second);
62 if (std::fabs(m_zPitch - pLArTPC->GetWirePitchW()) > std::numeric_limits<float>::epsilon())
64 std::cout <<
"LArPseudoLayerPlugin::Initialize - Plugin does not support provided LArTPC configurations " <<
std::endl;
65 return STATUS_CODE_INVALID_PARAMETER;
69 return STATUS_CODE_SUCCESS;
float m_zPitch
The z pitch.
QTextStream & endl(QTextStream &s)
GeomAnalyzerI * GetGeometry(void)
pandora::StatusCode lar_content::LArPseudoLayerPlugin::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
unsigned int lar_content::LArPseudoLayerPlugin::m_zerothLayer |
|
private |
float lar_content::LArPseudoLayerPlugin::m_zOffset |
|
private |
float lar_content::LArPseudoLayerPlugin::m_zPitch |
|
private |
The documentation for this class was generated from the following files: