StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EvtMacros.hh
1 /*******************************************************************************
2  * Project: BaBar detector at the SLAC PEP-II B-factory
3  * Package: EvtGenBase
4  * File: $Id: EvtMacros.hh,v 1.1 2016/09/23 18:37:31 jwebb Exp $
5  * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6  *
7  * Copyright (C) 2002 Caltech
8  *******************************************************************************/
9 
10 // Useful macros.
11 
12 // In copy constructors, deep copy pointers via CLONE
13 // and date members via COPY. 'other' is the name of the copied object
14 
15 #define COPY_PTR(X) X(other.X ? other.X->clone() : 0)
16 #define COPY_MEM(X) X(other.X)
17