Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MSTCalcAna.cxx File Reference

#include "TH1F.h"
#include "TF1.h"
#include "TProfile2D.h"
#include "TClonesArray.h"
#include "StandardNtuple/NtpStRecord.h"
#include "Conventions/PlaneView.h"
#include "CandNtupleSR/NtpSRRecord.h"
#include "CandNtupleSR/NtpSREvent.h"
#include "CandNtupleSR/NtpSRTrack.h"
#include "CandNtupleSR/NtpSRStrip.h"
#include "MessageService/MsgService.h"
#include "CalDetDST/UberRecord.h"
#include "CalDetDST/UberHit.h"
#include "NueAna/NueAnaTools/SntpHelpers.h"
#include "NueAna/NueAnaTools/DCGraph.h"
#include "NueAna/NueAnaTools/DCVertex.h"
#include "NueAna/NueAnaTools/DCHit.h"
#include "NueAna/MSTCalcAna.h"
#include "NueAna/MSTCalc.h"
#include "AnalysisNtuples/ANtpDefaultValue.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: MSTCalcAna.cxx,v 1.13 2009/06/30 20:52:49 vahle Exp $")
Double_t AFit (Double_t *x, Double_t *par)

Variables

TH1 * eth = 0
TH1 * bth = 0


Function Documentation

Double_t AFit Double_t *  x,
Double_t *  par
 

Definition at line 27 of file MSTCalcAna.cxx.

References bth, and eth.

Referenced by MSTCalcAna::FindLikeAlpha().

00027                                          { 
00028    if(eth==0){
00029       return 0.;
00030    }
00031    if(bth==0){
00032       return 0.;
00033    }
00034    double xo = (*x);
00035    int sbin = eth->FindBin(xo,0.,0.);
00036    int bbin = bth->FindBin(xo,0.,0.);
00037    double sig = 1.*eth->GetBinContent(sbin);
00038    double back = 1.*bth->GetBinContent(bbin);
00039    return par[0]*sig+(1-par[0])*back;
00040 //   return par[0]*sig+par[1]*back;
00041 }

CVSID "$Id: MSTCalcAna cxx,
v 1.13 2009/06/30 20:52:49 vahle Exp $" 
 


Variable Documentation

TH1* bth = 0
 

Definition at line 23 of file MSTCalcAna.cxx.

Referenced by AFit(), and MSTCalcAna::FindLikeAlpha().

TH1* eth = 0
 

Definition at line 22 of file MSTCalcAna.cxx.

Referenced by AFit(), and MSTCalcAna::FindLikeAlpha().


Generated on Mon Feb 15 11:08:05 2010 for loon by  doxygen 1.3.9.1