* 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)
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){
Int_t AliFastMuonTriggerEff::SetBkgLevel(Float_t Bkg)
{
+ //
+ // Set the background level
+ //
if((Bkg!=0.)) {
printf("%s: Warning: requested Bkg: %f\n",
__FILE__,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);
}
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);
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)
return eff;
}
+
+AliFastMuonTriggerEff& AliFastMuonTriggerEff::operator=(const AliFastMuonTriggerEff& rhs)
+{
+// Assignment operator
+ rhs.Copy(*this);
+ return *this;
+}
+