FEDRA emulsion software from the OPERA Collaboration
EdbAlignment.cxx File Reference
#include "TArrayF.h"
#include "EdbPattern.h"
#include "EdbAlignment.h"
Include dependency graph for EdbAlignment.cxx:

Functions

 ClassImp (EdbAlignment) float EdbAlignment
 

Function Documentation

◆ ClassImp()

ClassImp ( EdbAlignment  )
19{
20 int n = Min( segarr1.GetEntries(), segarr2.GetEntries() );
21 Double_t dx = 0;
22 for(int i=0; i<n; i++) {
23 switch(ivar)
24 {
25 case 1: dx += ((EdbSegP *)segarr2.At(i))->X() - ((EdbSegP *)segarr1.At(i))->X(); break;
26 case 2: dx += ((EdbSegP *)segarr2.At(i))->Y() - ((EdbSegP *)segarr1.At(i))->Y(); break;
27 case 3: dx += ((EdbSegP *)segarr2.At(i))->TX() - ((EdbSegP *)segarr1.At(i))->TX(); break;
28 case 4: dx += ((EdbSegP *)segarr2.At(i))->TY() - ((EdbSegP *)segarr1.At(i))->TY(); break;
29 }
30 }
31 dx /= n;
32 return (float)dx;
33}
Definition: EdbSegP.h:21
Double_t X
Definition: tlg2couples.C:76
Double_t Y
Definition: tlg2couples.C:76
Double_t TY
Definition: tlg2couples.C:78
Double_t TX
Definition: tlg2couples.C:78