Corrected protection.
[u/mrichter/AliRoot.git] / STEER / AliAODCentrality.cxx
CommitLineData
c94a2509 1/**************************************************************************
2 * Copyright(c) 1998-2007, 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//-------------------------------------------------------------------------
18// AOD centrality class
19// Author: Alberica Toia, CERN, Alberica.Toia@cern.ch
20//-------------------------------------------------------------------------
21
22#include "AliAODCentrality.h"
23#include "AliAODTrack.h"
24#include "AliLog.h"
25
26ClassImp(AliAODCentrality)
27
28
29//______________________________________________________________________________
30
31//______________________________________________________________________________
32AliAODCentrality::AliAODCentrality(): TNamed(),
33fxVertex (0),
34fyVertex (0),
35fzVertex (0),
36fVertexer3d (0),
37fbMC (0),
38fNpartTargMC (0),
39fNpartProjMC (0),
40fNNColl (0),
41fNNwColl (0),
42fNwNColl (0),
43fNwNwColl (0),
44fNTracklets (0),
45fNSingleClusters (0),
46fbZDC (0),
47fNpartZDC (0),
48fbZDCA (0),
49fNpartZDCA (0),
50fbZDCC (0),
51fNpartZDCC (0),
52fESDFlag (0),
53fZNCEnergy (0),
54fZPCEnergy (0),
55fZNAEnergy (0),
56fZPAEnergy (0),
57fZEM1Energy (0),
58fZEM2Energy (0),
59fNTracks (0),
60fNPmdTracks (0),
61fMultV0A (0),
62fMultV0C (0),
63fMultFMDA (0),
64fMultFMDC (0)
65
66{
67 // constructor
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;
76}
77
78//______________________________________________________________________________
79AliAODCentrality::~AliAODCentrality()
80{
81 // Destructor
82}
83
84//______________________________________________________________________________
85AliAODCentrality::AliAODCentrality(const AliAODCentrality& cnt) : TNamed(cnt),
86fxVertex (cnt.fxVertex ),
87fyVertex (cnt.fyVertex ),
88fzVertex (cnt.fzVertex ),
89fVertexer3d (cnt.fVertexer3d),
90fbMC (cnt.fbMC ),
91fNpartTargMC (cnt.fNpartTargMC),
92fNpartProjMC (cnt.fNpartProjMC),
93fNNColl (cnt.fNNColl ),
94fNNwColl (cnt.fNNwColl ),
95fNwNColl (cnt.fNwNColl ),
96fNwNwColl (cnt.fNwNwColl ),
97fNTracklets (cnt.fNTracklets ),
98fNSingleClusters (cnt.fNSingleClusters),
99fbZDC (cnt.fbZDC ),
100fNpartZDC (cnt.fNpartZDC ),
101fbZDCA (cnt.fbZDCA ),
102fNpartZDCA (cnt.fNpartZDCA ),
103fbZDCC (cnt.fbZDCC ),
104fNpartZDCC (cnt.fNpartZDCC ),
105fESDFlag (cnt.fESDFlag ),
106fZNCEnergy (cnt.fZNCEnergy),
107fZPCEnergy (cnt.fZPCEnergy),
108fZNAEnergy (cnt.fZNAEnergy),
109fZPAEnergy (cnt.fZPAEnergy),
110fZEM1Energy (cnt.fZEM1Energy),
111fZEM2Energy (cnt.fZEM2Energy),
112fNTracks (cnt.fNTracks ),
113fNPmdTracks (cnt.fNPmdTracks ),
114fMultV0A (cnt.fMultV0A ),
115fMultV0C (cnt.fMultV0C ),
116fMultFMDA (cnt.fMultFMDA ),
117fMultFMDC (cnt.fMultFMDC )
118{
119 // Copy constructor.
120}
121
122//______________________________________________________________________________
123AliAODCentrality& AliAODCentrality::operator=(const AliAODCentrality& cnt)
124{
125 // Assignment operator
126 if (this != &cnt) {
127
128 // name and type
129 AliAODCentrality::operator=(cnt);
130 }
131
132 return *this;
133}
134
135//______________________________________________________________________________
136void AliAODCentrality::Print(Option_t* /*option*/) const
137{
138 // Print information of some data members
139
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 );
147}
148