Hi
I am writing a programme for TLorentzVector while my code is
void lorentz1 ()
{
gSystem->Load("libPhysics.so");
float SelMu_phi;
TLorentzVector *p4datrad = new TLorentzVector(0.,0.,0.,0.);
TFile *F = new TFile("/afs/cern.ch/user/s/sjaved/sahar/May26_2.root", "READ");
TTree *AnaTree1 = (TTree*)F->Get("demo/AnaTree");
TH1F *h1 = new TH1F("h1","lorentzVector",100,-4,4);
// TLorentzVector *p4datrad=new TLorentzVector(0.,0.,0.,0.);
AnaTree1->SetBranchAddress("SelMu_phi",&SelMu_phi);
p4datrad->SetPxPyPzE(1.,1.,0.,5.);
Long64_t nentries = AnaTree1->GetEntries();
for (Long64_t i=0;i<2356443078;i++);
{ AnaTree1->GetEntry(i);
h1->Fill(SelMu_phi);
}
h1->Draw();
}
and i got a straightline on zero.
any one plz tell me what is wrong in this code .`