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