46 Int_t nEta=120, Float_t minEta=-6, Float_t maxEta=6,
47 Int_t nPhi=4, Float_t minPhi=0, Float_t maxPhi=2*TMath::Pi())
48 :
Poisson(threshold, nEta, minEta, maxEta, nPhi, minPhi, maxPhi)
53 fHits->SetName(
"hits");
54 fHits->SetTitle(
"# of hits");
56 fDiff->SetName(
"diff");
57 fDiff->SetTitle(
"Difference between poisson and hits");
58 fHits->SetXTitle(
"#eta");
59 fHits->SetYTitle(
"#phi");
60 fHits->SetZTitle(
"N");
61 fDiff->SetXTitle(
"#eta");
62 fDiff->SetYTitle(
"#phi");
63 fDiff->SetZTitle(
"#frac{N_{hit}-N_{poisson}}{N_{hit}}");
83 Double_t& eta, Double_t& phi)
86 phi = TMath::ATan2(y, x);
87 r = TMath::Sqrt(y * y + x * x);
88 theta = TMath::ATan2(r, z);
89 eta = -TMath::Log(TMath::Tan(theta / 2));
90 if (phi < 0) phi += 2 * TMath::Pi();
109 fHits->Fill(eta, phi);
128 fDiff->Add(
fMult,fHits,-1.,1.);
129 fDiff->Divide(fHits);
130 if (!
gROOT->IsBatch()) {
132 TCanvas* c1 =
new TCanvas(
"hits",
"Hit multiplicity");
135 TCanvas* c2 =
new TCanvas(
"diff",
"Difference between Hit and poisson");
138 TCanvas* c3 =
new TCanvas(
"empty",
"# of Empty strips");
141 TCanvas* c4 =
new TCanvas(
"total",
"Total # of strips");
Geometry mananger for the FMD.
void PhysicalCoordinates(Double_t x, Double_t y, Double_t z, Double_t &eta, Double_t &phi)
virtual Bool_t Begin(Int_t event)
virtual void InitTransformations(Bool_t force=kFALSE)
virtual Bool_t ProcessHit(AliFMDHit *hit, TParticle *)
Make a poisson reconstruction.
Singleton object of FMD geometry descriptions and parameters. This class is a singleton that handles ...
UShort_t Detector() const
void Detector2XYZ(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Double_t &x, Double_t &y, Double_t &z) const
AliFMDhit is the hit class for the FMD. Hits are the information that comes from a Monte Carlo at eac...
PoissonHit(Double_t threshold=.3, Int_t nEta=120, Float_t minEta=-6, Float_t maxEta=6, Int_t nPhi=4, Float_t minPhi=0, Float_t maxPhi=2 *TMath::Pi())
static AliFMDGeometry * Instance()
Make a poisson reconstruction and compare to simulated hits.
virtual Bool_t Begin(Int_t event)