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