BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtModelAlias.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 2002 Caltech, LLNL
10//
11// Module: EvtGen/EvtModelAlias.cc
12//
13// Description:Class to keep track of model aliases
14// read in from the decay table
15//
16// Modification history:
17//
18// Lange January 19, 2002 Module created
19//
20//------------------------------------------------------------------------
21#include "EvtPatches.hh"
22
23#include "EvtModelAlias.hh"
24
25EvtModelAlias::EvtModelAlias( std::string alias, std::string model,
26 std::vector<std::string> args )
27 :
28
29 _aliasName( alias )
30 , _model( model )
31
32{
33
34 if ( args.size() > 0 )
35 {
36 int i;
37 for ( i = 0; i < args.size(); i++ )
38 {
39 std::string tempStr = args[i];
40 _modelArgs.push_back( tempStr );
41 }
42 }
43}
44
46 :
47
48 _aliasName( copyMe._aliasName )
49 , _model( copyMe._model ) {
50 if ( copyMe._modelArgs.size() > 0 )
51 {
52 int i;
53 for ( i = 0; i < copyMe._modelArgs.size(); i++ )
54 _modelArgs.push_back( copyMe._modelArgs[i] );
55 }
56}
57
59
60 _aliasName = copyMe._aliasName;
61 _model = copyMe._model;
62
63 if ( copyMe._modelArgs.size() > 0 )
64 {
65 int i;
66 for ( i = 0; i < copyMe._modelArgs.size(); i++ )
67 _modelArgs.push_back( copyMe._modelArgs[i] );
68 }
69 return *this;
70}
71
72std::vector<std::string> EvtModelAlias::getArgList() { return _modelArgs; }
std::vector< std::string > getArgList()
EvtModelAlias operator=(const EvtModelAlias &copyMe)