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