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