| 
    LCIO
    02.17
    
   | 
 
#include "CPPFORT/lciof77apiext.h"#include "lcio.h"#include "IOIMPL/LCFactory.h"#include "IMPL/LCRunHeaderImpl.h"#include "IMPL/LCEventImpl.h"#include "IMPL/LCCollectionVec.h"#include "IMPL/SimTrackerHitImpl.h"#include "IMPL/SimCalorimeterHitImpl.h"#include "IMPL/LCTOOLS.h"#include "CPPFORT/HEPEVT.h"#include "EVENT/LCIntVec.h"#include "EVENT/LCFloatVec.h"#include "EVENT/LCStrVec.h"#include <string>#include <vector>#include <iostream>
 Include dependency graph for lciof77apiext.cc:Go to the source code of this file.
Functions | |
| int | do_set_method (LCParameters ¶ms, const char *method, const char *key, PTRTYPE vector) | 
| int | do_get_method (const LCParameters ¶ms, const char *method, const char *key, PTRTYPE vector) | 
| int | lcrdropenchain (PTRTYPE reader, void *filenamesv, const int nfiles, const int nchfilename) | 
| Header file for additional f77-wrapper functions.  More... | |
| int | lcwriterunheader (PTRTYPE writer, const int irun, const char *detname, const char *description, void *sdnamevec, const int nsubd, const int nchsd) | 
| Write a run header to the specified writer with the given data.  More... | |
| PTRTYPE | lcreadnextrunheader (PTRTYPE reader, int *irun, void *detname, void *description, void *sdnamevec, int *nsubd, const int nchsubd) | 
| Read the next run header and fills the return arguments with the data.  More... | |
| int | lcseteventheader (PTRTYPE event, const int irun, const int ievent, const int timestamp, const char *detname) | 
| Set the complete event header data in the event.  More... | |
| int | lcgeteventheader (PTRTYPE event, int *irun, int *ievent, int *timestamp, void *detname) | 
| Read the complete event header data from the event.  More... | |
| int | lcdumprunheader (PTRTYPE runheader) | 
| Dump the run header to the stdout.  More... | |
| int | lcdumpevent (PTRTYPE event) | 
| Dump the event to the stdout - one line per collection.  More... | |
| int | lcdumpeventdetailed (PTRTYPE event) | 
| Detailed dump of all the data in the event to stdout.  More... | |
| int | lcgetmcparticledata (PTRTYPE mcparticle, int *pdg, int *genstatus, int *simstatus, double *prodvtx, float *momentum, float *mass, float *charge, int *ndaughters) | 
| Return all the data of the specified MCParticle in the arguments.  More... | |
| int | lcaddsimtrackerhit (PTRTYPE collectionvec, int cellID0, double *pos, float dEdx, float time, PTRTYPE mcp) | 
| Add a new SimTrackerHit with the given data to the collection.  More... | |
| int | lcgetsimtrackerhit (PTRTYPE collection, int i, int *cellID, double *pos, float *dEdx, float *time, PTRTYPE *mcp) | 
| Return all the data from the specified SimTrackerHit in the arguments.  More... | |
| PTRTYPE | lcaddsimcalohit (PTRTYPE col, int cellID0, int cellID1, float energy, float *pos) | 
| Add a new SimCalorimeterHit with the given data to the collection.  More... | |
| PTRTYPE | lcgetsimcalohit (PTRTYPE collection, int i, int *cellID0, int *cellID1, float *energy, float *pos) | 
| Return the data of the specified SimCalorimeterHit in the arguments.  More... | |
| int | lcgetsimcalohitmccont (PTRTYPE hit, int i, PTRTYPE *mcp, float *energy, float *time, int *pdg) | 
| Return the specified contribution of a MCParticle to the hit in the arguments.  More... | |
| int | hepevt2lcio (PTRTYPE evtout) | 
| Create an MCParticle collection from the hepevt common block and add it to the event.  More... | |
| int | lcio2hepevt (PTRTYPE event) | 
| Fill the hepevt common block with the MCParicle data in the LCIO event.  More... | |
| PTRTYPE | lcobjectvectorcreate (PTRTYPE *objectv, const int nobjv) | 
| Create an object vector.  More... | |
| PTRTYPE | lcintvectorcreate (int *intv, const int nintv) | 
| Create an LC int vector.  More... | |
| PTRTYPE | lcfloatvectorcreate (float *floatv, const int nfloatv) | 
| Create a LC float vector.  More... | |
| PTRTYPE | lcstringvectorcreate (void *stringv, const int nstringv, const int nchstringv) | 
| Create a LC string vector.  More... | |
| int | lcgetintvector (PTRTYPE vector, int *intv, int *nintv) | 
| Return the content of a LC int vector.  More... | |
| int | lcgetfloatvector (PTRTYPE vector, float *floatv, int *nfloatv) | 
| Return the content of a LC float vector.  More... | |
| int | lcgetstringvector (PTRTYPE vector, void *stringv, int *nstringv, const int nchstringv) | 
| Return the content of a LC string vector.  More... | |
| PTRTYPE | intvectorcreate (int *intv, const int nintv) | 
| Create/Delete an int vector.  More... | |
| int | intvectordelete (PTRTYPE vector) | 
| PTRTYPE | floatvectorcreate (float *floatv, const int nfloatv) | 
| Create/Delete a float vector.  More... | |
| int | floatvectordelete (PTRTYPE vector) | 
| PTRTYPE | stringvectorcreate (void *stringv, const int nstringv, const int nchstringv) | 
| Create/Delete a string vector.  More... | |
| int | stringvectordelete (PTRTYPE vector) | 
| PTRTYPE | pointervectorcreate (PTRTYPE *pointerv, const int npointerv) | 
| Create/Delete a pointer vector.  More... | |
| int | pointervectordelete (PTRTYPE vector) | 
| int | getintvector (PTRTYPE vector, int *intv, int *nintv) | 
| Return the content of an int vector.  More... | |
| int | getfloatvector (PTRTYPE vector, float *floatv, int *nfloatv) | 
| Return the content of a float vector.  More... | |
| int | getstringvector (PTRTYPE vector, void *stringv, int *nstringv, const int nchstringv) | 
| Return the content of a string vector.  More... | |
| int | getpointervector (PTRTYPE vector, PTRTYPE *pointerv, int *npointerv) | 
| Return the content of a pointer vector.  More... | |
| int | lcsetparameters (const char *class_name, PTRTYPE classp, const char *method, const char *key, PTRTYPE vecp) | 
| For the set methods:  More... | |
| int | lcgetparameters (const char *class_name, PTRTYPE classp, const char *method, const char *key, PTRTYPE vecp) | 
| For the get methods:  More... | |
Variables | |
| static std::vector< std::string > | filenamelist | 
| int do_get_method | ( | const LCParameters & | params, | 
| const char * | method, | ||
| const char * | key, | ||
| PTRTYPE | vector | ||
| ) | 
Definition at line 584 of file lciof77apiext.cc.
References std::endl().
Referenced by lcgetparameters().
| int do_set_method | ( | LCParameters & | params, | 
| const char * | method, | ||
| const char * | key, | ||
| PTRTYPE | vector | ||
| ) | 
Definition at line 561 of file lciof77apiext.cc.
References std::endl().
Referenced by lcsetparameters().
| PTRTYPE floatvectorcreate | ( | float * | floatv, | 
| const int | nfloatv | ||
| ) | 
Create/Delete a float vector.
Definition at line 401 of file lciof77apiext.cc.
References std::vector< T >::push_back().
| int floatvectordelete | ( | PTRTYPE | vector | ) | 
Definition at line 407 of file lciof77apiext.cc.
| int getfloatvector | ( | PTRTYPE | vector, | 
| float * | floatv, | ||
| int * | nfloatv | ||
| ) | 
Return the content of a float vector.
Definition at line 461 of file lciof77apiext.cc.
References std::endl(), and std::vector< T >::size().
| int getintvector | ( | PTRTYPE | vector, | 
| int * | intv, | ||
| int * | nintv | ||
| ) | 
Return the content of an int vector.
Definition at line 445 of file lciof77apiext.cc.
References std::endl(), and std::vector< T >::size().
Return the content of a pointer vector.
Definition at line 502 of file lciof77apiext.cc.
References std::endl(), and std::vector< T >::size().
| int getstringvector | ( | PTRTYPE | vector, | 
| void * | stringv, | ||
| int * | nstringv, | ||
| const int | nchstringv | ||
| ) | 
Return the content of a string vector.
Definition at line 478 of file lciof77apiext.cc.
References std::endl(), std::vector< T >::size(), and std::strcpy().
| int hepevt2lcio | ( | PTRTYPE | evtout | ) | 
Create an MCParticle collection from the hepevt common block and add it to the event.
Definition at line 273 of file lciof77apiext.cc.
References std::endl().
| PTRTYPE intvectorcreate | ( | int * | intv, | 
| const int | nintv | ||
| ) | 
Create/Delete an int vector.
Definition at line 389 of file lciof77apiext.cc.
References std::vector< T >::push_back().
| int intvectordelete | ( | PTRTYPE | vector | ) | 
Definition at line 395 of file lciof77apiext.cc.
Add a new SimCalorimeterHit with the given data to the collection.
Returns a pointer the new hit.
Definition at line 222 of file lciof77apiext.cc.
References C2F_POINTER.
| int lcaddsimtrackerhit | ( | PTRTYPE | collectionvec, | 
| int | cellID0, | ||
| double * | pos, | ||
| float | dEdx, | ||
| float | time, | ||
| PTRTYPE | mcp | ||
| ) | 
Add a new SimTrackerHit with the given data to the collection.
Definition at line 191 of file lciof77apiext.cc.
| int lcdumpevent | ( | PTRTYPE | event | ) | 
Dump the event to the stdout - one line per collection.
Definition at line 155 of file lciof77apiext.cc.
References dumpEvent(), and event.
| int lcdumpeventdetailed | ( | PTRTYPE | event | ) | 
Detailed dump of all the data in the event to stdout.
Definition at line 161 of file lciof77apiext.cc.
References event.
| int lcdumprunheader | ( | PTRTYPE | runheader | ) | 
Dump the run header to the stdout.
Definition at line 149 of file lciof77apiext.cc.
| PTRTYPE lcfloatvectorcreate | ( | float * | floatv, | 
| const int | nfloatv | ||
| ) | 
Create a LC float vector.
Definition at line 312 of file lciof77apiext.cc.
| int lcgeteventheader | ( | PTRTYPE | event, | 
| int * | irun, | ||
| int * | ievent, | ||
| int * | timestamp, | ||
| void * | detname | ||
| ) | 
Read the complete event header data from the event.
Definition at line 138 of file lciof77apiext.cc.
References event, and std::strcpy().
| int lcgetfloatvector | ( | PTRTYPE | vector, | 
| float * | floatv, | ||
| int * | nfloatv | ||
| ) | 
Return the content of a LC float vector.
Definition at line 347 of file lciof77apiext.cc.
References std::endl().
| int lcgetintvector | ( | PTRTYPE | vector, | 
| int * | intv, | ||
| int * | nintv | ||
| ) | 
Return the content of a LC int vector.
Definition at line 331 of file lciof77apiext.cc.
References std::endl().
| int lcgetmcparticledata | ( | PTRTYPE | mcparticle, | 
| int * | pdg, | ||
| int * | genstatus, | ||
| int * | simstatus, | ||
| double * | prodvtx, | ||
| float * | momentum, | ||
| float * | mass, | ||
| float * | charge, | ||
| int * | ndaughters | ||
| ) | 
Return all the data of the specified MCParticle in the arguments.
Definition at line 168 of file lciof77apiext.cc.
| int lcgetparameters | ( | const char * | class_name, | 
| PTRTYPE | classp, | ||
| const char * | method, | ||
| const char * | key, | ||
| PTRTYPE | vecp | ||
| ) | 
For the get methods:
Definition at line 540 of file lciof77apiext.cc.
References do_get_method(), and std::endl().
| PTRTYPE lcgetsimcalohit | ( | PTRTYPE | collection, | 
| int | i, | ||
| int * | cellID0, | ||
| int * | cellID1, | ||
| float * | energy, | ||
| float * | pos | ||
| ) | 
Return the data of the specified SimCalorimeterHit in the arguments.
Definition at line 234 of file lciof77apiext.cc.
References C2F_POINTER, and std::endl().
| int lcgetsimcalohitmccont | ( | PTRTYPE | hit, | 
| int | i, | ||
| PTRTYPE * | mcp, | ||
| float * | energy, | ||
| float * | time, | ||
| int * | pdg | ||
| ) | 
Return the specified contribution of a MCParticle to the hit in the arguments.
Definition at line 256 of file lciof77apiext.cc.
References C2F_POINTER, and std::endl().
| int lcgetsimtrackerhit | ( | PTRTYPE | collection, | 
| int | i, | ||
| int * | cellID, | ||
| double * | pos, | ||
| float * | dEdx, | ||
| float * | time, | ||
| PTRTYPE * | mcp | ||
| ) | 
Return all the data from the specified SimTrackerHit in the arguments.
Definition at line 208 of file lciof77apiext.cc.
| int lcgetstringvector | ( | PTRTYPE | vector, | 
| void * | stringv, | ||
| int * | nstringv, | ||
| const int | nchstringv | ||
| ) | 
Return the content of a LC string vector.
Definition at line 364 of file lciof77apiext.cc.
References std::endl(), std::vector< T >::size(), and std::strcpy().
| PTRTYPE lcintvectorcreate | ( | int * | intv, | 
| const int | nintv | ||
| ) | 
Create an LC int vector.
Definition at line 306 of file lciof77apiext.cc.
| int lcio2hepevt | ( | PTRTYPE | event | ) | 
Fill the hepevt common block with the MCParicle data in the LCIO event.
Definition at line 285 of file lciof77apiext.cc.
References std::endl(), and event.
Create an object vector.
Definition at line 297 of file lciof77apiext.cc.
References std::vector< T >::push_back().
| int lcrdropenchain | ( | PTRTYPE | reader, | 
| void * | filenamesv, | ||
| const int | nfiles, | ||
| const int | nchfilename | ||
| ) | 
Header file for additional f77-wrapper functions.
These functions add some convenient methods to the low level interface. Typically they allow to access all of the data of a particular object with one call.
by F.Gaede (combined convenient api in one file and renamed some functions)
Definition at line 37 of file lciof77apiext.cc.
References std::vector< T >::clear(), std::endl(), filenamelist, lcReader, std::vector< T >::push_back(), and std::vector< T >::size().
| PTRTYPE lcreadnextrunheader | ( | PTRTYPE | reader, | 
| int * | irun, | ||
| void * | detname, | ||
| void * | description, | ||
| void * | sdnamevec, | ||
| int * | nsubd, | ||
| const int | nchsubd | ||
| ) | 
Read the next run header and fills the return arguments with the data.
Definition at line 89 of file lciof77apiext.cc.
References std::vector< T >::begin(), std::string::c_str(), std::vector< T >::end(), std::endl(), lcReader, runHdr, std::vector< T >::size(), and std::strcpy().
| int lcseteventheader | ( | PTRTYPE | event, | 
| const int | irun, | ||
| const int | ievent, | ||
| const int | timestamp, | ||
| const char * | detname | ||
| ) | 
Set the complete event header data in the event.
Definition at line 129 of file lciof77apiext.cc.
References event.
| int lcsetparameters | ( | const char * | class_name, | 
| PTRTYPE | classp, | ||
| const char * | method, | ||
| const char * | key, | ||
| PTRTYPE | vecp | ||
| ) | 
For the set methods:
Definition at line 520 of file lciof77apiext.cc.
References do_set_method(), and std::endl().
| PTRTYPE lcstringvectorcreate | ( | void * | stringv, | 
| const int | nstringv, | ||
| const int | nchstringv | ||
| ) | 
Create a LC string vector.
Definition at line 318 of file lciof77apiext.cc.
References std::vector< T >::push_back().
| int lcwriterunheader | ( | PTRTYPE | writer, | 
| const int | irun, | ||
| const char * | detname, | ||
| const char * | description, | ||
| void * | sdnamevec, | ||
| const int | nsubd, | ||
| const int | nchsd | ||
| ) | 
Write a run header to the specified writer with the given data.
Definition at line 61 of file lciof77apiext.cc.
References std::endl(), and runHdr.
Create/Delete a pointer vector.
Definition at line 432 of file lciof77apiext.cc.
References std::vector< T >::push_back().
| int pointervectordelete | ( | PTRTYPE | vector | ) | 
Definition at line 438 of file lciof77apiext.cc.
| PTRTYPE stringvectorcreate | ( | void * | stringv, | 
| const int | nstringv, | ||
| const int | nchstringv | ||
| ) | 
Create/Delete a string vector.
Definition at line 413 of file lciof77apiext.cc.
References std::string::push_back().
| int stringvectordelete | ( | PTRTYPE | vector | ) | 
Definition at line 426 of file lciof77apiext.cc.
      
  | 
  static | 
Definition at line 31 of file lciof77apiext.cc.
Referenced by lcrdropenchain().
 1.8.5