]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliEventTag.cxx
New event tag classes (P.Christakoglou)
[u/mrichter/AliRoot.git] / STEER / AliEventTag.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 /* $Id$ */
17
18 //-----------------------------------------------------------------
19 //           Implementation of the EventTag class
20 //   This is the class to deal with the tags in the event level
21 //   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
22 //-----------------------------------------------------------------
23
24 #include "AliEventTag.h"
25
26 ClassImp(AliEventTag)
27
28 //______________________________________________________________________________
29 AliEventTag::AliEventTag()
30 {
31   fAliceEventId = 0;
32   fGUID = 0;
33
34   fNumberOfParticipants = -10;
35   fImpactParameter = -10.0;
36
37   fPrimaryVertexX = -100.0;
38   fPrimaryVertexY = -100.0;
39   fPrimaryVertexZ = -100.0;
40
41   fPrimaryVertexFlag = -1;
42   fPrimaryVertexZError = -100.0;
43
44   fTriggerInfo = -10;
45
46   fZDCNeutronEnergy = -10.0;
47   fZDCProtonEnergy = -10.0;
48   fZDCEMEnergy = -10.0;
49
50   fT0VertexZ = -10.0;
51
52   fNumberOfTracks = -10;
53   fNumberOfPositiveTracks = -10;
54   fNumberOfNegativeTracks = -10;
55   fNumberOfNeutralTracks = -10;
56   
57   fNumberOfV0s = -10;
58   fNumberOfCascades = -10;
59   fNumberOfKinks = -10;
60   
61   fNumberOfPMDTracks = -10;
62   fNumberOfPHOSTracks = -10;
63   fNumberOfEMCALTracks = -10;
64   fNumberOfFMDTracks = -10;
65   
66   fNumberOfJetCandidates = -10;
67   fNumberOfHardPhotonsCandidates = -10;
68
69   fMaxJetEnergy = -100.0;
70   fMaxNeutralEnergy = -100.0; 
71   fNumberOfChargedAbovePtRange = -10;
72   fNumberOfMuonsAbovePtRange = -10;
73   fNumberOfElectronsAbovePtRange = -10;
74
75   fNumberOfElectrons = -10;
76   fNumberOfMuons = -10;
77   fNumberOfPions = -10;
78   fNumberOfKaons = -10;
79   fNumberOfProtons = -10;
80   fNumberOfLambdas = -10;
81
82   fNumberOfPhotons = -10;
83   fNumberOfPi0s = -10;
84   fNumberOfNeutrons = -10;
85   fNumberOfKaon0s = -10;
86
87   fNumberOfJPsiCandidates = -10;
88   fNumberOfPsiPrimeCandidates = -10;
89   fNumberOfUpsilonCandidates = -10;
90   fNumberOfUpsilonPrimeCandidates = -10;
91   fNumberOfUpsilonDoublePrimeCandidates = -10;
92   fNumberOfCharmParticleCandidates = -10;
93   fNumberOfBeautyParticleCandidates = -10;
94   
95   fTotalP = -10.0;
96   fMeanPt = -10.0;
97   fMaxPt = -10.0;
98
99   fTotalNeutralP = -10.0;
100   fMeanNeutralPt = -10.0;
101   fMaxNeutralPt = -10.0;
102
103   fEventPlaneAngle = -10.0;
104   fHBTRadii = -10.0;
105
106 }
107
108
109 //______________________________________________________________________________
110 AliEventTag::AliEventTag(AliEventTag *EvTag)
111 {
112   // EventTag copy constructor
113   SetEventId(EvTag->GetEventId());
114   SetGUID(EvTag->GetGUID());
115   
116   SetNumOfParticipants(EvTag->GetNumOfParticipants());
117   SetImpactParameter(EvTag->GetImpactParameter());
118   
119   SetVertexX(EvTag->GetVertexX());
120   SetVertexY(EvTag->GetVertexY());
121   SetVertexZ(EvTag->GetVertexZ());
122
123   SetVertexFlag(EvTag->GetVertexFlag());
124   SetVertexZError(EvTag->GetVertexZError());
125
126   SetTrigger(EvTag->GetTrigger());
127   
128   SetZDCNeutronEnergy(EvTag->GetZDCNeutronEnergy());
129   SetZDCProtonEnergy(EvTag->GetZDCProtonEnergy());
130   SetZDCEMEnergy(EvTag->GetZDCEMEnergy());
131   
132   SetT0VertexZ(EvTag->GetT0VertexZ());
133   
134   SetNumOfTracks(EvTag->GetNumOfTracks());
135   SetNumOfPosTracks(EvTag->GetNumOfPosTracks());
136   SetNumOfNegTracks(EvTag->GetNumOfNegTracks());
137   SetNumOfNeutrTracks(EvTag->GetNumOfNeutrTracks());
138   
139   SetNumOfV0s(EvTag->GetNumOfV0s());
140   SetNumOfCascades(EvTag->GetNumOfCascades());
141   SetNumOfKinks(EvTag->GetNumOfKinks());
142   
143   SetNumOfPMDTracks(EvTag->GetNumOfPMDTracks());
144   SetNumOfPHOSTracks(EvTag->GetNumOfPHOSTracks());
145   SetNumOfEMCALTracks(EvTag->GetNumOfEMCALTracks());
146   SetNumOfFMDTracks(EvTag->GetNumOfFMDTracks());
147   
148   SetNumOfJetCandidates(EvTag->GetNumOfJetCandidates());
149   SetNumOfHardPhotonsCandidates(EvTag->GetNumOfHardPhotonsCandidates());
150
151   SetMaxJetEnergy(EvTag->GetMaxJetEnergy());
152   SetMaxNeutralEnergy(EvTag->GetMaxNeutralEnergy());
153   SetNumOfChargedAbovePtRange(EvTag->GetNumOfChargedAbovePtRange());
154   SetNumOfMuonsAbovePtRange(EvTag->GetNumOfMuonsAbovePtRange());
155   SetNumOfElectronsAbovePtRange(EvTag->GetNumOfElectronsAbovePtRange());
156
157
158
159   SetNumOfJPsiCandidates(EvTag->GetNumOfJPsiCandidates());
160   SetNumOfPsiPrimeCandidates(EvTag->GetNumOfPsiPrimeCandidates());
161   SetNumOfUpsilonCandidates(EvTag->GetNumOfUpsilonCandidates());
162   SetNumOfUpsilonPrimeCandidates(EvTag->GetNumOfUpsilonPrimeCandidates());
163   SetNumOfUpsilonDoublePrimeCandidates(EvTag->GetNumOfUpsilonDoublePrimeCandidates());
164   SetNumOfCharmCandidates(EvTag->GetNumOfCharmCandidates());
165   SetNumOfBeautyCandidates(EvTag->GetNumOfBeautyCandidates());
166   
167   SetNumOfElectrons(EvTag->GetNumOfElectrons());
168   SetNumOfMuons(EvTag->GetNumOfMuons());
169   SetNumOfPions(EvTag->GetNumOfPions());
170   SetNumOfKaons(EvTag->GetNumOfKaons());
171   SetNumOfProtons(EvTag->GetNumOfProtons());
172   SetNumOfLambdas(EvTag->GetNumOfLambdas());
173  
174
175   SetNumOfPhotons(EvTag->GetNumOfPhotons());
176   SetNumOfPi0s(EvTag->GetNumOfPi0s());
177   SetNumOfNeutrons(EvTag->GetNumOfNeutrons());
178   SetNumOfKaon0s(EvTag->GetNumOfKaon0s());
179   
180   SetTotalMomentum(EvTag->GetTotalMomentum());
181   SetMeanPt(EvTag->GetMeanPt());
182   SetMaxPt(EvTag->GetMaxPt());
183
184   SetNeutralTotalMomentum(EvTag->GetNeutralTotalMomentum());
185   SetNeutralMeanPt(EvTag->GetNeutralMeanPt());
186   SetNeutralMaxPt(EvTag->GetNeutralMaxPt());
187   
188   SetEventPlaneAngle(EvTag->GetEventPlaneAngle());
189   SetHBTRadii(EvTag->GetHBTRadii());
190 }
191 //______________________________________________________________________________
192 AliEventTag::~AliEventTag()
193 {
194 }