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 **************************************************************************/
17 // the tree is represented as reduced events
20 // M.Fasel <M.Fasel@gsi.de>
22 #include "TObjArray.h"
25 #include "AliHFEreducedMCParticle.h"
27 ClassImp(AliHFEreducedMCParticle)
29 //_______________________________________
30 AliHFEreducedMCParticle::AliHFEreducedMCParticle():
43 // Default constructor
45 memset(fProductionVertex, 0, sizeof(Double_t) *3); // Initialise production vertex array
46 memset(fMotherProductionVertex, 0, sizeof(Double_t) *3); // Initialise mother production vertex array
49 //_______________________________________
50 AliHFEreducedMCParticle::AliHFEreducedMCParticle(const AliHFEreducedMCParticle &ref):
52 fSignedPt(ref.fSignedPt),
57 fMotherPdg(ref.fMotherPdg),
60 fEleSource(ref.fEleSource)
65 memcpy(fProductionVertex, ref.fProductionVertex, sizeof(Double_t) *3); // Port production vertex array
66 memcpy(fMotherProductionVertex, ref.fMotherProductionVertex, sizeof(Double_t) *3); // Port mother production vertex array
69 //_______________________________________
70 AliHFEreducedMCParticle &AliHFEreducedMCParticle::operator=(const AliHFEreducedMCParticle &ref){
72 // Assignment operator
75 TObject::operator=(ref);
76 fSignedPt = ref.fSignedPt;
81 fMotherPdg = ref.fMotherPdg;
82 fSource = ref.fSource;
83 fSignal = ref.fSignal;
84 fEleSource = ref.fEleSource;
85 memcpy(fProductionVertex, ref.fProductionVertex, sizeof(Double_t) *3);
86 memcpy(fMotherProductionVertex, ref.fMotherProductionVertex, sizeof(Double_t) *3);