AmpTools
AsymmetricError.cc
Go to the documentation of this file.
1 // This file is a part of MinuitInterface - a front end for the Minuit minimization
2 // package (Minuit itself was authored by Fred James, of CERN)
3 //
4 //
5 // Copyright Cornell University 1993, 1996, All Rights Reserved.
6 //
7 // This software written by Lawrence Gibbons, Cornell University.
8 //
9 // Redistribution and use in source and binary forms, with or without
10 // modification, are permitted provided that the following conditions
11 // are met:
12 // 1. Redistributions of source code must retain the above copyright
13 // notice and author attribution, this list of conditions and the
14 // following disclaimer.
15 // 2. Redistributions in binary form must reproduce the above copyright
16 // notice and author attribution, this list of conditions and the
17 // following disclaimer in the documentation and/or other materials
18 // provided with the distribution.
19 // 3. Neither the name of the University nor the names of its contributors
20 // may be used to endorse or promote products derived from this software
21 // without specific prior written permission.
22 //
23 // Creation of derivative forms of this software for commercial
24 // utilization may be subject to restriction; written permission may be
25 // obtained from Cornell University.
26 //
27 // CORNELL MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. By way
28 // of example, but not limitation, CORNELL MAKES NO REPRESENTATIONS OR
29 // WARRANTIES OF MERCANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
30 // THE USE OF THIS SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS,
31 // COPYRIGHTS, TRADEMARKS, OR OTHER RIGHTS. Cornell University shall not be
32 // held liable for any liability with respect to any claim by the user or any
33 // other party arising from use of the program.
34 //
35 
37 
39 
40  if ( this != &rhs ) {
41  first = rhs.first;
42  second = rhs.second;
43  }
44 }
45 
48  if ( this != &rhs ) {
49  first = rhs.first;
50  second = rhs.second;
51  }
52 
53  return *this;
54 }
55 
57 AsymmetricError::operator=( const std::pair<double,double>& rhs ) {
58  if ( this != &rhs ) {
59  first = rhs.first;
60  second = rhs.second;
61  }
62 
63  return *this;
64 }
65 
AsymmetricError & operator=(const AsymmetricError &rhs)