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