TOF Online Calibration channel (C.Zampolli)
authorarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Oct 2006 09:13:24 +0000 (09:13 +0000)
committerarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Oct 2006 09:13:24 +0000 (09:13 +0000)
TOF/AliTOFChannelOnline.cxx [new file with mode: 0644]
TOF/AliTOFChannelOnline.h [new file with mode: 0644]

diff --git a/TOF/AliTOFChannelOnline.cxx b/TOF/AliTOFChannelOnline.cxx
new file mode 100644 (file)
index 0000000..e324791
--- /dev/null
@@ -0,0 +1,67 @@
+/**************************************************************************
+ * 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.                  *
+ **************************************************************************/
+
+/*
+$Log$
+*/  
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+// class for TOF Online calibration                                          //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+#include "AliTOFChannelOnline.h"
+
+ClassImp(AliTOFChannelOnline)
+
+//________________________________________________________________
+AliTOFChannelOnline::AliTOFChannelOnline():
+fStatus(kFALSE),
+fDelay(0)
+{
+  //default constructor
+}
+
+//________________________________________________________________
+AliTOFChannelOnline::AliTOFChannelOnline(Bool_t status, Float_t delay):
+fStatus(status),
+fDelay(delay)
+{
+  // constructor with status and delay
+}
+
+//________________________________________________________________
+AliTOFChannelOnline::AliTOFChannelOnline(const AliTOFChannelOnline& channel) :
+  TObject(channel),
+  fStatus(kFALSE),
+  fDelay(0)
+{
+// copy constructor
+
+}
+
+
+//________________________________________________________________
+AliTOFChannelOnline &AliTOFChannelOnline::operator =(const AliTOFChannelOnline& channel)
+{
+// assignment operator
+  fStatus= channel.GetStatus();
+  fDelay=channel.GetDelay();
+  return *this;
+}
+
+//
+
diff --git a/TOF/AliTOFChannelOnline.h b/TOF/AliTOFChannelOnline.h
new file mode 100644 (file)
index 0000000..df97b31
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef ALITOFCHANNELONLINE_H
+#define ALITOFCHANNELONLINE_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+////////////////////////////////////////////////
+//  class for TOF Online calibration                 //
+////////////////////////////////////////////////
+
+#include "TObject.h"
+
+class AliTOFChannelOnline: public TObject {
+
+public:
+  AliTOFChannelOnline();
+  AliTOFChannelOnline(Bool_t status, Float_t delay);
+  AliTOFChannelOnline(const AliTOFChannelOnline &chan);
+  AliTOFChannelOnline& operator= (const AliTOFChannelOnline &chan);
+  virtual ~AliTOFChannelOnline(){};
+  Bool_t   GetStatus()         const {return fStatus;}
+  Float_t  GetDelay()          const {return fDelay;}
+  void    SetStatus(Bool_t status) {fStatus=status;}
+  void     SetDelay(Float_t val) {fDelay=val;}
+
+private:
+  Bool_t   fStatus;     // Status of the channel (0:on 1:off)
+  Float_t  fDelay;     // Delay
+  //
+  ClassDef(AliTOFChannelOnline,1)    // TOF Sensor Online Calibration object
+};
+
+#endif