]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMakerv1.h
Added test for existence of the vertex (fixes crash)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMakerv1.h
index cf1322d48945869c00c3fa3e3e67ba365a6401a3..1283c9105085f4a72b8dcd53a73d5d91e1450d8c 100644 (file)
@@ -4,6 +4,13 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.46  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
 
 //_________________________________________________________________________
 // Implementation version 1 of algorithm class to construct PHOS track segments
@@ -45,9 +52,9 @@ public:
 
           void   MakeLinks() const;      //Evaluates distances(links) between EMC and CPV
           void   MakePairs() ;           //Finds pairs(triplets) with smallest link
-  virtual void   Print() const ;
+  virtual void   Print(const Option_t * = "") const ;
   //Switch to "on flyght" mode, without writing to TreeR and file  
-  void SetWriting(const Bool_t toWrite = kFALSE){fWrite = toWrite;} 
+  void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;} 
   virtual void   SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane) 
                                                                //between EMCrp and CPVrp
   virtual void   SetMaxCPVTPCDistance(Float_t r){ fRtpc = r ;} //Maximal distance 
@@ -67,7 +74,9 @@ private:
 
   const TString BranchName() const ; 
   Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSCpvRecPoint * Cpv , Int_t & track ) const ; // see R0
-  TVector3 PropagateToPlane(Double_t *x, Double_t *p, char *det, Int_t module) const;
+  void PropagateToPlane(TVector3& globalIntersection,
+                       Double_t *x, Double_t *p,
+                       const char *det, Int_t module) const;
   void    Init() ;
   void    InitParameters() ;
   void    PrintTrackSegments(Option_t *option) ;