Print

Print


Commit in lcio/src/cpp/include/UTIL on MAIN
LCFourVector.h+1-11.7 -> 1.8
LCFourVector.icc+4-41.7 -> 1.8
+5-5
2 modified files
made template member specializations inline (gcc4.x)

lcio/src/cpp/include/UTIL
LCFourVector.h 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- LCFourVector.h	24 Mar 2006 11:11:36 -0000	1.7
+++ LCFourVector.h	28 Apr 2006 10:35:04 -0000	1.8
@@ -39,7 +39,7 @@
     
     /** Constructor for templated type,e.g. LCFourVector<MCParticle>( myMCParticle ).
      */
-    LCFourVector( const TT* lcObj) : _lcObj(lcObj) {
+    inline LCFourVector( const TT* lcObj) : _lcObj(lcObj) {
     }
     
     

lcio/src/cpp/include/UTIL
LCFourVector.icc 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- LCFourVector.icc	24 Mar 2006 11:11:36 -0000	1.7
+++ LCFourVector.icc	28 Apr 2006 10:35:05 -0000	1.8
@@ -22,7 +22,7 @@
   // specializations for the different LCObjects that have 4 vector information
 
   template<>
-  LCFourVector<MCParticle>::LCFourVector( const MCParticle* mcPart ) : 
+  inline LCFourVector<MCParticle>::LCFourVector( const MCParticle* mcPart ) : 
     HepLorentzVector(mcPart->getMomentum()[0],
 		     mcPart->getMomentum()[1],
 		     mcPart->getMomentum()[2],
@@ -30,7 +30,7 @@
   {
   }
   template<>
-  LCFourVector<MCParticle>::LCFourVector(LCObject* lcObj){
+  inline LCFourVector<MCParticle>::LCFourVector(LCObject* lcObj){
     
     _lcObj = dynamic_cast<MCParticle* >( lcObj ) ;
 
@@ -47,7 +47,7 @@
   }
 
   template<>
-  LCFourVector<ReconstructedParticle>::LCFourVector( const ReconstructedParticle* part ) : 
+  inline LCFourVector<ReconstructedParticle>::LCFourVector( const ReconstructedParticle* part ): 
     HepLorentzVector(part->getMomentum()[0],
 		     part->getMomentum()[1],
 		     part->getMomentum()[2],
@@ -55,7 +55,7 @@
   {
   }
   template<>
-  LCFourVector<ReconstructedParticle>::LCFourVector(LCObject* lcObj){
+  inline LCFourVector<ReconstructedParticle>::LCFourVector(LCObject* lcObj){
     
     _lcObj = dynamic_cast<ReconstructedParticle* >( lcObj ) ;
 
CVSspam 0.2.8