#include "TLeaf.h"
#include "AliConst.h"
-#include "AliTOFConstants.h"
#include "AliTOFProb.h"
#include <stdlib.h>
-#include <iostream.h>
-#include <fstream.h>
+#include <Riostream.h>
+#include <Riostream.h>
ClassImp(AliTOFProb)
//____________________________________________________________________________
-void AliTOFProb::Exec(const Option_t *dummyOpt)
+void AliTOFProb::Exec(const Option_t * /*dummyOpt*/)
{
//
// Performs Prob for TOF detector
fTask=1;
fhfile->cd();
// create the histo
- TH3* h3D=new TH3F("h3D", "", 100, 0., 1., 100, 0., 1., 100, 0., 1.);
+ TH3* h3D=new TH3F("h3D", "", 120, -0.1, 1.1, 120, -0.1, 1.1, 120, -0.1, 1.1);
TH3* h3Ddt=new TH3F("h3Ddt", "", 360, -120., 120., 360, -120., 120., 360, -120., 120.);
- TH1* hpion =new TH1F("hpion", "", 100, 0., 1.);
- TH1* hkaon =new TH1F("hkaon", "", 100, 0., 1.);
- TH1* hproton=new TH1F("hproton", "", 100, 0., 1.);
+ TH1* hpion =new TH1F("hpion", "", 120, -0.1, 1.1);
+ TH1* hkaon =new TH1F("hkaon", "", 120, -0.1, 1.1);
+ TH1* hproton=new TH1F("hproton", "", 120, -0.1, 1.1);
TH1* hdtpion =new TH1F("hdtpion", "", 600, -120., 120.);
TH1* hdtkaon =new TH1F("hdtkaon", "", 600, -120., 120.);
fNtuple->GetEvent(i);
//Int_t event=(Int_t)(fNtuple->GetLeaf("event")->GetValue());
Int_t pdgcode=(Int_t)(fNtuple->GetLeaf("ipart")->GetValue());
- Float_t mass=fNtuple->GetLeaf("mext")->GetValue(0);
+ // unused for the time being in the context of probabilities
+ // probably it will be included in AliESD approach
+ //Float_t mass=fNtuple->GetLeaf("mext")->GetValue(0);
Int_t matc=(Int_t)(fNtuple->GetLeaf("matc")->GetValue(0));
Int_t imam=(Int_t)(fNtuple->GetLeaf("imam")->GetValue(0));
Float_t time=fNtuple->GetLeaf("text")->GetValue(0); // [ns]
Double_t p1=time;
Double_t p2=timeResolution;
- Float_t twopi=2*TMath::Pi();
- Float_t sqrtwopi=TMath::Sqrt(twopi);
+ //Float_t twopi=2*TMath::Pi();
+ //Float_t sqrtwopi=TMath::Sqrt(twopi);
//Double_t p0=1./(p2*sqrtwopi);
+ // choising a different normalization
Double_t p0=1.;
gauss->SetParameters(p0,p1,p2);
//__________________________________________________________________
-Bool_t AliTOFProb::operator==( AliTOFProb const & tofrec)const
+Bool_t AliTOFProb::operator==( AliTOFProb const & /*tofrec*/)const
{
// dummy version of Equal operator.
// requested by coding conventions