]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- adding geometry classes to facilitate for having a CALO class for evaluating cluste...
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Feb 2010 01:13:23 +0000 (01:13 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Feb 2010 01:13:23 +0000 (01:13 +0000)
HLT/CALO/AliHLTCaloGeometry.cxx [new file with mode: 0644]
HLT/CALO/AliHLTCaloGeometry.h [new file with mode: 0644]
HLT/CALO/AliHLTCaloGlobalCoordinate.h [new file with mode: 0644]
HLT/PHOS/AliHLTPHOSGeometry.cxx [new file with mode: 0644]
HLT/PHOS/AliHLTPHOSGeometry.h [new file with mode: 0644]

diff --git a/HLT/CALO/AliHLTCaloGeometry.cxx b/HLT/CALO/AliHLTCaloGeometry.cxx
new file mode 100644 (file)
index 0000000..e76d612
--- /dev/null
@@ -0,0 +1,49 @@
+// $Id:   $
+
+/**************************************************************************
+ * This file is property of and copyright by the Experimental Nuclear     *
+ * Physics Group, Dep. of Physics                                         *
+ * University of Oslo, Norway, 2006                                       *
+ *                                                                        * 
+ * Author: Federico Ronchetti                                                            *
+ *                                                                        *
+ * 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.                  *
+ **************************************************************************/
+
+//
+//
+//
+
+#include "AliHLTCaloGeometry.h"
+#include "unistd.h"
+#include <iostream>
+
+ClassImp(AliHLTCaloGeometry);
+
+AliHLTCaloGeometry::AliHLTCaloGeometry(TString det) :  
+  AliHLTCaloConstantsHandler(det)
+{  
+  //see header file for class documentation
+}
+
+
+AliHLTCaloGeometry::~AliHLTCaloGeometry()
+{
+
+}
+
+//void AliHLTCaloGeometry:: GetGlobalCoordinates(AliHLTCaloCoordinate &channelCoord, AliHLTCaloGlobalCoordinate &globalCoord )
+//{
+  //Virtual base class
+//}
+
+
+
+
+
diff --git a/HLT/CALO/AliHLTCaloGeometry.h b/HLT/CALO/AliHLTCaloGeometry.h
new file mode 100644 (file)
index 0000000..7ed9b22
--- /dev/null
@@ -0,0 +1,36 @@
+//-*- Mode: C++ -*-
+#ifndef ALIHLTCALOGEOMETRY_H
+#define ALIHLTCALOGEOMETRY_H
+/* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+// Author: Federico Ronchetti 
+
+#include "Rtypes.h"
+#include "AliHLTCaloConstants.h"
+#include "AliHLTCaloConstantsHandler.h"
+#include "AliHLTCaloCoordinate.h"
+#include "AliHLTCaloGlobalCoordinate.h"
+#include "AliHLTCaloRecPointDataStruct.h"
+
+class AliHLTCaloCoordinate;
+class AliHLTCaloGlobalCoordinate;
+
+class AliHLTCaloGeometry : public AliHLTCaloConstantsHandler
+{
+
+ public:
+  AliHLTCaloGeometry (TString det);
+  virtual ~AliHLTCaloGeometry();
+  virtual void GetGlobalCoordinates(AliHLTCaloRecPointDataStruct &recPoint, AliHLTCaloGlobalCoordinate &globalCoord ) = 0;
+  
+  private:
+     
+    
+   AliHLTCaloGeometry();
+
+
+};
+
+#endif
+
diff --git a/HLT/CALO/AliHLTCaloGlobalCoordinate.h b/HLT/CALO/AliHLTCaloGlobalCoordinate.h
new file mode 100644 (file)
index 0000000..009d3b7
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef ALIHLTCALOGLOBALCOORDINATE_H
+#define ALIHLTCALOGLOBALCOORDINATE_H
+
+/**************************************************************************
+ * This file is property of and copyright by the Experimental Nuclear     *
+ * Physics Group, Dep. of Physics                                         *
+ * University of Oslo, Norway, 2007                                       *
+ *                                                                        *
+ * Author: Federico Ronchetti                                                            *
+ *                                                                        *
+ * 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.                  *
+ **************************************************************************/
+
+#include "Rtypes.h"
+
+struct  AliHLTCaloGlobalCoordinate
+{
+  float fX;
+  float fY;
+  float fZ;
+};
+
+#endif
diff --git a/HLT/PHOS/AliHLTPHOSGeometry.cxx b/HLT/PHOS/AliHLTPHOSGeometry.cxx
new file mode 100644 (file)
index 0000000..c73fd8c
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Authors: Oystein Djuvsland <oysteind@ift.uib.no>                       *
+ *                                                                        *
+ * 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.                  *
+ **************************************************************************
+*/
+
+#include "AliHLTPHOSGeometry.h"
+
+
+
+AliHLTPHOSGeometry::AliHLTPHOSGeometry() :
+AliHLTCaloGeometry("PHOS")
+{
+
+}
+
+AliHLTPHOSGeometry::~AliHLTPHOSGeometry()
+{
+
+}
+
+void AliHLTPHOSGeometry::GetGlobalCoordinates ( AliHLTCaloRecPointDataStruct& recPoint, AliHLTCaloGlobalCoordinate& globalCoord )
+{
+   globalCoord.fX = 0;
+   globalCoord.fZ = 0;
+   globalCoord.fY = 0;
+}
+
diff --git a/HLT/PHOS/AliHLTPHOSGeometry.h b/HLT/PHOS/AliHLTPHOSGeometry.h
new file mode 100644 (file)
index 0000000..c03c2dd
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Authors: Oystein Djuvsland <oysteind@ift.uib.no>                       *
+ *                                                                        *
+ * 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.                  *
+ **************************************************************************
+*/
+
+#ifndef ALIHLTPHOSGEOMETRY_H
+#define ALIHLTPHOSGEOMETRY_H
+
+#include "AliHLTCaloGeometry.h"
+
+class AliHLTPHOSGeometry : public AliHLTCaloGeometry
+  {
+     public:
+
+      /** Default constructor */
+      AliHLTPHOSGeometry ();   //COMMENT
+    
+      /** Destructor */
+      virtual ~AliHLTPHOSGeometry ();       //COMMENT
+      
+      /** Get the ALICE global coordinates for a rec point */
+      virtual void GetGlobalCoordinates ( AliHLTCaloRecPointDataStruct& recPoint,  AliHLTCaloGlobalCoordinate& globalCoord ); //COMMENT
+    
+  };
+
+#endif // ALIHLTPHOSGEOMETRY_H