00001 /******************************************************************************* 00002 * Project: BaBar detector at the SLAC PEP-II B-factory 00003 * Package: EvtGenBase 00004 * File: $Id: EvtMacros.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $ 00005 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002 00006 * 00007 * Copyright (C) 2002 Caltech 00008 *******************************************************************************/ 00009 00010 // Useful macros. 00011 00012 // In copy constructors, deep copy pointers via CLONE 00013 // and date members via COPY. 'other' is the name of the copied object 00014 00015 #define COPY_PTR(X) X(other.X ? other.X->clone() : 0) 00016 #define COPY_MEM(X) X(other.X) 00017