ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/include/ReconstructionHypothesis.h
(Generate patch)

Comparing UserCode/UHHAnalysis/SFrameTools/include/ReconstructionHypothesis.h (file contents):
Revision 1.1 by peiffer, Thu Jun 28 15:57:30 2012 UTC vs.
Revision 1.2 by peiffer, Fri Jun 29 12:58:37 2012 UTC

# Line 20 | Line 20 | class ReconstructionHypothesis{
20    ReconstructionHypothesis(){
21      m_tophad_jets_ind.clear();
22      m_toplep_jets_ind.clear();
23 +    m_blep_ind=-1;
24      LorentzVector v4(0,0,0,0);
25      m_toplep_v4=v4;
26      m_tophad_v4=v4;
# Line 39 | Line 40 | class ReconstructionHypothesis{
40    LorentzVector top_v4() const{ return m_lepton.charge() > 0 ? m_toplep_v4 : m_tophad_v4;}
41    LorentzVector antitop_v4() const{ return m_lepton.charge() < 0 ? m_toplep_v4 : m_tophad_v4;}
42    LorentzVector wlep_v4() const{ return m_neutrino_v4+m_lepton.v4();}
43 +  int blep_index() const{ return m_blep_ind;}
44  
45    /// get the discriminator value for this hypothesis
46    float discriminator(std::string l){
# Line 60 | Line 62 | class ReconstructionHypothesis{
62    void set_neutrino_v4(LorentzVector v4){m_neutrino_v4=v4;}
63    void add_toplep_jet_index(unsigned int j){m_toplep_jets_ind.push_back(j);}
64    void add_tophad_jet_index(unsigned int j){m_tophad_jets_ind.push_back(j);}
65 +  void set_blep_index(int j){m_blep_ind=j;}
66    void set_lepton(Particle p){m_lepton=p;}
67    void add_qualityflag(qualityflag q){m_qualityflags.push_back(q);}
68    void add_qualityflag(std::string label, float discr){
# Line 91 | Line 94 | class ReconstructionHypothesis{
94    //indices to the jets in the jet list assigned to hadronic and leptonic tops
95    std::vector<unsigned int> m_tophad_jets_ind;
96    std::vector<unsigned int> m_toplep_jets_ind;
97 +  //index to the jet with highest pt assigned to the leptonic top
98 +  int m_blep_ind;
99  
100    Particle m_lepton;
101  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines