1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
20 // Class AliMUONGlobalTrigger
22 // Global Trigger algorithm data output
23 // built from Local and Regional algorithms
25 #include "AliMUONGlobalTrigger.h"
27 ClassImp(AliMUONGlobalTrigger)
28 //----------------------------------------------------------------------
29 AliMUONGlobalTrigger::AliMUONGlobalTrigger()
53 //----------------------------------------------------------------------
54 AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
55 : TObject(theMUONGlobalTrig)
58 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
59 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
60 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
62 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
63 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
64 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
66 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
67 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
68 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
70 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
71 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
72 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
74 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
75 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
76 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
79 //----------------------------------------------------------------------
80 AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
82 // equal operator (useful for non-pointer member in TClonesArray)
83 if (this == &theMUONGlobalTrig)
86 // base class assignement
87 TObject::operator=(theMUONGlobalTrig);
89 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
90 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
91 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
93 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
94 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
95 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
97 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
98 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
99 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
101 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
102 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
103 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
105 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
106 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
107 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
112 //----------------------------------------------------------------------
113 AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
116 Int_t *pairUnlike, Int_t *pairLike)
118 // Set the Global Trigger object
119 fSinglePlusLpt = singlePlus[0];
120 fSinglePlusHpt = singlePlus[1];
121 fSinglePlusApt = singlePlus[2];
123 fSingleMinusLpt = singleMinus[0];
124 fSingleMinusHpt = singleMinus[1];
125 fSingleMinusApt = singleMinus[2];
127 fSingleUndefLpt = singleUndef[0];
128 fSingleUndefHpt = singleUndef[1];
129 fSingleUndefApt = singleUndef[2];
131 fPairUnlikeLpt = pairUnlike[0];
132 fPairUnlikeHpt = pairUnlike[1];
133 fPairUnlikeApt = pairUnlike[2];
135 fPairLikeLpt = pairLike[0];
136 fPairLikeHpt = pairLike[1];
137 fPairLikeApt = pairLike[2];