/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/lcio/src/cpp/src/CPPFORT/lcrcp.cc File Reference

#include "CPPFORT/lcrcp.h"
#include "lcio.h"
#include "IMPL/ReconstructedParticleImpl.h"
#include "IMPL/VertexImpl.h"
#include <iostream>

Include dependency graph for lcrcp.cc:

Go to the source code of this file.

Functions

PTRTYPE lcrcpcreate ()
int lcrcpdelete (PTRTYPE recopart)
int lcrcpid (PTRTYPE recopart)
int lcrcpgettype (PTRTYPE recopart)
bool lcrcpiscompound (PTRTYPE recopart)
int lcrcpgetmomentum (PTRTYPE recopart, float *p)
float lcrcpgetenergy (PTRTYPE recopart)
int lcrcpgetcovmatrix (PTRTYPE recopart, float cvmtx[NCOVARIANCE])
float lcrcpgetmass (PTRTYPE recopart)
float lcrcpgetcharge (PTRTYPE recopart)
int lcrcpgetreferencepoint (PTRTYPE recopart, float refpoint[3])
PTRTYPE lcrcpgetparticleids (PTRTYPE recopart)
float lcrcpgetgoodnessofpid (PTRTYPE recopart)
PTRTYPE lcrcpgetparticles (PTRTYPE recopart)
PTRTYPE lcrcpgetclusters (PTRTYPE recopart)
PTRTYPE lcrcpgettracks (PTRTYPE recopart)
PTRTYPE lcrcpgetstartvertex (PTRTYPE recopart)
PTRTYPE lcrcpgetendvertex (PTRTYPE recopart)
int lcrcpsettype (PTRTYPE recopart, int type)
int lcrcpsetmomentum (PTRTYPE recopart, float p[3])
int lcrcpsetenergy (PTRTYPE recopart, float energy)
int lcrcpsetcovmatrix (PTRTYPE recopart, float cvmtx[NCOVARIANCE])
int lcrcpsetmass (PTRTYPE recopart, float xmass)
int lcrcpsetcharge (PTRTYPE recopart, float charge)
int lcrcpsetreferencepoint (PTRTYPE recopart, float refpoint[3])
int lcrcpaddparticleid (PTRTYPE recopart, PTRTYPE pid)
int lcrcpsetgoodnessofpid (PTRTYPE recopart, float good)
int lcrcpaddparticle (PTRTYPE recopart, PTRTYPE particle)
int lcrcpaddcluster (PTRTYPE recopart, PTRTYPE clus)
int lcrcpaddtrack (PTRTYPE recopart, PTRTYPE track)
int lcrcpsetstartvertex (PTRTYPE recopart, PTRTYPE vertex)


Function Documentation

PTRTYPE lcrcpcreate (  ) 

Definition at line 13 of file lcrcp.cc.

00013                      {
00014   ReconstructedParticleImpl* rcp = new ReconstructedParticleImpl ;
00015   return C2F_POINTER( LCObject*, rcp ) ;
00016 }

int lcrcpdelete ( PTRTYPE  recopart  ) 

Definition at line 17 of file lcrcp.cc.

00017                                    {
00018   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00019   delete rcp ;
00020   return LCIO::SUCCESS ;
00021 }

int lcrcpid ( PTRTYPE  recopart  ) 

Definition at line 26 of file lcrcp.cc.

00026                                 {
00027   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00028   return rcp->id() ;
00029 }

int lcrcpgettype ( PTRTYPE  recopart  ) 

Definition at line 31 of file lcrcp.cc.

00031                                       {
00032   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00033   return rcp->getType() ;
00034 }

bool lcrcpiscompound ( PTRTYPE  recopart  ) 

Definition at line 36 of file lcrcp.cc.

00036                                           {
00037   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00038   return rcp->isCompound() ;
00039 }

int lcrcpgetmomentum ( PTRTYPE  recopart,
float *  p 
)

Definition at line 41 of file lcrcp.cc.

00041                                                     {
00042   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00043   for( int i=0 ; i<3 ;  *p++ = rcp->getMomentum()[i++]  ) ;
00044   return LCIO::SUCCESS ;
00045 }

