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

#include "CPPFORT/lcsth.h"
#include "lcio.h"
#include "Exceptions.h"
#include "IOIMPL/LCFactory.h"
#include "IMPL/LCCollectionVec.h"
#include "IMPL/SimTrackerHitImpl.h"
#include "IMPL/LCTOOLS.h"
#include <iostream>

Include dependency graph for lcsth.cc:

Go to the source code of this file.

Functions

PTRTYPE lcsthcreate ()
int lcsthdelete (PTRTYPE hit)
int lcsthgetcellid (PTRTYPE hit)
double lcsthgetposition (PTRTYPE hit, int index)
float lcsthgetmomentum (PTRTYPE hit, int index)
float lcsthgetpathlength (PTRTYPE hit)
float lcsthgetdedx (PTRTYPE hit)
float lcsthgetedep (PTRTYPE hit)
float lcsthgettime (PTRTYPE hit)
PTRTYPE lcsthgetmcparticle (PTRTYPE hit)
int lcsthsetcellid (PTRTYPE hit, int id)
int lcsthsetposition (PTRTYPE hit, double pos[3])
int lcsthsetmomentum (PTRTYPE hit, float pos[3])
int lcsthsetmomentumxyz (PTRTYPE hit, float px, float py, float pz)
int lcsthsetpathlength (PTRTYPE hit, float pathLength)
int lcsthsetdedx (PTRTYPE hit, float dEdX)
int lcsthsetedep (PTRTYPE hit, float e)
int lcsthsettime (PTRTYPE hit, float t)
int lcsthsetmcparticle (PTRTYPE hit, PTRTYPE particle)


Function Documentation

PTRTYPE lcsthcreate (  ) 

Definition at line 14 of file lcsth.cc.

00014                      {
00015   SimTrackerHitImpl* hit = new SimTrackerHitImpl ;
00016   return C2F_POINTER( LCObject*, hit ) ;
00017 }

int lcsthdelete ( PTRTYPE  hit  ) 

Definition at line 19 of file lcsth.cc.

00019                               {
00020   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00021   delete sth ;
00022   return LCIO::SUCCESS ;
00023 }

int lcsthgetcellid ( PTRTYPE  hit  ) 

Definition at line 25 of file lcsth.cc.

00025                                  {
00026   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00027   return sth->getCellID() ;
00028 }

double lcsthgetposition ( PTRTYPE  hit,
int  index 
)

Definition at line 30 of file lcsth.cc.

00030                                                  {
00031   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00032   return sth->getPosition()[index] ;
00033 }

float lcsthgetmomentum ( PTRTYPE  hit,
int  index 
)

Definition at line 35 of file lcsth.cc.

00035                                                 {
00036   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00037   return sth->getMomentum()[index] ;
00038 }

float lcsthgetpathlength ( PTRTYPE  hit  ) 

Definition at line 40 of file lcsth.cc.

00040                                        {
00041   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00042   return sth->getPathLength() ;
00043 }

float lcsthgetdedx ( PTRTYPE  hit  ) 

Definition at line 46 of file lcsth.cc.

00046                                  {
00047   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00048   return sth->getdEdx() ;
00049 }

float lcsthgetedep ( PTRTYPE  hit  ) 

Definition at line 51 of file lcsth.cc.

00051                                  {
00052   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00053   return sth->getEDep() ;
00054 }

float lcsthgettime ( PTRTYPE  hit  ) 

Definition at line 56 of file lcsth.cc.

00056                                  {
00057   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00058   return sth->getTime() ;
00059 }

PTRTYPE lcsthgetmcparticle ( PTRTYPE  hit  ) 

Definition at line 61 of file lcsth.cc.

00061                                          {
00062   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00063   return C2F_POINTER( LCObject*, sth->getMCParticle() );
00064 }

int lcsthsetcellid ( PTRTYPE  hit,
int  id 
)

Definition at line 66 of file lcsth.cc.

00066                                          {
00067   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00068   sth->setCellID( id ) ;
00069   return LCIO::SUCCESS ;
00070 }

int lcsthsetposition ( PTRTYPE  hit,
double  pos[3] 
)

Definition at line 71 of file lcsth.cc.

00071                                                   {
00072   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00073   sth->setPosition( pos ) ;
00074   return LCIO::SUCCESS ;
00075 }

int lcsthsetmomentum ( PTRTYPE  hit,
float  pos[3] 
)

Definition at line 77 of file lcsth.cc.

00077                                                  {
00078   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00079   sth->setMomentum( pos ) ;
00080   return LCIO::SUCCESS ;
00081 }

int lcsthsetmomentumxyz ( PTRTYPE  hit,
float  px,
float  py,
float  pz 
)

Definition at line 83 of file lcsth.cc.

00083                                                                     {
00084   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00085   sth->setMomentum( px, py, pz ) ;
00086   return LCIO::SUCCESS ;
00087 }

int lcsthsetpathlength ( PTRTYPE  hit,
float  pathLength 
)

Definition at line 89 of file lcsth.cc.

00089                                                       {
00090   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00091   sth->setPathLength( pathLength ) ;
00092   return LCIO::SUCCESS ;
00093 }

int lcsthsetdedx ( PTRTYPE  hit,
float  dEdX 
)

Definition at line 96 of file lcsth.cc.

00096                                            {
00097   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00098   sth->setdEdx( dEdX ) ;
00099   return LCIO::SUCCESS ;
00100 }

int lcsthsetedep ( PTRTYPE  hit,
float  e 
)

Definition at line 102 of file lcsth.cc.

00102                                         {
00103   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00104   sth->setEDep( e ) ;
00105   return LCIO::SUCCESS ;
00106 }

int lcsthsettime ( PTRTYPE  hit,
float  t 
)

Definition at line 108 of file lcsth.cc.

00108                                         {
00109   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00110   sth->setTime( t ) ;
00111   return LCIO::SUCCESS ;
00112 }

int lcsthsetmcparticle ( PTRTYPE  hit,
PTRTYPE  particle 
)

Definition at line 114 of file lcsth.cc.

00114                                                          {
00115   SimTrackerHitImpl* sth = f2c_pointer<SimTrackerHitImpl,LCObject>( hit ) ;
00116   MCParticle* mcp = f2c_pointer<MCParticle,LCObject>( particle ) ;
00117   sth->setMCParticle( mcp ) ;
00118   return LCIO::SUCCESS ;
00119 }


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