1 /**************************************************************************
2 * Copyright(c) 1998-2007, 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 **************************************************************************/
17 //-------------------------------------------------------------------------
18 // AOD centrality class
19 // Author: Alberica Toia, CERN, Alberica.Toia@cern.ch
20 //-------------------------------------------------------------------------
22 #include "AliAODCentrality.h"
23 #include "AliAODTrack.h"
26 ClassImp(AliAODCentrality)
29 //______________________________________________________________________________
31 //______________________________________________________________________________
32 AliAODCentrality::AliAODCentrality(): TNamed(),
68 for (int i=0;i<6;i++) fNClusters[i]=0;
69 for (int i=0;i<2;i++) fNChips[i]=0;
70 for (int i=0;i<5;i++) fZNCtower[i]=0;
71 for (int i=0;i<5;i++) fZPCtower[i]=0;
72 for (int i=0;i<5;i++) fZNAtower[i]=0;
73 for (int i=0;i<5;i++) fZPAtower[i]=0;
74 for (int i=0;i<2;i++) fCentrZNC[i]=0;
75 for (int i=0;i<2;i++) fCentrZNA[i]=0;
78 //______________________________________________________________________________
79 AliAODCentrality::~AliAODCentrality()
84 //______________________________________________________________________________
85 AliAODCentrality::AliAODCentrality(const AliAODCentrality& cnt) : TNamed(cnt),
86 fxVertex (cnt.fxVertex ),
87 fyVertex (cnt.fyVertex ),
88 fzVertex (cnt.fzVertex ),
89 fVertexer3d (cnt.fVertexer3d),
91 fNpartTargMC (cnt.fNpartTargMC),
92 fNpartProjMC (cnt.fNpartProjMC),
93 fNNColl (cnt.fNNColl ),
94 fNNwColl (cnt.fNNwColl ),
95 fNwNColl (cnt.fNwNColl ),
96 fNwNwColl (cnt.fNwNwColl ),
97 fNTracklets (cnt.fNTracklets ),
98 fNSingleClusters (cnt.fNSingleClusters),
100 fNpartZDC (cnt.fNpartZDC ),
101 fbZDCA (cnt.fbZDCA ),
102 fNpartZDCA (cnt.fNpartZDCA ),
103 fbZDCC (cnt.fbZDCC ),
104 fNpartZDCC (cnt.fNpartZDCC ),
105 fESDFlag (cnt.fESDFlag ),
106 fZNCEnergy (cnt.fZNCEnergy),
107 fZPCEnergy (cnt.fZPCEnergy),
108 fZNAEnergy (cnt.fZNAEnergy),
109 fZPAEnergy (cnt.fZPAEnergy),
110 fZEM1Energy (cnt.fZEM1Energy),
111 fZEM2Energy (cnt.fZEM2Energy),
112 fNTracks (cnt.fNTracks ),
113 fNPmdTracks (cnt.fNPmdTracks ),
114 fMultV0A (cnt.fMultV0A ),
115 fMultV0C (cnt.fMultV0C ),
116 fMultFMDA (cnt.fMultFMDA ),
117 fMultFMDC (cnt.fMultFMDC )
122 //______________________________________________________________________________
123 AliAODCentrality& AliAODCentrality::operator=(const AliAODCentrality& cnt)
125 // Assignment operator
129 AliAODCentrality::operator=(cnt);
135 //______________________________________________________________________________
136 void AliAODCentrality::Print(Option_t* /*option*/) const
138 // Print information of some data members
140 printf("Centrality information:\n");
141 printf("fNTracks = %d\n", fNTracks );
142 printf("fNTracklets = %d\n", fNTracklets );
143 printf("fMultV0A = %e\n", fMultV0A );
144 printf("fMultV0C = %e\n", fMultV0C );
145 printf("fMultFMDA = %e\n", fMultFMDA );
146 printf("fMultFMDC = %e\n", fMultFMDC );