]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONGlobalTrigger.cxx
Put default wise old segmentation (Ivana)
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalTrigger.cxx
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.                  *
14  **************************************************************************/ 
15  
16
17 /* $Id$ */
18
19 #include "AliMUONGlobalTrigger.h"
20
21 ClassImp(AliMUONGlobalTrigger)
22 //----------------------------------------------------------------------
23 AliMUONGlobalTrigger::AliMUONGlobalTrigger()
24   : TObject()
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 }
47 //----------------------------------------------------------------------
48 AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
49   : TObject(theMUONGlobalTrig)
50 {
51 // copy constructor
52   fSinglePlusLpt  = theMUONGlobalTrig.fSinglePlusLpt;
53   fSinglePlusHpt  = theMUONGlobalTrig.fSinglePlusHpt;
54   fSinglePlusApt  = theMUONGlobalTrig.fSinglePlusApt;
55   
56   fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
57   fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
58   fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
59   
60   fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
61   fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
62   fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
63   
64   fPairUnlikeLpt  = theMUONGlobalTrig.fPairUnlikeLpt;
65   fPairUnlikeHpt  = theMUONGlobalTrig.fPairUnlikeHpt;
66   fPairUnlikeApt  = theMUONGlobalTrig.fPairUnlikeApt;
67   
68   fPairLikeLpt    = theMUONGlobalTrig.fPairLikeLpt;
69   fPairLikeHpt    = theMUONGlobalTrig.fPairLikeHpt;
70   fPairLikeApt    = theMUONGlobalTrig.fPairLikeApt;
71 }
72
73 //----------------------------------------------------------------------
74 AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
75 {
76 // equal operator (useful for non-pointer member in TClonesArray)
77   if (this == &theMUONGlobalTrig)
78     return *this;
79     
80   // base class assignement
81   TObject::operator=(theMUONGlobalTrig);
82
83   fSinglePlusLpt  = theMUONGlobalTrig.fSinglePlusLpt;
84   fSinglePlusHpt  = theMUONGlobalTrig.fSinglePlusHpt;
85   fSinglePlusApt  = theMUONGlobalTrig.fSinglePlusApt;
86   
87   fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
88   fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
89   fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
90   
91   fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
92   fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
93   fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
94   
95   fPairUnlikeLpt  = theMUONGlobalTrig.fPairUnlikeLpt;
96   fPairUnlikeHpt  = theMUONGlobalTrig.fPairUnlikeHpt;
97   fPairUnlikeApt  = theMUONGlobalTrig.fPairUnlikeApt;
98   
99   fPairLikeLpt    = theMUONGlobalTrig.fPairLikeLpt;
100   fPairLikeHpt    = theMUONGlobalTrig.fPairLikeHpt;
101   fPairLikeApt    = theMUONGlobalTrig.fPairLikeApt;
102
103   return *this;
104 }
105
106 //----------------------------------------------------------------------
107 AliMUONGlobalTrigger::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 }
133
134
135
136
137
138
139
140