Modifications needed by the HBT analysis (P.Skowronski)
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalTrigger.cxx
CommitLineData
a9e2aefa 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/*
17
18*/
19
20#include "AliMUONGlobalTrigger.h"
21
22ClassImp(AliMUONGlobalTrigger);
23//----------------------------------------------------------------------
24AliMUONGlobalTrigger::AliMUONGlobalTrigger()
25{
26// constructor
27 fSinglePlusLpt = 0;
28 fSinglePlusHpt = 0;
29 fSinglePlusApt = 0;
30
31 fSingleMinusLpt = 0;
32 fSingleMinusHpt = 0;
33 fSingleMinusApt = 0;
34
35 fSingleUndefLpt = 0;
36 fSingleUndefHpt = 0;
37 fSingleUndefApt = 0;
38
39 fPairUnlikeLpt = 0;
40 fPairUnlikeHpt = 0;
41 fPairUnlikeApt = 0;
42
43 fPairLikeLpt = 0;
44 fPairLikeHpt = 0;
45 fPairLikeApt = 0;
46}
47//----------------------------------------------------------------------
e9b63742 48AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& MUONGlobalTrig):TObject(MUONGlobalTrig)
49{
50// copy constructor
51 fSinglePlusLpt = MUONGlobalTrig.fSinglePlusLpt;
52 fSinglePlusHpt = MUONGlobalTrig.fSinglePlusHpt;
53 fSinglePlusApt = MUONGlobalTrig.fSinglePlusApt;
54
55 fSingleMinusLpt = MUONGlobalTrig.fSingleMinusLpt;
56 fSingleMinusHpt = MUONGlobalTrig.fSingleMinusHpt;
57 fSingleMinusApt = MUONGlobalTrig.fSingleMinusApt;
58
59 fSingleUndefLpt = MUONGlobalTrig.fSingleUndefLpt;
60 fSingleUndefHpt = MUONGlobalTrig.fSingleUndefHpt;
61 fSingleUndefApt = MUONGlobalTrig.fSingleUndefApt;
62
63 fPairUnlikeLpt = MUONGlobalTrig.fPairUnlikeLpt;
64 fPairUnlikeHpt = MUONGlobalTrig.fPairUnlikeHpt;
65 fPairUnlikeApt = MUONGlobalTrig.fPairUnlikeApt;
66
67 fPairLikeLpt = MUONGlobalTrig.fPairLikeLpt;
68 fPairLikeHpt = MUONGlobalTrig.fPairLikeHpt;
69 fPairLikeApt = MUONGlobalTrig.fPairLikeApt;
70}
71
72//----------------------------------------------------------------------
73AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& MUONGlobalTrig)
74{
75// equal operator (useful for non-pointer member in TClonesArray)
76 if (this == &MUONGlobalTrig)
77 return *this;
78
79 fSinglePlusLpt = MUONGlobalTrig.fSinglePlusLpt;
80 fSinglePlusHpt = MUONGlobalTrig.fSinglePlusHpt;
81 fSinglePlusApt = MUONGlobalTrig.fSinglePlusApt;
82
83 fSingleMinusLpt = MUONGlobalTrig.fSingleMinusLpt;
84 fSingleMinusHpt = MUONGlobalTrig.fSingleMinusHpt;
85 fSingleMinusApt = MUONGlobalTrig.fSingleMinusApt;
86
87 fSingleUndefLpt = MUONGlobalTrig.fSingleUndefLpt;
88 fSingleUndefHpt = MUONGlobalTrig.fSingleUndefHpt;
89 fSingleUndefApt = MUONGlobalTrig.fSingleUndefApt;
90
91 fPairUnlikeLpt = MUONGlobalTrig.fPairUnlikeLpt;
92 fPairUnlikeHpt = MUONGlobalTrig.fPairUnlikeHpt;
93 fPairUnlikeApt = MUONGlobalTrig.fPairUnlikeApt;
94
95 fPairLikeLpt = MUONGlobalTrig.fPairLikeLpt;
96 fPairLikeHpt = MUONGlobalTrig.fPairLikeHpt;
97 fPairLikeApt = MUONGlobalTrig.fPairLikeApt;
98
99 return *this;
100}
101
102//----------------------------------------------------------------------
a9e2aefa 103AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
104 Int_t *singleMinus,
105 Int_t *singleUndef,
106 Int_t *pairUnlike, Int_t *pairLike)
107{
108// Set the Global Trigger object
109 fSinglePlusLpt = singlePlus[0];
110 fSinglePlusHpt = singlePlus[1];
111 fSinglePlusApt = singlePlus[2];
112
113 fSingleMinusLpt = singleMinus[0];
114 fSingleMinusHpt = singleMinus[1];
115 fSingleMinusApt = singleMinus[2];
116
117 fSingleUndefLpt = singleUndef[0];
118 fSingleUndefHpt = singleUndef[1];
119 fSingleUndefApt = singleUndef[2];
120
121 fPairUnlikeLpt = pairUnlike[0];
122 fPairUnlikeHpt = pairUnlike[1];
123 fPairUnlikeApt = pairUnlike[2];
124
125 fPairLikeLpt = pairLike[0];
126 fPairLikeHpt = pairLike[1];
127 fPairLikeApt = pairLike[2];
128}
402fb06e 129
130//----------------------------------------------------------------------
131//--- methods which return member data related info
132//----------------------------------------------------------------------
133Int_t AliMUONGlobalTrigger::SinglePlusLpt(){
134// returns Number of Single Plus Low pt
135 return fSinglePlusLpt;
136}
137//----------------------------------------------------------------------
138Int_t AliMUONGlobalTrigger::SinglePlusHpt(){
139// returns Number of Single Plus High pt
140 return fSinglePlusHpt;
141}
142//----------------------------------------------------------------------
143Int_t AliMUONGlobalTrigger::SinglePlusApt(){
144// returns Number of Single Plus All pt
145 return fSinglePlusApt;
146}
147//----------------------------------------------------------------------
148Int_t AliMUONGlobalTrigger::SingleMinusLpt(){
149// returns Number of Single Minus Low pt
150 return fSingleMinusLpt;
151}
152//----------------------------------------------------------------------
153Int_t AliMUONGlobalTrigger::SingleMinusHpt(){
154// returns Number of Single Minus High pt
155 return fSingleMinusHpt;
156}
157//----------------------------------------------------------------------
158Int_t AliMUONGlobalTrigger::SingleMinusApt(){
159// returns Number of Single Minus All pt
160 return fSingleMinusApt;
161}
162//----------------------------------------------------------------------
163Int_t AliMUONGlobalTrigger::SingleUndefLpt(){
164// returns Number of Single Undefined Low pt
165 return fSingleUndefLpt;
166}
167//----------------------------------------------------------------------
168Int_t AliMUONGlobalTrigger::SingleUndefHpt(){
169// returns Number of Single Undefined High pt
170 return fSingleUndefHpt;
171}
172//----------------------------------------------------------------------
173Int_t AliMUONGlobalTrigger::SingleUndefApt(){
174// returns Number of Single Undefined All pt
175 return fSingleUndefApt;
176}
177//----------------------------------------------------------------------
178Int_t AliMUONGlobalTrigger::PairUnlikeLpt(){
179// returns Number of Unlike sign pair Low pt
180 return fPairUnlikeLpt;
181}
182//----------------------------------------------------------------------
183Int_t AliMUONGlobalTrigger::PairUnlikeHpt(){
184// returns Number of Unlike sign pair High pt
185 return fPairUnlikeHpt;
186}
187//----------------------------------------------------------------------
188Int_t AliMUONGlobalTrigger::PairUnlikeApt(){
189// returns Number of Unlike sign pair All pt
190 return fPairUnlikeApt;
191}
192//----------------------------------------------------------------------
193Int_t AliMUONGlobalTrigger::PairLikeLpt(){
194// returns Number of Like sign pair Low pt
195 return fPairLikeLpt;
196}
197//----------------------------------------------------------------------
198Int_t AliMUONGlobalTrigger::PairLikeHpt(){
199// returns Number of Like sign pair High pt
200 return fPairLikeHpt;
201}
202//----------------------------------------------------------------------
203Int_t AliMUONGlobalTrigger::PairLikeApt(){
204// returns Number of Like sign pair All pt
205 return fPairLikeApt;
206}
207
208
209
210
211
212
213