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():
42 // Default constructor
44 memset(fProductionVertex, 0, sizeof(Double_t) *3); // Initialise production vertex array
47 //_______________________________________
48 AliHFEreducedMCParticle::AliHFEreducedMCParticle(const AliHFEreducedMCParticle &ref):
50 fSignedPt(ref.fSignedPt),
55 fMotherPdg(ref.fMotherPdg),
62 memcpy(fProductionVertex, ref.fProductionVertex, sizeof(Double_t) *3); // Port production vertex array
65 //_______________________________________
66 AliHFEreducedMCParticle &AliHFEreducedMCParticle::operator=(const AliHFEreducedMCParticle &ref){
68 // Assignment operator
71 TObject::operator=(ref);
72 fSignedPt = ref.fSignedPt;
77 fMotherPdg = ref.fMotherPdg;
78 fSource = ref.fSource;
79 fSignal = ref.fSignal;
80 memcpy(fProductionVertex, ref.fProductionVertex, sizeof(Double_t) *3);