float lcrcpgetenergy ( PTRTYPE  recopart  ) 

Definition at line 47 of file lcrcp.cc.

00047                                          {
00048   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00049   return rcp->getEnergy() ;
00050 }

int lcrcpgetcovmatrix ( PTRTYPE  recopart,
float  cvmtx[NCOVARIANCE] 
)

Definition at line 52 of file lcrcp.cc.

00052                                                                      {
00053   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00054   for( int i=0 ; i<NCOVARIANCE ;  cvmtx[i] = rcp->getCovMatrix()[i++]  ) ;
00055   return LCIO::SUCCESS ;
00056 }

float lcrcpgetmass ( PTRTYPE  recopart  ) 

Definition at line 58 of file lcrcp.cc.

00058                                        {
00059   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00060   return rcp->getMass() ;
00061 }

float lcrcpgetcharge ( PTRTYPE  recopart  ) 

Definition at line 63 of file lcrcp.cc.

00063                                          {
00064   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00065   return rcp->getCharge() ;
00066 }

int lcrcpgetreferencepoint ( PTRTYPE  recopart,
float  refpoint[3] 
)

Definition at line 68 of file lcrcp.cc.

00068                                                                   {
00069   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00070   for( int i=0 ; i<3 ;  *refpoint++ = rcp->getReferencePoint()[i++]  ) ;
00071   return LCIO::SUCCESS ;
00072 }

PTRTYPE lcrcpgetparticleids ( PTRTYPE  recopart  ) 

Definition at line 74 of file lcrcp.cc.

00074                                                 {
00075   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00076   const ParticleIDVec& idvect = rcp->getParticleIDs();
00077   return reinterpret_cast<PTRTYPE>( &idvect );
00078 }

float lcrcpgetgoodnessofpid ( PTRTYPE  recopart  ) 

Definition at line 80 of file lcrcp.cc.

00080                                                 {
00081   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>(recopart ) ;
00082   return rcp->getGoodnessOfPID() ;
00083 }

PTRTYPE lcrcpgetparticles ( PTRTYPE  recopart  ) 

Definition at line 85 of file lcrcp.cc.

00085                                               {
00086   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00087   const ReconstructedParticleVec& idvect = rcp->getParticles();
00088   return reinterpret_cast<PTRTYPE>( &idvect );
00089 }

PTRTYPE lcrcpgetclusters ( PTRTYPE  recopart  ) 

Definition at line 107 of file lcrcp.cc.

00107                                              {
00108   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00109   const ClusterVec& idvect = rcp->getClusters();
00110   return reinterpret_cast<PTRTYPE>( &idvect );
00111 }

PTRTYPE lcrcpgettracks ( PTRTYPE  recopart  ) 

Definition at line 129 of file lcrcp.cc.

00129                                            {
00130   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00131   const TrackVec& idvect = rcp->getTracks();
00132   return reinterpret_cast<PTRTYPE>( &idvect );
00133 }

PTRTYPE lcrcpgetstartvertex ( PTRTYPE  recopart  ) 

Definition at line 170 of file lcrcp.cc.

00170                                                 {
00171   ReconstructedParticle* rcp = f2c_pointer<ReconstructedParticle,LCObject>( recopart ) ;
00172   Vertex* vtx = rcp->getStartVertex();
00173   return reinterpret_cast<PTRTYPE>( vtx );
00174 }

PTRTYPE lcrcpgetendvertex ( PTRTYPE  recopart  ) 

Definition at line 176 of file lcrcp.cc.

00176                                               {
00177   ReconstructedParticle* rcp = f2c_pointer<ReconstructedParticle,LCObject>( recopart ) ;
00178   Vertex* vtx = rcp->getEndVertex();
00179   return reinterpret_cast<PTRTYPE>( vtx );
00180 }

int lcrcpsettype ( PTRTYPE  recopart,
int  type 
)

Definition at line 185 of file lcrcp.cc.

00185                                                {
00186   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00187   rcp->setType( type ) ;
00188   return LCIO::SUCCESS ;
00189 }

int lcrcpsetmomentum ( PTRTYPE  recopart,
float  p[3] 
)

