- Coding conventions
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCrate.cxx
CommitLineData
3772c90a 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18//*-- Author: Rachid Guernane (LPCCFd)
19
20#include "AliMUONTriggerCrate.h"
21#include "AliMUONTriggerBoard.h"
22
23ClassImp(AliMUONTriggerCrate)
24
25//___________________________________________
26AliMUONTriggerCrate::AliMUONTriggerCrate()
27: fNslots(0),
28 fNboards(0),
29 fBoards(0x0)
30{
31 // Def Ctor
32}
33
34//___________________________________________
35AliMUONTriggerCrate::~AliMUONTriggerCrate()
36{
37 delete fBoards;
38}
39
40//___________________________________________
41AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : TNamed(name,"Regional trigger crate")
42{
43 fNslots = n;
44 fBoards = new TObjArray(fNslots);
45}
46
47//___________________________________________
48void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
49{
50 fBoards->AddAt(board,i);
51 fNboards++;
52}
53
54//___________________________________________
55AliMUONTriggerCrate::AliMUONTriggerCrate(const AliMUONTriggerCrate &crate) : TNamed(crate)
56{
57// Dummy Copy Ctor
58 crate.Copy(*this);
59}
60
61//___________________________________________
62AliMUONTriggerCrate& AliMUONTriggerCrate::operator=(const AliMUONTriggerCrate &rhs)
63{
64// Assignment optor
65 rhs.Copy(*this);
66 return (*this);
67}
68
69//___________________________________________
70void AliMUONTriggerCrate::Copy(TObject&) const
71{
72 Fatal("Copy","Not implemented!\n");
73}