]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerCrate.cxx
Updated list of MUON libraries
[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
71a2d3aa 18/// \class AliMUONTriggerCrate
19/// Collection of trigger boards
20/// - one regional
21/// - sixteen local
22/// slot 0 holds the regional board
23/// \author Rachid Guernane (LPCCFd)
edd00c2d 24
25#include <TObjArray.h>
3772c90a 26
3772c90a 27#include "AliMUONTriggerBoard.h"
edd00c2d 28#include "AliMUONTriggerCrate.h"
3772c90a 29
30ClassImp(AliMUONTriggerCrate)
31
32//___________________________________________
33AliMUONTriggerCrate::AliMUONTriggerCrate()
da3d7180 34 : fNslots(0),
35 fNboards(0),
36 fBoards(0x0),
37 fSourceFileName(0)
3772c90a 38{
71a2d3aa 39/// Default constructor
3772c90a 40}
41
42//___________________________________________
43AliMUONTriggerCrate::~AliMUONTriggerCrate()
44{
71a2d3aa 45/// Destructor
46
3772c90a 47 delete fBoards;
48}
49
50//___________________________________________
da3d7180 51AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) :
52 TNamed(name,"Regional trigger crate"),
53 fNslots(n),
54 fNboards(0),
55 fBoards(new TObjArray(fNslots)),
56 fSourceFileName(0)
3772c90a 57{
71a2d3aa 58/// Standard constructor
3772c90a 59}
60
61//___________________________________________
62void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
63{
71a2d3aa 64/// Add board in crate container
3772c90a 65 fBoards->AddAt(board,i);
66 fNboards++;
67}
68