]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONGlobalTrigger.cxx
Changes needed on Alpha
[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
30178c30 16/* $Id$ */
a9e2aefa 17
18#include "AliMUONGlobalTrigger.h"
19
20ClassImp(AliMUONGlobalTrigger);
21//----------------------------------------------------------------------
22AliMUONGlobalTrigger::AliMUONGlobalTrigger()
30178c30 23 : TObject()
a9e2aefa 24{
25// constructor
26 fSinglePlusLpt = 0;
27 fSinglePlusHpt = 0;
28 fSinglePlusApt = 0;
29
30 fSingleMinusLpt = 0;
31 fSingleMinusHpt = 0;
32 fSingleMinusApt = 0;
33
34 fSingleUndefLpt = 0;
35 fSingleUndefHpt = 0;
36 fSingleUndefApt = 0;
37
38 fPairUnlikeLpt = 0;
39 fPairUnlikeHpt = 0;
40 fPairUnlikeApt = 0;
41
42 fPairLikeLpt = 0;
43 fPairLikeHpt = 0;
44 fPairLikeApt = 0;
45}
e9b63742 46//----------------------------------------------------------------------
30178c30 47AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
48 : TObject(theMUONGlobalTrig)
e9b63742 49{
50// copy constructor
30178c30 51 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
52 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
53 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
e9b63742 54
30178c30 55 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
56 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
57 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
e9b63742 58
30178c30 59 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
60 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
61 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
e9b63742 62
30178c30 63 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
64 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
65 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
e9b63742 66
30178c30 67 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
68 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
69 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
e9b63742 70}
71
72//----------------------------------------------------------------------
30178c30 73AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
e9b63742 74{
75// equal operator (useful for non-pointer member in TClonesArray)
30178c30 76 if (this == &theMUONGlobalTrig)
e9b63742 77 return *this;
30178c30 78
79 // base class assignement
80 TObject::operator=(theMUONGlobalTrig);
e9b63742 81
30178c30 82 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
83 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
84 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
e9b63742 85
30178c30 86 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
87 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
88 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
e9b63742 89
30178c30 90 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
91 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
92 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
e9b63742 93
30178c30 94 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
95 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
96 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
e9b63742 97
30178c30 98 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
99 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
100 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
e9b63742 101
102 return *this;
103}
104
a9e2aefa 105//----------------------------------------------------------------------
106AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
107 Int_t *singleMinus,
108 Int_t *singleUndef,
109 Int_t *pairUnlike, Int_t *pairLike)
110{
111// Set the Global Trigger object
112 fSinglePlusLpt = singlePlus[0];
113 fSinglePlusHpt = singlePlus[1];
114 fSinglePlusApt = singlePlus[2];
115
116 fSingleMinusLpt = singleMinus[0];
117 fSingleMinusHpt = singleMinus[1];
118 fSingleMinusApt = singleMinus[2];
119
120 fSingleUndefLpt = singleUndef[0];
121 fSingleUndefHpt = singleUndef[1];
122 fSingleUndefApt = singleUndef[2];
123
124 fPairUnlikeLpt = pairUnlike[0];
125 fPairUnlikeHpt = pairUnlike[1];
126 fPairUnlikeApt = pairUnlike[2];
127
128 fPairLikeLpt = pairLike[0];
129 fPairLikeHpt = pairLike[1];
130 fPairLikeApt = pairLike[2];
131}
402fb06e 132
402fb06e 133
134
135
136
137
138
139