- Removed not implemented methods AddData(), GetGlobalTriggerPattern
[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)
edd00c2d 19// COLLECTION OF TRIGGER BOARDS
20// ONE REGIONAL
21// SIXTEEN LOCAL
22// SLOT 0 HOLDS THE REGIONAL BOARD
23
24#include <TObjArray.h>
3772c90a 25
3772c90a 26#include "AliMUONTriggerBoard.h"
edd00c2d 27#include "AliMUONTriggerCrate.h"
3772c90a 28
29ClassImp(AliMUONTriggerCrate)
30
31//___________________________________________
32AliMUONTriggerCrate::AliMUONTriggerCrate()
da3d7180 33 : fNslots(0),
34 fNboards(0),
35 fBoards(0x0),
36 fSourceFileName(0)
3772c90a 37{
38 // Def Ctor
39}
40
41//___________________________________________
42AliMUONTriggerCrate::~AliMUONTriggerCrate()
43{
44 delete fBoards;
45}
46
47//___________________________________________
da3d7180 48AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) :
49 TNamed(name,"Regional trigger crate"),
50 fNslots(n),
51 fNboards(0),
52 fBoards(new TObjArray(fNslots)),
53 fSourceFileName(0)
3772c90a 54{
3772c90a 55}
56
57//___________________________________________
58void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
59{
edd00c2d 60 // ADD BOARD IN CRATE CONTAINER
3772c90a 61 fBoards->AddAt(board,i);
62 fNboards++;
63}
64
65//___________________________________________
da3d7180 66AliMUONTriggerCrate::AliMUONTriggerCrate(const AliMUONTriggerCrate &crate)
67 : TNamed(crate),
68 fNslots(crate.fNslots),
69 fNboards(crate.fNboards),
70 fBoards(crate.fBoards),
71 fSourceFileName(crate.fSourceFileName)
3772c90a 72{
da3d7180 73
3772c90a 74// Dummy Copy Ctor
da3d7180 75// crate.Copy(*this);
3772c90a 76}
77
78//___________________________________________
79AliMUONTriggerCrate& AliMUONTriggerCrate::operator=(const AliMUONTriggerCrate &rhs)
80{
81// Assignment optor
82 rhs.Copy(*this);
83 return (*this);
84}
85
86//___________________________________________
87void AliMUONTriggerCrate::Copy(TObject&) const
88{
89 Fatal("Copy","Not implemented!\n");
90}