ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/VertexTools.h
(Generate patch)

Comparing UserCode/MitPhysics/Utils/interface/VertexTools.h (file contents):
Revision 1.5 by fabstoec, Fri Jul 8 17:54:27 2011 UTC vs.
Revision 1.6 by bendavid, Fri Nov 18 00:07:16 2011 UTC

# Line 25 | Line 25
25  
26   #include "TMVA/Reader.h"
27  
28 + namespace TMVA {//MVA
29 +  class Reader;
30 + }
31 +
32   namespace mithep {
33    typedef std::vector<double> VertexZarray;
34    typedef std::vector<const Track*> TrackArray;
35  
36    class VertexTools {
37    public:
38 <  
38 >
39 >    VertexTools();
40 >    
41      static double NewMass(const Photon* ph1, const Photon* ph2, const BaseVertex* vert);
42  
43      static VertexZarray ExtractZarray(const VertexCol* vcol, float zmin=-30, float zmax = 30,
# Line 55 | Line 61 | namespace mithep {
61      
62      static VertexTools* instance(const char* str){
63        if(meobject == NULL){
64 <        meobject = new VertexTools(str);
64 >        meobject = new VertexTools();
65 >        meobject->InitM(str);
66        }
67        return meobject;
68      }        
69  
70      // ----------------------------------------------------------
71      // Methods (added by Fabian) on the EPS BaseLine Analysis
72 <    static const Vertex* findVtxBasicRanking(const Photon*           ph1,
72 >    const Vertex* findVtxBasicRanking(const Photon*           ph1,
73                                               const Photon*           ph2,
74                                               const BaseVertex*       bsp,
75                                               const VertexCol*        vtcs,
76 <                                             const DecayParticleCol* conv = NULL);
76 >                                             const DecayParticleCol* conv, Bool_t useMva, Double_t &vtxProb);
77      // ----------------------------------------------------------
78  
79 <    Float_t tmvar1, tmvar2, tmvar3, tmvar4, tmvar5, tmvar6;
80 <    TMVA::Reader* reader;
79 >
80 >    void InitM(const char* str);
81 >    void InitP();
82 >    
83 >    Bool_t IsInitMvaM() const { return fIsInitMvaM; }
84 >    Bool_t IsInitMvaP() const { return fIsInitMvaP; }
85 >    
86 >    static Double_t DeltaMassVtx(Double_t x1, Double_t y1, Double_t z1,
87 >            Double_t x2, Double_t y2, Double_t z2,
88 >            Double_t dz);
89      
90    private:
91 +    
92 +    double VtxMvaP(float ptbal, float ptasym, float logsumpt2, float limPullToConv, float nConv) const;
93 +    
94      static VertexTools *meobject;
95      
96 <    VertexTools();
79 <    VertexTools(const char* str);
96 >
97      TString relname;
98  
99      TrackArray excluded;
100      
101 +    Bool_t fIsInitMvaM;
102 +    Bool_t fIsInitMvaP;
103 +
104 +    Float_t tmvar1, tmvar2, tmvar3, tmvar4, tmvar5, tmvar6;
105 +    TMVA::Reader* reader;
106 +    
107 +    
108 +    TMVA::Reader *readervtx;
109 +    TMVA::Reader *readerevt;
110 +    mutable Float_t fMvaPVars[5];
111 +    mutable Float_t fMvaPEvtVars[8];
112 +    
113      ClassDef(VertexTools, 0) // Muon tools
114        };
115   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines