]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Avoid warning messages.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Apr 2006 12:40:13 +0000 (12:40 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Apr 2006 12:40:13 +0000 (12:40 +0000)
FASTSIM/AliFastMuonTriggerEff.cxx
FASTSIM/AliFastMuonTriggerEff.h
FASTSIM/fastGenQuarkonia.C

index 5fb15a127b5c164a51c0ab59299ebab6db7af767..b4371ff608271bd085aa68cce3b9c3cb7d7a3f45 100644 (file)
@@ -27,6 +27,9 @@ it does not seem to be necessary it is also possible to interpolate
 between pT bins using SetInt().
 
 $Log$
+Revision 1.10  2006/04/19 21:58:28  morsch
+Coding rule violations corrected
+
 Revision 1.9  2005/09/24 03:51:43  hristov
 Removing extra semicolon (Fedora Core 4)
 
@@ -428,15 +431,7 @@ void AliFastMuonTriggerEff::Evaluate(Float_t charge, Float_t pt,Float_t theta,
   return;
 }
 
-void AliFastMuonTriggerEff::Evaluate(Float_t charge, Float_t pt, Float_t theta,
-                                Float_t phi, Float_t& effLow, Float_t& effHigh)
-{
-    //
-    //  Trigger efficiency for pt, theta, phi (low and high cut)
-    //
-    Float_t effAny;
-    Evaluate(charge,pt,theta,phi,effLow,effHigh,effAny);
-}
+
 
 Float_t AliFastMuonTriggerEff::Evaluate(Float_t charge, Float_t pt,
                    Float_t theta, Float_t phi)
index 9ef5675842b76ec76b4754e15d09fe3c366a7d3a..b0a03f1218b68970c6f0627016fe094b5cc519c5 100644 (file)
@@ -25,8 +25,6 @@ class AliFastMuonTriggerEff : public AliFastResponse {
     virtual void    Init();
     virtual void    Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi,
                             Float_t& effLow, Float_t& effHigh, Float_t& effAny);
-    virtual void    Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi,
-                            Float_t& effLow, Float_t& effHigh);
     virtual Float_t Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi);
     virtual void    SetCut(Int_t cut = kLow);
     virtual Float_t Cut() {return fCut;}
index 9b0d326f0b0a0cc5b2f5352b26a87a09be4f7a80..ee6512c77978dd08914eb0a41739399fd7bf8146 100644 (file)
@@ -110,7 +110,7 @@ void fastGenQuarkonia(Int_t nev = 1, char* filename = "galice.root")
 // Smear
            // the mu+
            Float_t thetas1, phis1, ps1, thetas2, phis2, ps2, pts1, pts2, etas1, etas2;
-           Float_t trigeffpL, trigeffpH, trigeffnL, trigeffnH;
+           Float_t trigeffpL, trigeffpH, trigeffnL, trigeffnH, trigeffnA;
            
            res->SetCharge(1);
            eff->SetCharge(1);
@@ -120,7 +120,7 @@ void fastGenQuarkonia(Int_t nev = 1, char* filename = "galice.root")
            
            Float_t effp     = eff->Evaluate(pt1, thetad1, phid1);
            Float_t accp     = acc->Evaluate(pt1, thetad1, phid1);
-           trigeff->Evaluate(1, pt1, thetad1, phid1, trigeffpL, trigeffpH);
+           trigeff->Evaluate(1, pt1, thetad1, phid1, trigeffpL, trigeffpH, trigeffnA);
            thetas1 *= TMath::Pi()/180.;
            phis1 *= TMath::Pi()/180.;
            Float_t etas;
@@ -138,7 +138,7 @@ void fastGenQuarkonia(Int_t nev = 1, char* filename = "galice.root")
            res->Evaluate(p2, thetad2, phid2, ps2, thetas2, phis2);
            Float_t effn     = eff->Evaluate(pt2, thetad2, phid2);
            Float_t accn     = acc->Evaluate(pt2, thetad2, phid2);
-           trigeff->Evaluate(-1, pt2, thetad2, phid2, trigeffnL, trigeffnH);
+           trigeff->Evaluate(-1, pt2, thetad2, phid2, trigeffnL, trigeffnH, trigeffnA);
            thetas2 *= TMath::Pi()/180.;
            phis2 *= TMath::Pi()/180.;
            if (TMath::Tan(thetas2/2.) > 0) {
@@ -169,6 +169,7 @@ void fastGenQuarkonia(Int_t nev = 1, char* filename = "galice.root")
        rl->TreeE()->Fill();
        header->SetNprimary(stack->GetNprimary());
        header->SetNtrack(stack->GetNtrack());  
+       rl->WriteKinematics("OVERWRITE");
     } // event loop
     TCanvas *c1 = new TCanvas("c1","Canvas 1",400,10,600,700);
     massHU->Draw();