14 ReconstructedParticleImpl* rcp =
new ReconstructedParticleImpl ;
18 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
20 return LCIO::SUCCESS ;
27 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
32 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
33 return rcp->getType() ;
37 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
38 return rcp->isCompound() ;
42 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
43 for(
int i=0 ; i<3 ; *p++ = rcp->getMomentum()[i++] ) ;
44 return LCIO::SUCCESS ;
48 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
49 return rcp->getEnergy() ;
53 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
54 for(
int i=0 ; i<
NCOVARIANCE ; i++ ) cvmtx[i] = rcp->getCovMatrix()[i] ;
55 return LCIO::SUCCESS ;
59 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
60 return rcp->getMass() ;
64 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
65 return rcp->getCharge() ;
69 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
70 for(
int i=0 ; i<3 ; *refpoint++ = rcp->getReferencePoint()[i++] ) ;
71 return LCIO::SUCCESS ;
75 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
77 return reinterpret_cast<PTRTYPE>( &idvect );
81 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>(recopart ) ;
82 return rcp->getGoodnessOfPID() ;
86 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
88 return reinterpret_cast<PTRTYPE>( &idvect );
108 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
109 const ClusterVec& idvect = rcp->getClusters();
110 return reinterpret_cast<PTRTYPE>( &idvect );
130 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
131 const TrackVec& idvect = rcp->getTracks();
132 return reinterpret_cast<PTRTYPE>( &idvect );
172 Vertex* vtx = rcp->getStartVertex();
173 return reinterpret_cast<PTRTYPE>( vtx );
178 Vertex* vtx = rcp->getEndVertex();
179 return reinterpret_cast<PTRTYPE>( vtx );
186 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
187 rcp->setType( type ) ;
188 return LCIO::SUCCESS ;
198 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
199 rcp->setMomentum( p ) ;
200 return LCIO::SUCCESS ;
204 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
205 rcp->setEnergy( energy ) ;
206 return LCIO::SUCCESS ;
210 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
211 rcp->setCovMatrix( cvmtx ) ;
212 return LCIO::SUCCESS ;
216 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
217 rcp->setMass( xmass ) ;
218 return LCIO::SUCCESS ;
222 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
223 rcp->setCharge( charge ) ;
224 return LCIO::SUCCESS ;
228 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
229 rcp->setReferencePoint( refpoint ) ;
230 return LCIO::SUCCESS ;
234 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
235 ParticleID* ppid = f2c_pointer<ParticleID,LCObject>( pid ) ;
236 rcp->addParticleID( ppid ) ;
237 return LCIO::SUCCESS ;
241 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
242 rcp->setGoodnessOfPID( good ) ;
243 return LCIO::SUCCESS ;
247 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
249 rcp->addParticle( rparticle ) ;
250 return LCIO::SUCCESS ;
254 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
255 Cluster* cclus = f2c_pointer<Cluster,LCObject>( clus ) ;
256 rcp->addCluster( cclus ) ;
257 return LCIO::SUCCESS ;
261 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
262 Track* ctrack = f2c_pointer<Track,LCObject>( track ) ;
263 rcp->addTrack( ctrack ) ;
264 return LCIO::SUCCESS ;
275 ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
276 Vertex* vtx = f2c_pointer<Vertex,LCObject>( vertex ) ;
277 rcp->setStartVertex( vtx ) ;
278 return LCIO::SUCCESS ;
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgettracks(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgetclusters(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpaddtrack(PTRTYPE rcp, PTRTYPE track)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpcreate()
Header file for the f77-wrapper functions of the ReconstructedParticle Class.
std::vector< Track * > TrackVec
Vector of (pointers to) Tracks.
std::vector< ParticleID * > ParticleIDVec
Vector of (pointers to) ParticleIDs.
LCIO_DEPRECATED_CAPI int lcrcpgetreferencepoint(PTRTYPE rcp, float *refpoint)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgetstartvertex(PTRTYPE rcp)
std::vector< Cluster * > ClusterVec
Vector of (pointers to) Clusters.
LCIO_DEPRECATED_CAPI int lcrcpaddparticle(PTRTYPE rcp, PTRTYPE particle)
LCIO_DEPRECATED_CAPI int lcrcpid(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpgettype(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgetparticleids(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpsetreferencepoint(PTRTYPE rcp, float *refpoint)
LCIO_DEPRECATED_CAPI int lcrcpsettype(PTRTYPE rcp, int type)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgetparticles(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpgetmomentum(PTRTYPE rcp, float *p)
LCIO_DEPRECATED_CAPI int lcrcpsetstartvertex(PTRTYPE rcp, PTRTYPE vtx)
LCIO_DEPRECATED_CAPI int lcrcpsetcovmatrix(PTRTYPE rcp, float *cvmtx)
long PTRTYPE
Fortran interface - define the length of pointers this has to made machine independent ...
LCIO_DEPRECATED_CAPI int lcrcpaddcluster(PTRTYPE rcp, PTRTYPE clus)
LCIO_DEPRECATED_CAPI int lcrcpsetmass(PTRTYPE rcp, float xmass)
LCIO_DEPRECATED_CAPI int lcrcpsetcharge(PTRTYPE rcp, float charge)
LCIO_DEPRECATED_CAPI int lcrcpsetgoodnessofpid(PTRTYPE pid, float good)
LCIO_DEPRECATED_CAPI int lcrcpaddparticleid(PTRTYPE rcp, PTRTYPE id)
LCIO_DEPRECATED_CAPI int lcrcpdelete(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI float lcrcpgetcharge(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpsetmomentum(PTRTYPE rcp, float *p)
std::vector< ReconstructedParticle * > ReconstructedParticleVec
Vector of (pointers to) ReconstructedParticles.
LCIO_DEPRECATED_CAPI float lcrcpgetgoodnessofpid(PTRTYPE pid)
LCIO_DEPRECATED_CAPI bool lcrcpiscompound(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI float lcrcpgetmass(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI float lcrcpgetenergy(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI PTRTYPE lcrcpgetendvertex(PTRTYPE rcp)
LCIO_DEPRECATED_CAPI int lcrcpsetenergy(PTRTYPE rcp, float energy)
#define C2F_POINTER(T, ptr)
LCIO_DEPRECATED_CAPI int lcrcpgetcovmatrix(PTRTYPE rcp, float *cvmtx)