9#define LAR_CALO_HIT_H 1
160 m_larTPCVolumeId(parameters.m_larTPCVolumeId.Get()),
161 m_daughterVolumeId(parameters.m_daughterVolumeId.IsInitialized() ? parameters.m_daughterVolumeId.Get() : 0)
183 parameters.m_positionVector = this->GetPositionVector();
184 parameters.m_expectedDirection = this->GetExpectedDirection();
185 parameters.m_cellNormalVector = this->GetCellNormalVector();
186 parameters.m_cellGeometry = this->GetCellGeometry();
187 parameters.m_cellSize0 = this->GetCellSize0();
188 parameters.m_cellSize1 = this->GetCellSize1();
189 parameters.m_cellThickness = this->GetCellThickness();
190 parameters.m_nCellRadiationLengths = this->GetNCellRadiationLengths();
191 parameters.m_nCellInteractionLengths = this->GetNCellInteractionLengths();
192 parameters.m_time = this->GetTime();
193 parameters.m_inputEnergy = this->GetInputEnergy();
194 parameters.m_mipEquivalentEnergy = this->GetMipEquivalentEnergy();
195 parameters.m_electromagneticEnergy = this->GetElectromagneticEnergy();
196 parameters.m_hadronicEnergy = this->GetHadronicEnergy();
197 parameters.m_isDigital = this->IsDigital();
198 parameters.m_hitType = this->GetHitType();
199 parameters.m_hitRegion = this->GetHitRegion();
200 parameters.m_layer = this->GetLayer();
201 parameters.m_isInOuterSamplingLayer = this->IsInOuterSamplingLayer();
203 parameters.m_pParentAddress =
static_cast<const void *
>(
this);
226 if (probability >= 0.f)
236 if (probability >= 0.f)
261 pObject =
new LArCaloHit(larCaloHitParameters);
263 return pandora::STATUS_CODE_SUCCESS;
271 unsigned int larTPCVolumeId(std::numeric_limits<unsigned int>::max());
272 unsigned int daughterVolumeId(0);
290 return pandora::STATUS_CODE_INVALID_PARAMETER;
297 return pandora::STATUS_CODE_SUCCESS;
308 return pandora::STATUS_CODE_INVALID_PARAMETER;
327 return pandora::STATUS_CODE_INVALID_PARAMETER;
330 return pandora::STATUS_CODE_SUCCESS;
Header file for the binary file reader class.
Header file for the binary file writer class.
Header file for the calo hit class.
Header file for pandora object creation classes.
Header file for the pandora object factories classes.
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
Header file for the xml file reader class.
Header file for the xml file writer class.
LArCaloHitFactory responsible for object creation.
unsigned int m_version
The LArCaloHit version.
pandora::StatusCode Read(Parameters ¶meters, pandora::FileReader &fileReader) const
Read any additional (derived class only) object parameters from file using the specified file reader.
pandora::StatusCode Write(const Object *const pObject, pandora::FileWriter &fileWriter) const
Persist any additional (derived class only) object parameters using the specified file writer.
Parameters * NewParameters() const
Create new parameters instance on the heap (memory-management to be controlled by user)
LArCaloHitFactory(const unsigned int version=1)
Constructor.
pandora::StatusCode Create(const Parameters ¶meters, const Object *&pObject) const
Create an object with the given parameters.
LArCaloHit(const LArCaloHitParameters ¶meters)
Constructor.
float GetTrackProbability() const
Get the probability that the hit is track-like.
unsigned int GetLArTPCVolumeId() const
Get the lar tpc volume id.
void SetTrackProbability(const float probability)
Set the probability that the hit is track-like.
pandora::InputFloat m_pShower
The probability that the hit is shower-like.
void SetShowerProbability(const float probability)
Set the probability that the hit is shower-like.
pandora::InputFloat m_pTrack
The probability that the hit is track-like.
unsigned int GetDaughterVolumeId() const
Get the daughter volume id.
float GetShowerProbability() const
Get the probability that the hit is shower-like.
unsigned int m_larTPCVolumeId
The lar tpc volume id.
void FillParameters(LArCaloHitParameters ¶meters) const
Fill the parameters associated with this calo hit.
unsigned int m_daughterVolumeId
The daughter volume id.
pandora::InputUInt m_daughterVolumeId
The daughter volume id.
pandora::InputUInt m_larTPCVolumeId
The lar tpc volume id.
StatusCode ReadVariable(T &t)
Read a variable from the file.
StatusCode WriteVariable(const T &t)
Write a variable to the file.
ObjectFactory class responsible for extended pandora object creation.
object_creation::CaloHit::Object Object
object_creation::CaloHit::Parameters Parameters
FileType GetFileType() const
Get the file type.
StatusCodeException class.
StatusCode ReadVariable(const std::string &xmlKey, T &t)
Read a variable from the file.
StatusCode WriteVariable(const std::string &xmlKey, const T &t)
Write a variable to the file.
StatusCode
The StatusCode enum.