Definition at line 197 of file lcrcp.cc.

00197                                                      {
00198   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00199    rcp->setMomentum( p ) ;
00200    return LCIO::SUCCESS ;
00201 }

int lcrcpsetenergy ( PTRTYPE  recopart,
float  energy 
)

Definition at line 203 of file lcrcp.cc.

00203                                                      {
00204   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00205   rcp->setEnergy( energy ) ;
00206   return LCIO::SUCCESS ;
00207 }

int lcrcpsetcovmatrix ( PTRTYPE  recopart,
float  cvmtx[NCOVARIANCE] 
)

Definition at line 209 of file lcrcp.cc.

00209                                                                     {
00210   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00211   rcp->setCovMatrix( cvmtx ) ;
00212   return LCIO::SUCCESS ;
00213 }

int lcrcpsetmass ( PTRTYPE  recopart,
float  xmass 
)

Definition at line 215 of file lcrcp.cc.

00215                                                  {
00216   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00217   rcp->setMass( xmass ) ;
00218   return LCIO::SUCCESS ;
00219 }

int lcrcpsetcharge ( PTRTYPE  recopart,
float  charge 
)

Definition at line 221 of file lcrcp.cc.

00221                                                      {
00222   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00223   rcp->setCharge( charge ) ;
00224   return LCIO::SUCCESS ;
00225 }

int lcrcpsetreferencepoint ( PTRTYPE  recopart,
float  refpoint[3] 
)

Definition at line 227 of file lcrcp.cc.

00227                                                                   {
00228   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00229   rcp->setReferencePoint( refpoint ) ;
00230   return LCIO::SUCCESS ;
00231 }

int lcrcpaddparticleid ( PTRTYPE  recopart,
PTRTYPE  pid 
)

Definition at line 233 of file lcrcp.cc.

00233                                                         {
00234   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00235   ParticleID* ppid = f2c_pointer<ParticleID,LCObject>( pid ) ;
00236   rcp->addParticleID( ppid ) ;
00237   return LCIO::SUCCESS ;
00238 }

int lcrcpsetgoodnessofpid ( PTRTYPE  recopart,
float  good 
)

Definition at line 240 of file lcrcp.cc.

00240                                                          {
00241   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00242   rcp->setGoodnessOfPID( good ) ;
00243   return LCIO::SUCCESS ;
00244 }

int lcrcpaddparticle ( PTRTYPE  recopart,
PTRTYPE  particle 
)

Definition at line 246 of file lcrcp.cc.

00246                                                            {
00247   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00248   ReconstructedParticle* rparticle = f2c_pointer<ReconstructedParticle,LCObject>( particle ) ;
00249   rcp->addParticle( rparticle ) ;
00250   return LCIO::SUCCESS ;
00251 }

int lcrcpaddcluster ( PTRTYPE  recopart,
PTRTYPE  clus 
)

Definition at line 253 of file lcrcp.cc.

00253                                                       {
00254   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00255   Cluster* cclus = f2c_pointer<Cluster,LCObject>( clus ) ;
00256   rcp->addCluster( cclus ) ;
00257   return LCIO::SUCCESS ;
00258 }

int lcrcpaddtrack ( PTRTYPE  recopart,
PTRTYPE  track 
)

Definition at line 260 of file lcrcp.cc.

00260                                                      {
00261   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00262   Track* ctrack = f2c_pointer<Track,LCObject>( track ) ;
00263   rcp->addTrack( ctrack ) ;
00264   return LCIO::SUCCESS ;
00265 }

int lcrcpsetstartvertex ( PTRTYPE  recopart,
PTRTYPE  vertex 
)

Definition at line 274 of file lcrcp.cc.

00274                                                             {
00275   ReconstructedParticleImpl* rcp = f2c_pointer<ReconstructedParticleImpl,LCObject>( recopart ) ;
00276   Vertex* vtx = f2c_pointer<Vertex,LCObject>( vertex ) ;
00277   rcp->setStartVertex( vtx ) ;
00278   return LCIO::SUCCESS ;
00279 }


Generated on Mon Jan 7 13:16:38 2013 for MicromegasFramework by  doxygen 1.4.7