]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New base class
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 19:33:25 +0000 (19:33 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 19:33:25 +0000 (19:33 +0000)
STEER/STEERBase/AliVCaloTrigger.cxx [new file with mode: 0644]
STEER/STEERBase/AliVCaloTrigger.h [new file with mode: 0644]

diff --git a/STEER/STEERBase/AliVCaloTrigger.cxx b/STEER/STEERBase/AliVCaloTrigger.cxx
new file mode 100644 (file)
index 0000000..768f22b
--- /dev/null
@@ -0,0 +1,47 @@
+/**************************************************************************
+ * 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: AliVCaloTrigger.cxx  $ */
+
+//-----------------------------------------------------------------
+//
+//   Virtual class to access calorimeter 
+//   (EMCAL, PHOS, PMD, FMD) trigger data
+//   Author: Salvatore Aiola
+//
+//-----------------------------------------------------------------
+
+#include "AliVCaloTrigger.h"
+
+ClassImp(AliVCaloTrigger)
+  
+  AliVCaloTrigger::AliVCaloTrigger(const AliVCaloTrigger& vtrg) :
+    TNamed(vtrg) { ; } // Copy constructor
+
+AliVCaloTrigger& AliVCaloTrigger::operator=(const AliVCaloTrigger& vtrg)
+{ 
+  //Assignment operator
+  if (this!=&vtrg) { 
+    TObject::operator=(vtrg); 
+  }
+  
+  return *this; 
+}
+
+
+void AliVCaloTrigger::Copy(TObject &obj) const 
+{      
+  TNamed::Copy(obj);
+}
diff --git a/STEER/STEERBase/AliVCaloTrigger.h b/STEER/STEERBase/AliVCaloTrigger.h
new file mode 100644 (file)
index 0000000..d7d338f
--- /dev/null
@@ -0,0 +1,60 @@
+#ifndef ALIVCALOTRIGGER_H
+#define ALIVCALOTRIGGER_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+/* $Id: AliVCaloTrigger.h  $ */
+
+//-------------------------------------------------------------------------
+//
+//   Virtual class to access calorimeter 
+//   (EMCAL, PHOS, PMD, FMD) trigger data
+//   Author: Salvatore Aiola
+//
+//-------------------------------------------------------------------------
+
+#include <TNamed.h>
+
+class AliVCaloTrigger : public TNamed 
+{
+public:
+
+  AliVCaloTrigger() {;}
+  AliVCaloTrigger(const char* name, const char* title) : TNamed(name, title) {;}
+  AliVCaloTrigger(const AliVCaloTrigger& ctrig);
+  virtual ~AliVCaloTrigger() {;}
+  AliVCaloTrigger& operator=(const AliVCaloTrigger& ctrig);
+       
+  virtual Bool_t       IsEmpty()                                             = 0;
+  virtual void         Reset()                                               = 0;
+  virtual void         Allocate(Int_t /*size*/)                              = 0;
+  virtual void         DeAllocate()                                          = 0;
+  virtual Bool_t       Add(Int_t /*col*/, Int_t /*row*/, 
+                          Float_t /*amp*/, Float_t /*time*/, 
+                          Int_t* /*trgtimes*/, Int_t /*ntrgtimes*/, 
+                          Int_t /*trgts*/, Int_t /*trgbits*/)               = 0;
+  virtual void         SetL1Threshold(Int_t /*i*/, Int_t /*thr*/)            = 0;
+  virtual void         SetL1V0(const Int_t* /*v*/)                           = 0;
+  virtual void         SetL1FrameMask(Int_t /*m*/)                           = 0;
+
+  virtual void         GetPosition(Int_t& /*col*/, Int_t& /*row*/)    const  = 0;
+  virtual void         GetAmplitude(Float_t& /*amp*/)                 const  = 0;
+  virtual void         GetTime(Float_t& /*time*/)                     const  = 0;
+  virtual void         GetTriggerBits(Int_t& /*bits*/)                const  = 0;
+  virtual void         GetNL0Times(Int_t& /*ntimes*/)                 const  = 0;
+  virtual void         GetL0Times(Int_t* /*times*/)                   const  = 0;
+  virtual Int_t        GetEntries()                                   const  = 0;
+
+  virtual void         GetL1TimeSum(Int_t& /*timesum*/)               const  = 0;
+  virtual Int_t        GetL1Threshold(Int_t /*i*/)                    const  = 0;
+  virtual Int_t        GetL1V0(Int_t /*i*/)                           const  = 0;
+  virtual Int_t        GetL1FrameMask()                               const  = 0;
+  virtual Bool_t       Next()                                                = 0;
+  virtual void         Copy(TObject& obj)                             const     ;
+       
+private:
+
+  ClassDef(AliVCaloTrigger, 0)
+};
+#endif //ALIVCALOTRIGGER_H
+