Changeset 8 in huonglan


Ignore:
Timestamp:
Aug 22, 2011, 2:04:28 PM (13 years ago)
Author:
huonglan
Message:

22August : changing b-tagging & before mu in b-jet treat

Location:
ANA2011
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ANA2011/InitHistos.h

    r6 r8  
    2626  TString Match[2] = {"_match_allevents","_match_chi2"};
    2727  for (int i = 0; i < 2; i++) {
    28     name = "category"; name+= Match[i];
     28    name = "category"; name += Match[i];
    2929    m_category[i] = new TH1F(name, "", 50, 0, 50);
    3030    fOutput->Add(m_category[i]);
  • ANA2011/MyAdd.h

    r6 r8  
    3535pair<unsigned int, vector<TLorentzVector> > matchQstat2Jets(std::vector<Particle>, std::vector<Particle>, bool);
    3636void TruthAna(double,vector<Particle>,vector<Particle>,bool,Particle,int,int,vector<TLorentzVector>,vector<TLorentzVector>,vector<TLorentzVector>,TLorentzVector,TLorentzVector,double,double,double);
     37void FillFlavourChi2(vector<TLorentzVector>,vector<Particle>,TLorentzVector,TLorentzVector,TLorentzVector,TLorentzVector);
     38
    3739void TagTop172(vector<Particle>,vector<TLorentzVector>,vector<TLorentzVector>,bool);
    3840bool emuOverlap(vector<int>);
     
    239241  b_LeadingJetsInChi2,
    240242  b_catAll,     
    241   b_catChi2;
     243  b_catChi2,
     244  b_flavjbqq,
     245  b_flavjq1W,
     246  b_flavjq2W,
     247  b_flavjben,
     248  b_NRealbChi2;
     249
    242250Double_t b_dsigmaGG, b_dsigmaQQ, b_dsigmatot,
    243251  b_chi2minmin, b_chi2second, b_chi2New,
  • ANA2011/SetBranchTreeAna.h

    r6 r8  
    123123
    124124tree_ana->Branch("catChi2",                  &b_catChi2,                  "catChi2/I");
     125tree_ana->Branch("flavjbqq",                 &b_flavjbqq,             "flavjbqq/I");
     126tree_ana->Branch("flavjq1W",                 &b_flavjq1W,             "flavjq1W/I");
     127tree_ana->Branch("flavjq2W",                 &b_flavjq2W,             "flavjq2W/I");
     128tree_ana->Branch("flavjben",                 &b_flavjben,             "flavjben/I");
     129tree_ana->Branch("NRealbChi2",               &b_NRealbChi2,         "NRealbChi2/I");
  • ANA2011/ana2011.C

    r5 r8  
    6868#include "MatchTrigger.C"
    6969#include "ana2011AddFunctions.C"
     70#include "FunctionsFlavourChi2.C"
    7071#include "emuOverlap.C"
    7172#include "SF.C"
     
    755756        float ip3d = jet_flavor_weight_Comb->at(i);
    756757        m_ip3dsv1[lab]->Fill(max(-19.99,min(ip3d,39.99)));
     758        float combnn = jet_flavor_weight_JetFitterCOMBNN->at(i);
    757759        //
    758         if (sv0 > 5.85){
     760        //if (sv0 > 5.85){
     761        if (combnn > 2.0){
    759762          hasbtagged = true;
    760763          bjets.push_back(v4j);   
     
    774777  double Ptmax = 1e-30;
    775778  vector<TLorentzVector> vGoodJets;
     779  vector<int> vGoodJetsFlav;
    776780
    777781  unsigned int nGoodJets = goodJets.size();
     
    782786    //for (unsigned int i = 0; i < 4; i++){
    783787    Particle parj = goodJets.at(i);
     788    vGoodJetsFlav.push_back(parj.POL());
    784789    TLorentzVector v4 = parj.vector4();
    785790    vGoodJets.push_back(v4);
     
    14001405  //##############         STAR CHI2       #################
    14011406  //########################################################
    1402   bool doChi2Ana = false;
     1407  bool doChi2Ana = true;
    14031408  if (!doChi2Ana) return kTRUE;
    14041409
     
    17691774  FourJetsChi2.push_back(jq2W);
    17701775  FourJetsChi2.push_back(jben);
     1776
     1777  //Flavour Chi2
     1778  FillFlavourChi2(vGoodJets,goodJets,jbqq,jq1W,jq2W,jben);
    17711779
    17721780  //Matrix Element
     
    27562764  b_pTtoplep=vtlminmin.Pt()/1000;
    27572765  b_pZtophad=vthminmin.Z()/1000;
    2758   b_pZttbar=vttpairchi2.Z()/1000
     2766  b_pZttbar=vttpairchi2.Z()/1000;
    27592767
    27602768  b_ptjbqq=jbqq.Pt()/1000.;
     
    30213029    b_jet_flavor_weight_SV0->GetEntry(entry);
    30223030    b_jet_flavor_weight_Comb->GetEntry(entry);
     3031    b_jet_flavor_weight_JetFitterCOMBNN->GetEntry(entry);
    30233032    if (!RealData)
    30243033      b_jet_flavor_truth_label->GetEntry(entry);
Note: See TracChangeset for help on using the changeset viewer.