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 **************************************************************************/
18 #include "AliMUONGlobalTrigger.h"
20 ClassImp(AliMUONGlobalTrigger);
21 //----------------------------------------------------------------------
22 AliMUONGlobalTrigger::AliMUONGlobalTrigger()
46 //----------------------------------------------------------------------
47 AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
48 : TObject(theMUONGlobalTrig)
51 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
52 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
53 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
55 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
56 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
57 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
59 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
60 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
61 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
63 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
64 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
65 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
67 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
68 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
69 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
72 //----------------------------------------------------------------------
73 AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
75 // equal operator (useful for non-pointer member in TClonesArray)
76 if (this == &theMUONGlobalTrig)
79 // base class assignement
80 TObject::operator=(theMUONGlobalTrig);
82 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
83 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
84 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
86 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
87 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
88 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
90 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
91 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
92 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
94 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
95 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
96 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
98 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
99 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
100 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
105 //----------------------------------------------------------------------
106 AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
109 Int_t *pairUnlike, Int_t *pairLike)
111 // Set the Global Trigger object
112 fSinglePlusLpt = singlePlus[0];
113 fSinglePlusHpt = singlePlus[1];
114 fSinglePlusApt = singlePlus[2];
116 fSingleMinusLpt = singleMinus[0];
117 fSingleMinusHpt = singleMinus[1];
118 fSingleMinusApt = singleMinus[2];
120 fSingleUndefLpt = singleUndef[0];
121 fSingleUndefHpt = singleUndef[1];
122 fSingleUndefApt = singleUndef[2];
124 fPairUnlikeLpt = pairUnlike[0];
125 fPairUnlikeHpt = pairUnlike[1];
126 fPairUnlikeApt = pairUnlike[2];
128 fPairLikeLpt = pairLike[0];
129 fPairLikeHpt = pairLike[1];
130 fPairLikeApt = pairLike[2];