]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastMuonTriggerEff.cxx
Fix for mother volume length.
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTriggerEff.cxx
index bd798123cfcde13ca2b09bf56f3a380678c13238..8940c91da1cd1e7ae7f1c0366f428e6a84e89735 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-The trigger parametrization is computed for background levels 0., 0.5 and 1.
-In order to set a background level different from 0 it is necessary to 
-explicitly force it with:
-ForceBkgLevel(BkgLevel).
+/* $Id$ */
+// The trigger parametrization is computed for background levels 0., 0.5 and 1.
+// In order to set a background level different from 0 it is necessary to 
+// explicitly force it with:
+// ForceBkgLevel(BkgLevel).
+// For intermediate background levels, the trigger response is linearly 
+// interpolated between these values.
+// There is increased granularity in the pT region below 3 GeV. Although
+// it does not seem to be necessary it is also possible to interpolate
+// between pT bins using SetInt().
 
-For intermediate background levels, the trigger response is linearly 
-interpolated between these values.
-
-There is increased granularity in the pT region below 3 GeV. Although
-it does not seem to be necessary it is also possible to interpolate
-between pT bins using SetInt().
-
-$Log$
-Revision 1.8  2005/09/22 11:31:42  morsch
-Completely revised version. (P. Cortese)
-
-*/
 
 #include "AliFastMuonTriggerEff.h"
+#include "TROOT.h"
+#include "TFile.h"
+#include "stdlib.h"
+#include "TH3.h"
+#include "TObjString.h"
+
 #define PLIN printf("%s: %d: ",__FILE__,__LINE__)
 
 ClassImp(AliFastMuonTriggerEff)
@@ -49,8 +48,17 @@ AliFastMuonTriggerEff::AliFastMuonTriggerEff():
     UnsetInt();
 }
 
+AliFastMuonTriggerEff::AliFastMuonTriggerEff(const AliFastMuonTriggerEff& eff)
+    :AliFastResponse(eff)
+{
+// Copy constructor
+    eff.Copy(*this);
+}
+
 void AliFastMuonTriggerEff::SetCut(Int_t cut) 
 {  
+  //
+  // Set the pt cut
   if(cut==kLow){
     printf("Selecting Low Pt cut\n");
   }else if(cut==kHigh){
@@ -67,6 +75,9 @@ void AliFastMuonTriggerEff::SetCut(Int_t cut)
 
 Int_t AliFastMuonTriggerEff::SetBkgLevel(Float_t Bkg)
 {
+  //
+  // Set the background level
+  //
     if((Bkg!=0.)) {
        printf("%s: Warning: requested Bkg: %f\n",
        __FILE__,Bkg);
@@ -87,6 +98,9 @@ Int_t AliFastMuonTriggerEff::SetBkgLevel(Float_t Bkg)
 
 Int_t AliFastMuonTriggerEff::ForceBkgLevel(Float_t Bkg)
 {
+  //
+  // Check and enforce consistency of the background level 
+  // 
     if((Bkg!=0.)) {
        printf("%s: Warning: requested Bkg: %f\n",
        __FILE__,Bkg);
@@ -104,6 +118,9 @@ Int_t AliFastMuonTriggerEff::ForceBkgLevel(Float_t Bkg)
 }
 
 Int_t AliFastMuonTriggerEff::LoadTables(Char_t *namet=""){
+  //
+  // Load the trigger tables
+  //
     Char_t hNameA[100],hNameL[100],hNameH[100];
     sprintf(hNameA,"hEffAPt%s",namet);
     sprintf(hNameL,"hEffLPt%s",namet);
@@ -408,15 +425,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)
@@ -443,3 +452,11 @@ Float_t AliFastMuonTriggerEff::Evaluate(Float_t charge, Float_t pt,
 
     return eff;
 }
+
+AliFastMuonTriggerEff& AliFastMuonTriggerEff::operator=(const  AliFastMuonTriggerEff& rhs)
+{
+// Assignment operator
+    rhs.Copy(*this);
+    return *this;
+}
+