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 **************************************************************************/
19 #include "AliMUONGlobalTrigger.h"
21 ClassImp(AliMUONGlobalTrigger)
22 //----------------------------------------------------------------------
23 AliMUONGlobalTrigger::AliMUONGlobalTrigger()
47 //----------------------------------------------------------------------
48 AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
49 : TObject(theMUONGlobalTrig)
52 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
53 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
54 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
56 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
57 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
58 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
60 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
61 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
62 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
64 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
65 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
66 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
68 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
69 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
70 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
73 //----------------------------------------------------------------------
74 AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
76 // equal operator (useful for non-pointer member in TClonesArray)
77 if (this == &theMUONGlobalTrig)
80 // base class assignement
81 TObject::operator=(theMUONGlobalTrig);
83 fSinglePlusLpt = theMUONGlobalTrig.fSinglePlusLpt;
84 fSinglePlusHpt = theMUONGlobalTrig.fSinglePlusHpt;
85 fSinglePlusApt = theMUONGlobalTrig.fSinglePlusApt;
87 fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
88 fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
89 fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
91 fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
92 fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
93 fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
95 fPairUnlikeLpt = theMUONGlobalTrig.fPairUnlikeLpt;
96 fPairUnlikeHpt = theMUONGlobalTrig.fPairUnlikeHpt;
97 fPairUnlikeApt = theMUONGlobalTrig.fPairUnlikeApt;
99 fPairLikeLpt = theMUONGlobalTrig.fPairLikeLpt;
100 fPairLikeHpt = theMUONGlobalTrig.fPairLikeHpt;
101 fPairLikeApt = theMUONGlobalTrig.fPairLikeApt;
106 //----------------------------------------------------------------------
107 AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
110 Int_t *pairUnlike, Int_t *pairLike)
112 // Set the Global Trigger object
113 fSinglePlusLpt = singlePlus[0];
114 fSinglePlusHpt = singlePlus[1];
115 fSinglePlusApt = singlePlus[2];
117 fSingleMinusLpt = singleMinus[0];
118 fSingleMinusHpt = singleMinus[1];
119 fSingleMinusApt = singleMinus[2];
121 fSingleUndefLpt = singleUndef[0];
122 fSingleUndefHpt = singleUndef[1];
123 fSingleUndefApt = singleUndef[2];
125 fPairUnlikeLpt = pairUnlike[0];
126 fPairUnlikeHpt = pairUnlike[1];
127 fPairUnlikeApt = pairUnlike[2];
129 fPairLikeLpt = pairLike[0];
130 fPairLikeHpt = pairLike[1];
131 fPairLikeApt = pairLike[2];