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

#include "CPPFORT/lccah.h"
#include "lcio.h"
#include "IMPL/CalorimeterHitImpl.h"

Include dependency graph for lccah.cc:

Go to the source code of this file.

Functions

PTRTYPE lccahcreate ()
int lccahdelete (PTRTYPE calhit)
int lccahid (PTRTYPE calhit)
int lccahgetcellid0 (PTRTYPE calhit)
int lccahgetcellid1 (PTRTYPE calhit)
float lccahgetenergy (PTRTYPE calhit)
float lccahgetenergyerr (PTRTYPE calhit)
float lccahgettime (PTRTYPE calhit)
int lccahgetposition (PTRTYPE calhit, float *pos)
int lccahgettype (PTRTYPE calhit)
PTRTYPE lccahgetrawhit (PTRTYPE calhit)
int lccahsetcellid0 (PTRTYPE calhit, int id0)
int lccahsetcellid1 (PTRTYPE calhit, int id1)
int lccahsetenergy (PTRTYPE calhit, float en)
int lccahsetenergyerr (PTRTYPE calhit, float enerr)
int lccahsettime (PTRTYPE calhit, float time)
int lccahsetposition (PTRTYPE calhit, float pos[3])
int lccahsettype (PTRTYPE calhit, int type)
int lccahsetrawhit (PTRTYPE calhit, PTRTYPE rawHit)


Function Documentation

PTRTYPE lccahcreate (  ) 

Definition at line 9 of file lccah.cc.

00009                      {
00010   CalorimeterHitImpl* hit = new CalorimeterHitImpl ;
00011   return C2F_POINTER( LCObject*, hit ) ; 
00012 }

int lccahdelete ( PTRTYPE  calhit  ) 

Definition at line 13 of file lccah.cc.

00013                                   {
00014   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00015   delete hit ;
00016   return LCIO::SUCCESS ;
00017 }

int lccahid ( PTRTYPE  calhit  ) 

Definition at line 18 of file lccah.cc.

00018                                {
00019   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00020   return hit->id() ;
00021 }

int lccahgetcellid0 ( PTRTYPE  calhit  ) 

Definition at line 23 of file lccah.cc.

00023                                        {
00024   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00025   return hit->getCellID0() ;
00026 }

int lccahgetcellid1 ( PTRTYPE  calhit  ) 

Definition at line 27 of file lccah.cc.

00027                                        {
00028   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00029   return hit->getCellID1() ;
00030 }

float lccahgetenergy ( PTRTYPE  calhit  ) 

Definition at line 31 of file lccah.cc.

00031                                         {
00032   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00033   return hit->getEnergy() ;
00034 }

float lccahgetenergyerr ( PTRTYPE  calhit  ) 

Definition at line 35 of file lccah.cc.

00035                                            {
00036   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00037   return hit->getEnergyError() ;
00038 }

float lccahgettime ( PTRTYPE  calhit  ) 

Definition at line 39 of file lccah.cc.

00039                                       {
00040   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00041   return hit->getTime() ;
00042 }

int lccahgetposition ( PTRTYPE  calhit,
float *  pos 
)

Definition at line 43 of file lccah.cc.

00043                                                    {
00044   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00045   for(int i=0;i<3; *pos++ = hit->getPosition()[i++] ) ;
00046   return LCIO::SUCCESS ;
00047 }

int lccahgettype ( PTRTYPE  calhit  ) 

Definition at line 48 of file lccah.cc.

00048                                     {
00049   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00050   return hit->getType() ;
00051 }

PTRTYPE lccahgetrawhit ( PTRTYPE  calhit  ) 

Definition at line 53 of file lccah.cc.

00053                                           {
00054   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00055   return C2F_POINTER( LCObject*, hit->getRawHit() ) ;
00056 }

int lccahsetcellid0 ( PTRTYPE  calhit,
int  id0 
)

Definition at line 58 of file lccah.cc.

00058                                               {
00059   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00060   hit->setCellID0( id0 ) ;
00061   return  LCIO::SUCCESS ;
00062 }

int lccahsetcellid1 ( PTRTYPE  calhit,
int  id1 
)

Definition at line 63 of file lccah.cc.

00063                                               {
00064   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00065   hit->setCellID1( id1 ) ;
00066   return  LCIO::SUCCESS ;
00067 }

int lccahsetenergy ( PTRTYPE  calhit,
float  en 
)

Definition at line 68 of file lccah.cc.

00068                                               {
00069   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00070   hit->setEnergy( en ) ;
00071   return  LCIO::SUCCESS ;
00072 }

int lccahsetenergyerr ( PTRTYPE  calhit,
float  enerr 
)

Definition at line 73 of file lccah.cc.

00073                                                     {
00074   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00075   hit->setEnergyError( enerr ) ;
00076   return  LCIO::SUCCESS ;
00077 }

int lccahsettime ( PTRTYPE  calhit,
float  time 
)

Definition at line 78 of file lccah.cc.

00078                                               {
00079   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00080   hit->setTime( time ) ;
00081   return  LCIO::SUCCESS ;
00082 }

int lccahsetposition ( PTRTYPE  calhit,
float  pos[3] 
)

Definition at line 83 of file lccah.cc.

00083                                                      {
00084   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00085   hit->setPosition( pos ) ;
00086   return  LCIO::SUCCESS ;
00087 }

int lccahsettype ( PTRTYPE  calhit,
int  type 
)

Definition at line 88 of file lccah.cc.

00088                                             {
00089   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00090   hit->setType( type ) ;
00091   return LCIO::SUCCESS ;
00092 }

int lccahsetrawhit ( PTRTYPE  calhit,
PTRTYPE  rawHit 
)

Definition at line 93 of file lccah.cc.

00093                                                    {
00094   CalorimeterHitImpl* hit = f2c_pointer<CalorimeterHitImpl,LCObject>( calhit ) ;
00095   hit->setRawHit( f2c_pointer<LCObject,LCObject>( rawHit ) ) ; 
00096   return LCIO::SUCCESS ;
00097 }


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