#include "CPPFORT/lcclu.h"#include "lcio.h"#include "IMPL/ClusterImpl.h"#include <iostream>Include dependency graph for lcclu.cc:

Go to the source code of this file.
Functions | |
| PTRTYPE | lcclucreate () |
| int | lccludelete (PTRTYPE cluster) |
| int | lccluid (PTRTYPE cluster) |
| int | lcclugettype (PTRTYPE cluster) |
| float | lcclugetenergy (PTRTYPE cluster) |
| int | lcclugetposition (PTRTYPE cluster, float *pos) |
| int | lcclugetpositionerror (PTRTYPE cluster, float poserr[6]) |
| float | lcclugetitheta (PTRTYPE cluster) |
| float | lcclugetiphi (PTRTYPE cluster) |
| int | lcclugetdirectionerror (PTRTYPE cluster, float direrr[3]) |
| PTRTYPE | lcclugetshape (PTRTYPE cluster) |
| PTRTYPE | lcclugetparticleids (PTRTYPE cluster) |
| PTRTYPE | lcclugetclusters (PTRTYPE cluster) |
| PTRTYPE | lcclugetcalorimeterhits (PTRTYPE cluster) |
| PTRTYPE | lcclugetsubdetectorenergies (PTRTYPE cluster) |
| int | lcclugethitcontributions (PTRTYPE cluster, float *weights, int *nweights) |
| int | lcclusettypebit (PTRTYPE cluster, int bit, int val) |
| int | lcclusetenergy (PTRTYPE cluster, float energy) |
| int | lcclusetposition (PTRTYPE cluster, float pos[3]) |
| int | lcclusetpositionerror (PTRTYPE cluster, float errpos[3]) |
| int | lcclusetitheta (PTRTYPE cluster, float theta) |
| int | lcclusetiphi (PTRTYPE cluster, float phi) |
| int | lcclusetdirectionerror (PTRTYPE cluster, float errdir[3]) |
| int | lcclusetshape (PTRTYPE cluster, PTRTYPE vector) |
| int | lccluaddparticleid (PTRTYPE cluster, PTRTYPE pid) |
| int | lccluaddcluster (PTRTYPE cluster, PTRTYPE clus) |
| int | lccluaddhit (PTRTYPE cluster, PTRTYPE calohit, float weight) |
| int | lcclusetsubdetectorenergies (PTRTYPE cluster, float *floatv, const int nfloatv) |
| PTRTYPE lcclucreate | ( | ) |
| int lccludelete | ( | PTRTYPE | cluster | ) |
| int lccluid | ( | PTRTYPE | cluster | ) |
| int lcclugettype | ( | PTRTYPE | cluster | ) |
| float lcclugetenergy | ( | PTRTYPE | cluster | ) |
| int lcclugetposition | ( | PTRTYPE | cluster, | |
| float * | pos | |||
| ) |
| int lcclugetpositionerror | ( | PTRTYPE | cluster, | |
| float | poserr[6] | |||
| ) |
| float lcclugetitheta | ( | PTRTYPE | cluster | ) |
| float lcclugetiphi | ( | PTRTYPE | cluster | ) |
| int lcclugetdirectionerror | ( | PTRTYPE | cluster, | |
| float | direrr[3] | |||
| ) |
| PTRTYPE lcclugetshape | ( | PTRTYPE | cluster | ) |
| PTRTYPE lcclugetparticleids | ( | PTRTYPE | cluster | ) |
| PTRTYPE lcclugetclusters | ( | PTRTYPE | cluster | ) |
| PTRTYPE lcclugetcalorimeterhits | ( | PTRTYPE | cluster | ) |
| PTRTYPE lcclugetsubdetectorenergies | ( | PTRTYPE | cluster | ) |
| int lcclugethitcontributions | ( | PTRTYPE | cluster, | |
| float * | weights, | |||
| int * | nweights | |||
| ) |
Definition at line 115 of file lcclu.cc.
00115 { 00116 ClusterImpl* clu = f2c_pointer<ClusterImpl,LCObject>( cluster ) ; 00117 int ntot = *nweights -1 ; 00118 for(unsigned int l=0;l<clu->getCalorimeterHits().size();l++){ 00119 if ( l > (unsigned)ntot ) { 00120 std::cout << "LCCluster: in getHitContributions more than " << ntot << "weights to store" << std::endl ; 00121 return LCIO::ERROR ; 00122 } 00123 *weights++ = clu->getHitContributions()[l] ; 00124 } 00125 *nweights = (int)(clu->getCalorimeterHits().size() + 1); 00126 return LCIO::SUCCESS ; 00127 }
| int lcclusettypebit | ( | PTRTYPE | cluster, | |
| int | bit, | |||
| int | val | |||
| ) |
| int lcclusetenergy | ( | PTRTYPE | cluster, | |
| float | energy | |||
| ) |
| int lcclusetposition | ( | PTRTYPE | cluster, | |
| float | pos[3] | |||
| ) |
| int lcclusetpositionerror | ( | PTRTYPE | cluster, | |
| float | errpos[3] | |||
| ) |
| int lcclusetitheta | ( | PTRTYPE | cluster, | |
| float | theta | |||
| ) |
| int lcclusetiphi | ( | PTRTYPE | cluster, | |
| float | phi | |||
| ) |
| int lcclusetdirectionerror | ( | PTRTYPE | cluster, | |
| float | errdir[3] | |||
| ) |
| int lcclusetshape | ( | PTRTYPE | cluster, | |
| PTRTYPE | vector | |||
| ) |
| int lccluaddparticleid | ( | PTRTYPE | cluster, | |
| PTRTYPE | pid | |||
| ) |
| int lccluaddcluster | ( | PTRTYPE | cluster, | |
| PTRTYPE | clus | |||
| ) |
| int lccluaddhit | ( | PTRTYPE | cluster, | |
| PTRTYPE | calohit, | |||
| float | weight | |||
| ) |
| int lcclusetsubdetectorenergies | ( | PTRTYPE | cluster, | |
| float * | floatv, | |||
| const int | nfloatv | |||
| ) |
Definition at line 227 of file lcclu.cc.
00227 { 00228 ClusterImpl* clu = f2c_pointer<ClusterImpl,LCObject>( cluster ) ; 00229 FloatVec& floatvec = clu->subdetectorEnergies() ; 00230 floatvec.resize( nfloatv ) ; 00231 for(int j=0;j<nfloatv;j++) { 00232 floatvec[j] = floatv[j] ; 00233 } 00234 return LCIO::SUCCESS ; 00235 00236 }
1.4.7