FairRoot/PandaRoot
PndTrkLegendreCluster.cxx
Go to the documentation of this file.
1 //
2 // PndTrkLegendreCluster.cxx
3 //
4 //
5 //
6 //
7 // authors: Lia Lavezzi - INFN Pavia (2012)
8 //
10 
11 #include "PndTrkLegendreCluster.h"
12 
13 using namespace std;
14 
15 
17 
19 
21  //, fTheta(cluster.fTheta), fR(cluster.fR) {
22 
23 // ((PndTrkCluster&)cluster).fFromPoint = fFromPoint;
24 // ((PndTrkCluster&)cluster).fIRegion = fIRegion;
25 // ((PndTrkCluster&)cluster).hitlist = hitlist;
26  *this = cluster;
27 }
28 
30  if(dynamic_cast< const PndTrkLegendreCluster* >(&cluster)) {
31  fTheta = ((PndTrkLegendreCluster) cluster).fTheta;
32  fR = ((PndTrkLegendreCluster) cluster).fR;
33  }
34  else {
35  cout << ":FALSE" << endl;
36  fTheta = 14;
37  fR = 52;
38 
39  }
40 
41 }
42 
44  PndTrkCluster::operator=(cluster);
45  fTheta = cluster.fTheta;
46  fR = cluster.fR;
47 
48  return *this;
49 }
50 
52 
53  cout << "THETA MERGE: " << fTheta << " " << cluster2->GetTheta() << endl;
54  fTheta = (fTheta + cluster2->GetTheta())/2.;
55  cout << "THETA MERGED: " << fTheta << endl;
56 
57  cout << "R MERGE: " << fR << " " << cluster2->GetR() << endl;
58  fR = (fR + cluster2->GetR())/2.;
59  cout << "R MERGED: " << fR << endl;
60 
61  return PndTrkCluster::MergeTo(cluster2);
62 
63 }
64 
65 
66 
68 
int MergeTo(PndTrkCluster *cluster2)
int MergeTo(PndTrkLegendreCluster *cluster2)
PndTrkLegendreCluster & operator=(const PndTrkLegendreCluster &cluster)
PndTrkCluster & operator=(const PndTrkCluster &cluster)
ClassImp(PndAnaContFact)