]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New base class.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Dec 2009 23:03:31 +0000 (23:03 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Dec 2009 23:03:31 +0000 (23:03 +0000)
STEER/AliVCuts.cxx [new file with mode: 0644]
STEER/AliVCuts.h [new file with mode: 0644]

diff --git a/STEER/AliVCuts.cxx b/STEER/AliVCuts.cxx
new file mode 100644 (file)
index 0000000..81342e2
--- /dev/null
@@ -0,0 +1,45 @@
+/**************************************************************************
+ * Copyright(c) 1998-2007, 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$ */
+
+//-------------------------------------------------------------------------
+//     Event cuts base class
+//     Author: Markus Oldenburg, CERN
+//-------------------------------------------------------------------------
+
+#include "AliVCuts.h"
+
+ClassImp(AliVCuts)
+
+//______________________________________________________________________________
+AliVCuts::AliVCuts() : 
+  TNamed("Cuts","") { } // default constructor 
+
+AliVCuts::AliVCuts(const char* name, const char* title) :
+  TNamed(name, title) { } 
+//______________________________________________________________________________
+AliVCuts::AliVCuts(const AliVCuts& cuts) :
+  TNamed(cuts) {} // Copy constructor
+
+//______________________________________________________________________________
+AliVCuts& AliVCuts::operator=(const AliVCuts& cuts)
+{
+  // Assignment operator
+  if(this!=&cuts) { 
+    TNamed::operator=(cuts);
+  }
+  return *this;
+}
diff --git a/STEER/AliVCuts.h b/STEER/AliVCuts.h
new file mode 100644 (file)
index 0000000..da90db1
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef AliVCuts_H
+#define AliVCuts_H
+/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//     Event cuts base class
+//     Author: Andreas Morsch, CERN
+//-------------------------------------------------------------------------
+
+#include <TNamed.h>
+
+class AliVCuts : public TNamed {
+
+ public :
+  AliVCuts(); 
+  AliVCuts(const char* name, const char* title); 
+  virtual ~AliVCuts() { };
+  AliVCuts(const AliVCuts& evt); 
+  AliVCuts& operator=(const AliVCuts& evt);
+  virtual Bool_t IsSelected(TObject* /* obj  */)  = 0;
+  ClassDef(AliVCuts,1);
+};
+
+#endif