85 if ( cluster->
Charge() < 1.0675 )
102 Double_t xmax = -1E9;
103 Double_t ymax = -1E9;
105 Double_t x[] = { 0.0, 0.0 };
106 Double_t y[] = { 0.0, 0.0 };
108 Double_t xsize[] = { 0.0, 0.0 } ;
109 Double_t ysize[] = { 0.0, 0.0 } ;
111 for ( Int_t cathode = 0; cathode < 2; ++cathode )
116 TVector2 padPosition = pad->
Position();
118 xmin = TMath::Min(area.LeftBorder(),xmin);
119 xmax = TMath::Max(area.RightBorder(),xmax);
120 ymin = TMath::Min(area.DownBorder(),ymin);
121 ymax = TMath::Max(area.UpBorder(),ymax);
122 if ( cathode == pad->
Cathode() )
124 x[cathode] += padPosition.X()*pad->
Charge();
125 y[cathode] += padPosition.Y()*pad->
Charge();
130 if ( cluster.
Charge(cathode) )
132 x[cathode] /= cluster.
Charge(cathode);
133 y[cathode] /= cluster.
Charge(cathode);
146 xCOG = ( xsize[0] < xsize[1] ) ? x[0] : x[1];
147 yCOG = ( ysize[0] < ysize[1] ) ? y[0] : y[1];
149 AliDebug(1,Form(
"Cluster mult %d (x,y)=(%e,%e) boundaries=(xmin,ymin,xmax,ymax)=(%e,%e,%e,%e)"
150 " (x0,y0,x1,y1)=(%e,%e,%e,%e) ",
152 x[0],y[0],x[1],y[1]));
Interface of a cluster finder.
void ComputePosition(AliMUONCluster &cluster)
A group of adjacent pads.
TVector2 Dimensions() const
Return half dimensions in x and y (cm)
A rectangle area positioned in plane..
Double_t DY() const
Return half dimensions in y (cm)
Int_t Multiplicity() const
virtual Bool_t Prepare(Int_t detElemId, TObjArray *pads[2], const AliMpArea &area)
void SetPosition(const TVector2 &pos, const TVector2 &errorOnPos)
Set (x,y) of that cluster and errors.
Double_t Y() const
Return position in y (cm)
Double_t X() const
Return position in x (cm)
A very basic (and mostly useless, probably) cluster finder.
Int_t Cathode() const
Return cathode number.
virtual Bool_t Prepare(Int_t detElemId, TObjArray *pads[2], const AliMpArea &area)
TVector2 Position() const
Return positions in x and y (cm)
virtual AliMUONCluster * NextCluster()=0
AliMUONVClusterFinder * fPreClusterFinder
the preclustering we use
Double_t Charge() const
Return pad charge.
virtual ~AliMUONClusterFinderCOG()
virtual AliMUONCluster * NextCluster()
AliMUONPad * Pad(Int_t index) const
Combination of digit and mppad informations.
Double_t DX() const
Return half dimensions in x (cm)