]>
Commit | Line | Data |
---|---|---|
da0e9ce3 | 1 | /******************************************************************************* |
2 | * Project: BaBar detector at the SLAC PEP-II B-factory | |
3 | * Package: EvtGenBase | |
4 | * File: $Id: EvtMacros.hh,v 1.1 2003/01/21 09:25:39 dvoretsk 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 |