]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFTriggerMask.cxx
changes are needed in order to implement the code to be used in the TRIGGER PreProces...
[u/mrichter/AliRoot.git] / TOF / AliTOFTriggerMask.cxx
diff --git a/TOF/AliTOFTriggerMask.cxx b/TOF/AliTOFTriggerMask.cxx
new file mode 100644 (file)
index 0000000..9f5f4a0
--- /dev/null
@@ -0,0 +1,95 @@
+/**************************************************************************
+ * 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.                  *
+ **************************************************************************/
+
+// *
+// *
+// *
+// * this class defines the TOF object to be stored
+// * in OCDB on a run-by-run basis in order to have the status
+// * of TOF trigger inputs. it stores 32 bit masks for each crate
+// * 
+// *
+// *
+// *
+
+#include "AliTOFTriggerMask.h"
+
+ClassImp(AliTOFTriggerMask)
+
+//_________________________________________________________
+
+AliTOFTriggerMask::AliTOFTriggerMask() :
+  TObject(),
+  fTriggerMask()
+{
+  /*
+   * default constructor
+   */
+
+  for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = 0;
+}
+
+//_________________________________________________________
+
+AliTOFTriggerMask::~AliTOFTriggerMask()
+{
+  /*
+   * default destructor
+   */
+
+}
+
+//_________________________________________________________
+
+AliTOFTriggerMask::AliTOFTriggerMask(const AliTOFTriggerMask &source) :
+  TObject(source),
+  fTriggerMask()
+{
+  /*
+   * copy constructor
+   */
+
+  for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = source.fTriggerMask[iddl];
+}
+
+//_________________________________________________________
+
+AliTOFTriggerMask &
+AliTOFTriggerMask::operator=(const AliTOFTriggerMask &source)
+{
+  /*
+   * operator=
+   */
+
+  if (this == &source) return *this;
+  TObject::operator=(source);
+  
+  for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = source.fTriggerMask[iddl];
+
+  return *this;
+}
+
+//_________________________________________________________
+
+void
+AliTOFTriggerMask::SetTriggerMaskArray(UInt_t *array)
+{
+  /*
+   * set trigger mask array
+   */
+
+  for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = array[iddl];
+}
+