Page MenuHomeHEPForge

TransientTrackKinematicParticle.cc
No OneTemporary

TransientTrackKinematicParticle.cc

#include "RaveBase/RaveInterface/rave/TransientTrackKinematicParticle.h"
#include "RaveBase/RaveEngine/interface/TaggedTransientTrackKinematicParticle.h"
#include "boost/cast.hpp"
namespace rave
{
TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const rave::Track & initialTrack, const float & massGuess,
const float & massSigma, const float & chiSquared,
const float & degreesOfFr, boost::any origin, std::string tag ) :
KinematicParticle ( BasicTransientTrackKinematicParticle (
initialTrack, massGuess, massSigma, chiSquared,
degreesOfFr, origin, tag ) )
{
// OK, this is dirty, but a the clever ReferenceCountingPointer does not
// allow anything else (as the shared_ptr would), here it is:
static_cast< ::TaggedTransientTrackKinematicParticle* > (
boost::any_cast< ::RefCountedKinematicParticle > (
data().getInternal() ).get() )->setTag ( *this );
}
TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const rave::Track & initialTrack, const float & massGuess,
const float & massSigma, boost::any origin, std::string tag ) :
KinematicParticle ( BasicTransientTrackKinematicParticle (
initialTrack, massGuess, massSigma, origin, tag ) )
{
// OK, this is dirty, but a the clever ReferenceCountingPointer does not
// allow anything else (as the shared_ptr would), here it is:
static_cast< ::TaggedTransientTrackKinematicParticle* > (
boost::any_cast< ::RefCountedKinematicParticle > (
data().getInternal() ).get() )->setTag ( *this );
}
rave::TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const rave::Vector7D & state, const rave::Covariance7D & error,
const rave::Charge & charge, const float & chiSquared,
const float & degreesOfFr, boost::any origin, std::string tag ) :
KinematicParticle ( BasicTransientTrackKinematicParticle (
state, error, charge, chiSquared, degreesOfFr,
origin, tag ) )
{
// OK, this is dirty, but a the clever ReferenceCountingPointer does not
// allow anything else (as the shared_ptr would), here it is:
static_cast< ::TaggedTransientTrackKinematicParticle* > (
boost::any_cast< ::RefCountedKinematicParticle > (
data().getInternal() ).get() )->setTag ( *this );
}
rave::TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const rave::Vector7D & state, const rave::PerigeeCovariance6D & error,
const rave::Charge & charge, const double & chiSquared,
const double & degreesOfFr, const rave::Point3D & referencePoint,
boost::any origin, std::string tag ) :
KinematicParticle ( BasicTransientTrackKinematicParticle (
state, error, charge, chiSquared, degreesOfFr,
referencePoint, origin, tag ) )
{
// OK, this is dirty, but a the clever ReferenceCountingPointer does not
// allow anything else (as the shared_ptr would), here it is:
static_cast< ::TaggedTransientTrackKinematicParticle* > (
boost::any_cast< ::RefCountedKinematicParticle > (
data().getInternal() ).get() )->setTag ( *this );
}
rave::TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const rave::PerigeeParameters6D & state,
const rave::PerigeeCovariance6D & error,
const rave::Charge & charge,const double & chiSquared,
const double & degreesOfFr, const rave::Point3D & referencePoint,
boost::any origin, std::string tag ) :
KinematicParticle ( BasicTransientTrackKinematicParticle (
state, error, charge, chiSquared, degreesOfFr,
referencePoint, origin, tag ) )
{
// OK, this is dirty, but a the clever ReferenceCountingPointer does not
// allow anything else (as the shared_ptr would), here it is:
static_cast< ::TaggedTransientTrackKinematicParticle* > (
boost::any_cast< ::RefCountedKinematicParticle > (
data().getInternal() ).get() )->setTag ( *this );
}
TransientTrackKinematicParticle::TransientTrackKinematicParticle (
const BasicTransientTrackKinematicParticle & o ) :
KinematicParticle ( * ( o.clone() ) )
{}
TransientTrackKinematicParticle::TransientTrackKinematicParticle() :
KinematicParticle ( BasicTransientTrackKinematicParticle () )
{}
TransientTrackKinematicParticle
TransientTrackKinematicParticle::closestToTransversePoint(
const double & x, const double & y) const
{
const BasicTransientTrackKinematicParticle* bttkp =
dynamic_cast< const BasicTransientTrackKinematicParticle* >( &data() );
return bttkp->closestToTransversePoint(x,y);
}
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Jan 21, 2:19 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4223158
Default Alt Text
TransientTrackKinematicParticle.cc (4 KB)

Event Timeline