1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 // * this class defines the TOF object to be stored
20 // * in OCDB on a run-by-run basis in order to have the status
21 // * of TOF trigger inputs. it stores 32 bit masks for each crate
27 #include "AliTOFTriggerMask.h"
29 ClassImp(AliTOFTriggerMask)
31 //_________________________________________________________
33 AliTOFTriggerMask::AliTOFTriggerMask() :
41 for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = 0;
44 //_________________________________________________________
46 AliTOFTriggerMask::~AliTOFTriggerMask()
54 //_________________________________________________________
56 AliTOFTriggerMask::AliTOFTriggerMask(const AliTOFTriggerMask &source) :
64 for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = source.fTriggerMask[iddl];
67 //_________________________________________________________
70 AliTOFTriggerMask::operator=(const AliTOFTriggerMask &source)
76 if (this == &source) return *this;
77 TObject::operator=(source);
79 for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = source.fTriggerMask[iddl];
84 //_________________________________________________________
87 AliTOFTriggerMask::SetTriggerMaskArray(UInt_t *array)
90 * set trigger mask array
93 for (Int_t iddl = 0; iddl < 72; iddl++) fTriggerMask[iddl] = array[iddl];