]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONDDLTrigger.cxx
Removing obsolete constants.
[u/mrichter/AliRoot.git] / MUON / AliMUONDDLTrigger.cxx
CommitLineData
69be760c 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 **************************************************************************/
13985652 15
16/* $Id$ */
8c343c7c 17
69be760c 18#include "AliMUONDDLTrigger.h"
2cf44ef3 19#include "AliMUONLocalStruct.h"
20#include "AliMUONRegHeader.h"
21#include "AliMUONDarcHeader.h"
69be760c 22
85fec35d 23///
24/// \class AliMUONDDLTrigger
25///
26/// One DDL for trigger part of the MUON spectrometer.
27///
28/// \author C. Finck
29///
30
13985652 31/// \cond CLASSIMP
32ClassImp(AliMUONDDLTrigger)
33/// \endcond
c8f4be1a 34
69be760c 35//___________________________________________
36AliMUONDDLTrigger::AliMUONDDLTrigger()
2cf44ef3 37 : TObject()
69be760c 38{
2cf44ef3 39 //
69be760c 40 //ctor
2cf44ef3 41 //
42 fDarcHeader = new AliMUONDarcHeader();
69be760c 43}
44
45//___________________________________________
46AliMUONDDLTrigger::~AliMUONDDLTrigger()
47{
2cf44ef3 48 //
69be760c 49 //dtor
2cf44ef3 50 //
51 delete fDarcHeader;
52
53}
54
55//___________________________________________
56void AliMUONDDLTrigger::AddRegHeader(const AliMUONRegHeader& regHeader)
57{
58 // adding regional header informations
59 // in the given TClonesArray
60 //
61 TClonesArray* regHeaderArray = (TClonesArray*)fDarcHeader->GetRegHeaderArray();
62
63 TClonesArray &eventArray = *regHeaderArray;
64 new(eventArray[eventArray.GetEntriesFast()]) AliMUONRegHeader(regHeader);
65}
66
67//___________________________________________
68void AliMUONDDLTrigger::AddLocStruct(const AliMUONLocalStruct& loc, Int_t iReg)
69{
70 // adding local card informations
71 // for a given regional structure
72 // using TClonesArrays
73
74 AliMUONRegHeader* regHeader = (AliMUONRegHeader*)fDarcHeader->GetRegHeaderEntry(iReg);
75
76 TClonesArray* localArray = (TClonesArray*)regHeader->GetLocalArray();
77
78 TClonesArray &locArray = *localArray;
79 new(locArray[locArray.GetEntriesFast()]) AliMUONLocalStruct(loc);
69be760c 80}