Add new tracklet base class
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 12:26:58 +0000 (12:26 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 12:26:58 +0000 (12:26 +0000)
TRD/AliTRDtrackletBase.cxx [new file with mode: 0644]
TRD/AliTRDtrackletBase.h [new file with mode: 0644]
TRD/TRDbaseLinkDef.h
TRD/libTRDbase.pkg

diff --git a/TRD/AliTRDtrackletBase.cxx b/TRD/AliTRDtrackletBase.cxx
new file mode 100644 (file)
index 0000000..b186037
--- /dev/null
@@ -0,0 +1,34 @@
+/**************************************************************************
+* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+*                                                                        *
+* Author: The ALICE Off-line Project.                                    *
+* Contributors are mentioned in the code where appropriate.              *
+*                                                                        *
+* Permission to use, copy, modify and distribute this software and its   *
+* documentation strictly for non-commercial purposes is hereby granted   *
+* without fee, provided that the above copyright notice appears in all   *
+* copies and that both the copyright notice and this permission notice   *
+* appear in the supporting documentation. The authors make no claims     *
+* about the suitability of this software for any purpose. It is          *
+* provided "as is" without express or implied warranty.                  *
+**************************************************************************/
+
+/* $Id: AliTRDtrackletBase.cxx 26327 2008-06-02 15:36:18Z cblume $ */
+
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+// TRD tracklet                                                           //
+// abstract base class for TRD tracklets                                  //
+//                                                                        //
+// Authors                                                                //
+//  Alex Bercuci (A.Bercuci@gsi.de)                                       //
+//  Jochen Klein (jochen.klein@cern.ch)                                   //
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
+
+#include "AliTRDtrackletBase.h"
+
+ClassImp(AliTRDtrackletBase)
+
+//_____________________________________________________________________________
diff --git a/TRD/AliTRDtrackletBase.h b/TRD/AliTRDtrackletBase.h
new file mode 100644 (file)
index 0000000..ee9a9ff
--- /dev/null
@@ -0,0 +1,62 @@
+#ifndef ALITRDTRACKLETBASE_H\r
+#define ALITRDTRACKLETBASE_H\r
+\r
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
+ * See cxx source for full Copyright notice                               */ \r
+\r
+/* $Id: AliTRDtrackletBase.h 26327 2008-06-02 15:36:18Z cblume $ */\r
+\r
+////////////////////////////////////////////////////////////////////////////\r
+//                                                                        //\r
+// TRD tracklet                                                           //\r
+// abstract base class for TRD tracklets                                  //\r
+//                                                                        //\r
+// Authors                                                                //\r
+//  Alex Bercuci (A.Bercuci@gsi.de)                                       //\r
+//  Jochen Klein (jochen.klein@cern.ch)                                   //\r
+//                                                                        //\r
+////////////////////////////////////////////////////////////////////////////\r
+\r
+#ifndef ROOT_TObject\r
+#include "TObject.h"\r
+#endif\r
+\r
+class AliTRDtrackletBase : public TObject {\r
+\r
+ public:\r
+\r
+    AliTRDtrackletBase() : TObject() {}\r
+    AliTRDtrackletBase(const AliTRDtrackletBase &o) : TObject(o) {}\r
+    virtual ~AliTRDtrackletBase() {}\r
+    \r
+    virtual Bool_t   CookPID() = 0;\r
+    \r
+    virtual Int_t    GetDetector() const = 0 ;\r
+\r
+    virtual Float_t  GetX() const  = 0; \r
+    virtual Float_t  GetY() const  = 0; \r
+    virtual Float_t  GetZ() const  = 0;\r
+    virtual Float_t  GetdYdX() const = 0; \r
+    virtual Float_t  GetdZdX() const { return 0; }\r
+\r
+    virtual Int_t    GetdY() const = 0;     // in units of 140um\r
+    virtual Int_t    GetYbin() const  = 0;  // in units of 160um \r
+    virtual Int_t    GetZbin() const  = 0;  // in pad length units\r
+\r
+    virtual Double_t GetPID(Int_t is=-1) const = 0;\r
+    \r
+    virtual void     LocalToGlobal(Float_t&, Float_t&, Float_t&, Float_t&) {}\r
+\r
+    virtual void     Print(Option_t * /*option=""*/) const {}\r
+    \r
+    virtual UInt_t   GetTrackletWord() const = 0; \r
+    \r
+    virtual void     SetDetector(Int_t id) = 0; \r
+    \r
+ protected:\r
+    \r
+    ClassDef(AliTRDtrackletBase, 1);        // Base class for TRD on- and offline tracklets\r
+\r
+};\r
+\r
+#endif\r
index c050816..fdedfa5 100644 (file)
@@ -81,6 +81,7 @@
 #pragma link C++ class  AliTRDmcmTracklet+;
 #pragma link C++ class  AliTRDmcm+;
 #pragma link C++ class  AliTRDmcmSim+;
+#pragma link C++ class  AliTRDtrackletBase+;
 #pragma link C++ class  AliTRDltuTracklet+;
 #pragma link C++ class  AliTRDgtuTrack+;
 #pragma link C++ class  AliTRDtrapAlu++;
index 0f93c15..282d608 100644 (file)
@@ -58,6 +58,7 @@ SRCS= AliTRDarrayI.cxx \
       AliTRDmcmSim.cxx \
       AliTRDtrigParam.cxx \
       AliTRDtrigger.cxx \
+      AliTRDtrackletBase.cxx \
       AliTRDltuTracklet.cxx \
       AliTRDgtuTrack.cxx \
       AliTRDtrapAlu.cxx \