3 #include <Exceptions.h>
5 namespace tpcconddata {
8 return std::string(
"$Rev: 2568 $");
12 return std::string(
"TPCDistortionMeasurement");
19 _myObj =
new IMPL::LCGenericObjectImpl(1, 0, 6);
22 _myObj->setDoubleVal(0, truePosition->getX());
23 _myObj->setDoubleVal(1, truePosition->getY());
24 _myObj->setDoubleVal(2, truePosition->getZ());
25 _myObj->setDoubleVal(3, reconstructedPosition->getX());
26 _myObj->setDoubleVal(4, reconstructedPosition->getY());
27 _myObj->setDoubleVal(5, reconstructedPosition->getZ());
28 _myObj->setIntVal(0, dot_id);
35 _myObj =
dynamic_cast<IMPL::LCGenericObjectImpl*
>(
obj);
39 throw lcio::Exception(
"Cannot create TPCDistortionMeasurement from sth."
40 " that is not LCGenericObjectImpl");
45 if ((
_myObj->getNInt() != 1)
46 || (
_myObj->getNFloat() != 0) || (
_myObj->getNDouble() != 6)) {
47 throw lcio::Exception(
48 "TPCDistortionMeasurement(LCObject* obj): Wrong number of elements in object");
60 os <<
"TPCDistortionMeasurement: true photodot position (" <<
getTruePosition().getX()
83 return _myObj->getIntVal(0);
IMPL::LCGenericObjectImpl * obj() const
static std::string getDefaultColName()
std::ostream & operator<<(std::ostream &os, const ADCChannelMapping &acm)
TPCDistortionMeasurement(CLHEP::Hep3Vector *truePosition, CLHEP::Hep3Vector *reconstructedPosition, int dot_id)
The constructor with all the member functions given.
virtual ~TPCDistortionMeasurement()
The desctructor.
CLHEP::Hep3Vector getTruePosition() const
class to store the distortions measured with the photoelectric system using a laser.
CLHEP::Hep3Vector getReconstructedPosition() const
void print(std::ostream &os=std::cout) const
IMPL::LCGenericObjectImpl * _myObj
static std::string getRevision()