ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Efficiency/interface/RooCMSShape.h
Revision: 1.1
Committed: Tue Jun 12 21:31:43 2012 UTC (12 years, 11 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: compiled, HEAD
Log Message:
First commit: A tag and probe selector for id, iso, or trigger efficiencies and a port of Kevin's fitting code.

File Contents

# Content
1 /*****************************************************************************
2 * Project: CMS detector at the CERN
3 *
4 * Package: PhysicsTools/TagAndProbe/RooCMSShape
5 *
6 *
7 * Authors:
8 * Nadia Adam, Princeton - neadam@princeton.edu
9 * Adam Hunt, Princeton - ahunt@princeton.edu
10 * Kalanand Mishra, Fermilab - kalanand@fnal.gov
11 *
12 * Description:
13 * Defines a probability density function which has exponential decay
14 * distribution at high mass beyond the pole position (say, Z peak)
15 * but turns over (i.e., error function) at low mass due to threshold
16 * effect. We use this to model the background shape in Z->ll invariant
17 * mass.
18 * History:
19 *
20 *
21 * Copyright (C) 2008 FNAL
22 *****************************************************************************/
23
24 #ifndef ROO_CMS_SHAPE
25 #define ROO_CMS_SHAPE
26
27 #include "RooAbsPdf.h"
28 #include "RooRealProxy.h"
29 #include "RooAbsReal.h"
30 #include "TMath.h"
31 #include "RooMath.h"
32
33 class RooCMSShape : public RooAbsPdf {
34 public:
35 RooCMSShape() {}
36 RooCMSShape(const char *name, const char *title,
37 RooAbsReal& _x,
38 RooAbsReal& _alpha,
39 RooAbsReal& _beta,
40 RooAbsReal& _gamma,
41 RooAbsReal& _peak);
42
43 RooCMSShape(const RooCMSShape& other, const char* name);
44 inline virtual TObject* clone(const char* newname) const { return new RooCMSShape(*this,newname); }
45 inline ~RooCMSShape() {}
46 Double_t evaluate() const ;
47
48
49 protected:
50
51 RooRealProxy x ;
52 RooRealProxy alpha ;
53 RooRealProxy beta ;
54 RooRealProxy gamma ;
55 RooRealProxy peak ;
56
57 };
58
59 #endif