Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align to pirmin's gbb #17

Open
wants to merge 176 commits into
base: gbb-master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
6b18f41
porting to 76X
matteosan1 Jan 15, 2016
a321971
Heppy: bugfix in TriggerMatchAnalyzer printout
peruzzim Jan 4, 2016
265cc0b
Heppy: save pdgId of matched gen lepton and jet partonFlavour
peruzzim Jan 4, 2016
2d78724
Heppy: direct copy to EOS for files produced on lxbatch
peruzzim Jan 4, 2016
ff18381
Minor fix
peruzzim Jan 7, 2016
d3493ae
Heppy: mcMatchPdgId using mcLep as proxy
peruzzim Jan 12, 2016
8d151df
move trigger bit variables from float to int
Jan 20, 2016
00cac47
Merged smearer_76X from repository matteosan1
matteosan1 Jan 21, 2016
8c73a89
bug fix: relIso was using dBetaFactor as cone size..
cbernet Jan 21, 2016
f2ca542
documentation
cbernet Jan 21, 2016
0e57457
more compact particle printout, added rel iso in lepton printout
cbernet Jan 21, 2016
affa21e
simple muon analyzer and improvements in simple example cfg
cbernet Jan 21, 2016
c4fa074
more instructions in simple_example_cfg.py
cbernet Jan 21, 2016
c4b8808
cleanup for namespaces
matteosan1 Jan 21, 2016
4da6920
Merge branch 'smearer_76X' of https://github.com/matteosan1/cmssw int…
gpetruc Jan 21, 2016
cc9c823
Heppy: interface to Run2ElectronCalibrator
gpetruc Jan 19, 2016
1c4822c
Heppy ElectronCalibrator: adapt to new constructor from Matteo that t…
gpetruc Jan 19, 2016
64208f6
Heppy ElectronCalibrator: fix swap of scales and smearings
gpetruc Jan 20, 2016
57c08a1
Merge branch 'cmg_heppy_ecalCal_76X' into cmg_heppy_76X
gpetruc Jan 21, 2016
fd66ba0
Heppy SkimAnalyzerCount: add option 'verbose' (default=False) to prin…
gpetruc Oct 13, 2015
a4959dd
Heppy GenUtils: small fixes to isNotFromHadronicShower, and added a l…
gpetruc Oct 13, 2015
4f3ac83
Heppy leptons: add ptErr() to the leptons
gpetruc Oct 15, 2015
2e86b9b
Heppy Electron: protect, at least in part, ptErr in case of electrons…
gpetruc Jan 19, 2016
667e05f
Heppy Muon: allow setting ptErr (will be used in some calibrators)
gpetruc Jan 19, 2016
9bd4f80
Heppy: ProvenanceAnalyzer, detects the CMSSW version used to produce …
gpetruc Oct 15, 2015
61faa8b
Heppy JetAnalyzer: allow attaching a GT to a component, so that one c…
gpetruc Oct 23, 2015
8c2fe0c
HeppyCore deltar allow negative deltaRMin to not have a hole in the i…
gpetruc Oct 29, 2015
a3cea96
Heppy Lepton.py: support for fsr-corrected 4-vector
gpetruc Oct 29, 2015
30fdc62
HeppyCore config: allow cloning a module replacing some parameters, a…
gpetruc Nov 23, 2015
2c701d6
Heppy JSONAnalyzer: fix label of counter: it's counting events, not l…
gpetruc Nov 23, 2015
e9678c1
Heppy TriggerBitFilter: add counters
gpetruc Nov 23, 2015
2bad975
Heppy LeptonAnalyzer: Add mcLep also for leptons not matched to a pro…
gpetruc Nov 23, 2015
1b947f7
Heppy TriggerMatchAnalyzer: fix printout, add fallbackProcessName
gpetruc Nov 26, 2015
eeaaec2
HeppyCore: setHeppyOption, to programmatically set job options
gpetruc Nov 26, 2015
78da493
Heppy AutoFillTreeProducer: nTrueInt is not necessarily an integer, s…
gpetruc Jan 19, 2016
081e765
Heppy Muons: make configuration of muon scale calibrators consistent …
gpetruc Jan 19, 2016
b835ce4
Heppy LeptonAnalyzer: allow mc matching of reco electrons to gen photons
gpetruc Jan 19, 2016
5efe981
Heppy LeptonAnalyzer: patch MC match for gamma*->ll while waiting for…
gpetruc Jan 19, 2016
6309e38
Spring15 HZZ MVA in Heppy Electron.py (likely to be edited later)
gpetruc Oct 23, 2015
dec60e9
Add do_mc_match_photons in LeptonAnalyzer default config
gpetruc Jan 21, 2016
e01c6a0
Heppy Electron: Take the Spring15 NonTrig MVA from the userFloat of t…
gpetruc Jan 22, 2016
dc7f367
Z+jets example: Z and tree
cbernet Jan 22, 2016
f370481
SimpleJetAnalyzer now takes filtering function
cbernet Jan 24, 2016
5249df1
added generic Filter and Matcher
cbernet Jan 24, 2016
955d7d9
now using generic Filter in example
cbernet Jan 24, 2016
f4c265c
Merge pull request #65 from gpetruc/cmg_heppy_76X-part1
cbernet Jan 24, 2016
8e89fa0
Merge pull request #66 from gpetruc/cmg_heppy_ecalCal_76X
cbernet Jan 24, 2016
b50ac8a
Merge branch 'heppy_tutorial' into heppy_7_6_3
cbernet Jan 24, 2016
5284a27
Merge branch 'heppy_7_6_3' into cmg_heppy_76X_part2_mergeColin
gpetruc Jan 25, 2016
e9ac94d
HeppyCore config: address Colin's comment, bring copy to the top of t…
gpetruc Jan 25, 2016
f5ce004
Merge pull request #68 from gpetruc/cmg_heppy_76X_part2_mergeColin
cbernet Jan 25, 2016
da4c816
Merged heppy_7_6_3 from repository cbernet
Feb 18, 2016
9e4481d
initial version of bbheppy
Feb 19, 2016
57cdea2
Merged bbheppy from repository gmandorl
arizzi Feb 19, 2016
f90ff56
add crab4heppy
arizzi Feb 19, 2016
119f205
fix
arizzi Feb 19, 2016
d62a9c9
add clustering on Gen
arizzi Feb 19, 2016
0288d7d
Fixing BToDProducer
Feb 19, 2016
cd23e8c
Merged bbheppy from repository arizzi
Feb 19, 2016
ce80247
matching and other improvements\
Feb 23, 2016
f85e71b
add counting of pruimary B hadrons
arizzi Feb 24, 2016
e1875dd
Merged bbheppy from repository gmandorl
arizzi Feb 24, 2016
cfc16f0
remove bad chars
arizzi Feb 24, 2016
bdac9b7
crab config
Feb 24, 2016
8fd897f
resolve conflicts
Feb 24, 2016
8be406a
put the leading jet
Mar 2, 2016
5e70066
change in BToDProducer
Mar 7, 2016
c68800b
Exluded the vertices from pixel Layers
Mar 9, 2016
59bc51a
very good but still something is missing
Mar 18, 2016
e2539e2
no more PU with big pt_hat
Apr 4, 2016
20264c5
auxiliary commit
Apr 6, 2016
906f6f4
I did many little things like saving Pt/M
May 17, 2016
0756a9d
backup 13 June
Jun 13, 2016
0b5e32b
New HLT-safe electron cut-based selection in VID, incl. python and a …
ikrav Jul 19, 2016
8291c58
Bug fixes, added debug statements
ikrav Jul 19, 2016
f2f90c0
A try to fix segv
ikrav Jul 19, 2016
5a88d3e
Fixed AOD vs miniAOD detection
ikrav Jul 19, 2016
225891e
Corrected cut settings
ikrav Jul 19, 2016
0846a55
New cut-based electron ID tuned on 80X
ikrav Jul 29, 2016
8e449c4
Fixed a text comment
ikrav Jul 29, 2016
cdb1092
stato: 25 agosto
Aug 25, 2016
1f476a0
Fixed a typo in cut values
ikrav Oct 3, 2016
65ba7da
Merged egm_id_80X_v1 from repository ikrav
ikrav Oct 17, 2016
925e0b2
Added 80X electron MVA implementation. Restructured location of MVA c…
ikrav Oct 17, 2016
5c9ee5f
Added general purpose ID
Werbellin Oct 18, 2016
bab361b
Remove preliminary HZZ setup
Werbellin Nov 1, 2016
59cb072
Update documentation, bugfixes
Werbellin Nov 1, 2016
ac7540d
Merged egm_id_80X_v2 from repository ikrav
ikrav Nov 15, 2016
e2cacaa
Adjused MD5 sums of the electron MVA IDs
ikrav Nov 15, 2016
1836c9d
A few changes to make new electron MVA work in FWLite
ikrav Nov 22, 2016
e775e89
Removed a header from an MVA base class that appears unnecessary and …
ikrav Nov 30, 2016
4c79393
update ECAL TPG tags and CSC bad chambers description as per request …
mmusich Dec 19, 2016
803aea4
Merge pull request #17069 from cms-AlCaDB/80X_updatePA_GT_forPA_MC
cmsbuild Dec 21, 2016
c91fb66
add PU distribution for high PU isolated bunches in 5412
capalmer85 Jan 12, 2017
1986902
Merge pull request #17159 from capalmer85/add-5412-isoBX-PU
cmsbuild Jan 15, 2017
102ca52
Merged egm_id_80X_v2 from repository ikrav
ikrav Jan 16, 2017
e872e89
Removed TROOT.h include, appears unnecessary
ikrav Dec 8, 2016
917fc6c
Replaced several import* with explicitly named imports
ikrav Dec 8, 2016
b5ca20c
Replaced import * with explicit list in a python configuration file.
ikrav Dec 12, 2016
1993d8f
Adjusted variable names to comply with CMS coding guidelines that req…
ikrav Dec 13, 2016
2c3c219
Fixed a typo introduced with the previous commit when lots of variabl…
ikrav Dec 15, 2016
4d6f513
Fixed variable names in GsfEleNormalizedGsfChi2Cut to comply CMS codi…
ikrav Dec 15, 2016
b99a49b
fix btag import path
jpata Jan 18, 2017
f782eaf
Merged egm_id_80X_v2_for_PR_to_80X from repository ikrav
capalmer85 Jan 18, 2017
1a307c5
Merged vhbbHeppy80X from repository vhbb
capalmer85 Jan 18, 2017
1bb9f72
fixed imports
jpata Jan 19, 2017
7809e12
update selection with spring 16 electron ids
capalmer85 Jan 19, 2017
57822c5
add configuration in cmssw cfg
capalmer85 Jan 20, 2017
2cb57bc
the WPs were swapped
capalmer85 Jan 20, 2017
9814fea
Also catch bad tracker-only muons
gpetruc Jan 23, 2017
b3843fa
Added an option to always accept all events
gpetruc Jan 23, 2017
ffa2b71
change '+' to ','
capalmer85 Jan 23, 2017
91f30ba
Merged vhbbHeppy80X from repository vhbb
gkasieczka Jan 24, 2017
fcfbe4f
added genjet validation script
jpata Jan 24, 2017
465ebb8
added genjet idx validation
jpata Jan 24, 2017
b22bb16
Merge pull request #640 from capalmer85/add-spring16-el-mva-v2
arizzi Jan 24, 2017
1a8a4af
Merged vhbbHeppy80X from repository vhbb
arizzi Jan 24, 2017
6408bfb
add further protection
Jan 24, 2017
53195a0
Merge pull request #644 from arizzi/lucafix
arizzi Jan 24, 2017
f8f48de
Fixes filling of corr for HTT subjets
gkasieczka Jan 24, 2017
7dbc70b
Merge pull request #645 from gkasieczka/dev-httcorrfix
arizzi Jan 25, 2017
aa1c5d4
Merged vhbbHeppy80X_fix_btag_import from repository jpata
arizzi Jan 25, 2017
457ad28
rename crab_data to avoid crab shipping it in input, remove unused pa…
arizzi Jan 25, 2017
bf7024e
Merged badMuonFilters_80X_v2 from repository gpetruc
arizzi Jan 25, 2017
fc8b74e
new param in giovanni's code
arizzi Jan 25, 2017
551a33b
Merge pull request #646 from arizzi/newGiovanniCrabClean
arizzi Jan 25, 2017
f30bfd4
Merged vhbbHeppy80X from repository vhbb
gkasieczka Jan 25, 2017
9cd7fcf
fix JEC syst for HTT subjets
gkasieczka Jan 25, 2017
45f3d40
Merge pull request #647 from gkasieczka/dev-htt-fixjecsys
arizzi Jan 26, 2017
a8cccdc
Merged vhbbHeppy80X from repository vhbb
arizzi Jan 26, 2017
efa633f
Merged vhbbHeppy80X from repository vhbb
gkasieczka Jan 27, 2017
eb3a67d
fix TkMET phi
arizzi Jan 27, 2017
39548ad
Merge pull request #648 from arizzi/metfix
arizzi Jan 27, 2017
c40d38f
Add Summer16_23Sep2016V3 JECs
gkasieczka Jan 27, 2017
56a627a
Merged dev-new-jec from repository gkasieczka
arizzi Jan 27, 2017
35933b2
Update JEC to V3 in heppy_crab_script.py
gkasieczka Jan 27, 2017
21087ff
Remove Spring16 JEC files
gkasieczka Jan 27, 2017
a8e65b4
add CMVA ranking
arizzi Jan 27, 2017
600d461
Merge pull request #649 from gkasieczka/dev-new-jec
arizzi Jan 27, 2017
5d0a125
Merged vhbbHeppy80X from repository vhbb
arizzi Jan 27, 2017
ac5d836
Merge pull request #650 from arizzi/cmvaIdx
arizzi Jan 27, 2017
33bb3cc
Merged vhbbHeppy80X from repository vhbb
degrutto Jan 27, 2017
e59e80f
new moriond CMVA SF
degrutto Jan 27, 2017
f6a7893
Merged vhbbHeppy80X from repository vhbb
cvernier Jan 27, 2017
605edd0
regression with Summer16 JEC
cvernier Jan 27, 2017
fdb23aa
Merge pull request #654 from cvernier/regression-g25
arizzi Jan 28, 2017
a543677
Merge pull request #653 from vhbb/NewCMVASF_Moriond
arizzi Jan 28, 2017
2c57dd5
prinouts in crab stuff
arizzi Jan 28, 2017
d7888fb
Merged vhbbHeppy80X from repository vhbb
arizzi Jan 28, 2017
7afeff4
update regression files usage
arizzi Jan 28, 2017
b3f3650
Merge pull request #655 from arizzi/v25final
arizzi Jan 28, 2017
4f740b1
Final setup for V25 submission 0
arizzi Jan 28, 2017
8acd54a
Merge pull request #656 from arizzi/v25final2
arizzi Jan 28, 2017
d87fac9
update crab setup for V25
arizzi Jan 30, 2017
cbe5f41
update crab setup for V25
arizzi Jan 30, 2017
50354a2
Merge pull request #658 from arizzi/v25final3
arizzi Jan 30, 2017
65c5ad9
fix GT names
arizzi Jan 30, 2017
7121eee
Merge pull request #660 from arizzi/v25final4
arizzi Jan 30, 2017
3f96b28
Merged bbheppy from repository piberger
piberger Jun 12, 2017
07f1f50
backporting fix in heppy jet objects userFloat pileupJetId:fullDiscri…
piberger Jun 20, 2017
a61ff48
make code work with DATA, add HLT and Jets collections
piberger Jun 27, 2017
7ce2236
ntuple creation scripts
piberger Jun 30, 2017
f7a577d
merge nuovoHbb branch with my changes
piberger Jul 3, 2017
0760d53
update some configs for 2016 data
piberger Jul 3, 2017
f89c258
copy some missing things from arizzi/V25b branch
piberger Jul 3, 2017
6f68984
add sample txt files for 2016 data
piberger Jul 3, 2017
0c71286
take TriggerObjectsList from VHbbAnalysis
piberger Jul 3, 2017
e6b53af
Merged V25 from repository vhbb
piberger Jul 4, 2017
c6022c0
merge conflicts
piberger Jul 4, 2017
11f8ef7
fix trigger objects, add l1 trigger
piberger Jul 6, 2017
08f31f3
fix outputfile in services for looper
piberger Jul 6, 2017
da4b1c4
add working jet collection
piberger Jul 7, 2017
0167bd4
fix memory leak in ttHHeavyFlavourHadronAnalyzer
piberger Jul 17, 2017
a5201e5
fix another 2 memory leaks of similar kind in ttHHeavyFlavourHadronAn…
piberger Jul 17, 2017
112a000
add MemoryLeakAnalyzer
piberger Jul 17, 2017
cf2960e
add MemoryLeakAnalyzer to chain
piberger Jul 17, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions BBAnalysis/BBHeppy/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

<use name="CommonTools/Utils"/>
<use name="TrackingTools/IPTools"/>
<use name="SimDataFormats/GeneratorProducts"/>

<use name="root"/>
<use name="rootcore"/>
<use name="rootinteractive"/>

<use name="rootpy"/>
<use name="clhepheader"/>
<use name="DataFormats/Candidate"/>
<use name="DataFormats/PatCandidates"/>
<use name="DataFormats/HepMCCandidate"/>
<use name="fastjet"/>
<use name="ktjet"/>
<use name="EgammaAnalysis/ElectronTools"/>
<use name="MagneticField/UniformEngine"/>
<use name="MagneticField/ParametrizedEngine"/>
<use name="RecoVertex/KalmanVertexFit"/>
<use name="RecoVertex/VertexTools"/>
<use name="boost"/>
<use name="lhapdf"/>
<export>
<lib name="1"/>
</export>


62 changes: 62 additions & 0 deletions BBAnalysis/BBHeppy/interface/BBClusterizer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#ifndef PhysicsTools_Heppy_BBClusterizer_h
#define PhysicsTools_Heppy_BBClusterizer_h

#include <vector>
#include <iostream>
#include <cmath>
#include <TLorentzVector.h>
#include <TMath.h>
#include "DataFormats/Math/interface/LorentzVector.h"

#include <boost/shared_ptr.hpp>
#include <fastjet/internal/base.hh>
#include "fastjet/PseudoJet.hh"
#include "fastjet/JetDefinition.hh"
#include "fastjet/ClusterSequence.hh"
#include "fastjet/Selector.hh"
#include "fastjet/PseudoJet.hh"

namespace heppy{
class BBClusterizer {

public:
typedef math::XYZTLorentzVector LorentzVector;

BBClusterizer(const std::vector<LorentzVector> & ,
const LorentzVector &,const LorentzVector &,
double ktpower, double rparam);

BBClusterizer(const std::vector<LorentzVector> & ,
const LorentzVector &,const LorentzVector &, const LorentzVector &,const LorentzVector &,
double ktpower, double rparam);

/// get grouping (inclusive jets)
std::vector<LorentzVector> getBJets();
std::vector<LorentzVector> getBJets4B();
std::vector<LorentzVector> GetLeadingJets();

private:
// pack the returns in a fwlite-friendly way
std::vector<LorentzVector> makeP4s(const std::vector<fastjet::PseudoJet> &jets) ;

// look if there is the SV in the jet
int SVIsInTheJet(const fastjet::PseudoJet & pj);

// divide the jet in 2
std::vector<fastjet::PseudoJet> DivideTheJet(const fastjet::PseudoJet & pj);

// used to handle the inputs
std::vector<fastjet::PseudoJet> fjInputs; // fastjet inputs

LorentzVector b1_;
LorentzVector b2_;
double ktpower_;
double rparam_;

/// fastjet outputs
typedef boost::shared_ptr<fastjet::ClusterSequence> ClusterSequencePtr;
ClusterSequencePtr fjClusterSeq_;
};
}
#endif

37 changes: 37 additions & 0 deletions BBAnalysis/BBHeppy/interface/SVUtils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#ifndef PhysicsTools_Heppy_SVUtils_h
#define PhysicsTools_Heppy_SVUtils_h

#include <vector>
#include <iostream>
#include <cmath>
#include <TLorentzVector.h>
#include <TMath.h>
#include "DataFormats/Math/interface/LorentzVector.h"

#include "RecoVertex/VertexPrimitives/interface/ConvertToFromReco.h"
#include "RecoVertex/VertexPrimitives/interface/VertexState.h"
#include "RecoVertex/VertexTools/interface/VertexDistance3D.h"
#include "RecoVertex/VertexTools/interface/VertexDistanceXY.h"
#include "RecoVertex/VertexTools/interface/VertexDistance.h"
#include "RecoVertex/VertexTools/interface/SharedTracks.h"
#include <RecoVertex/VertexPrimitives/interface/BasicVertexState.h>


namespace heppy{
class SVUtils {

public:
SVUtils(const reco::Vertex & pv, const reco::VertexCompositePtrCandidate & sv):
pv_(RecoVertex::convertPos(pv.position()),RecoVertex::convertError(pv.error())),
sv_(RecoVertex::convertPos(sv.position()),RecoVertex::convertError(sv.error()))
{}
Measurement1D dist3D();
Measurement1D dist2D();

private:
VertexState pv_;
VertexState sv_;
};
}
#endif

60 changes: 60 additions & 0 deletions BBAnalysis/BBHeppy/interface/SignedImpactParameter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#ifndef SignedImpactParmeter_h
#define SignedImpactParmeter_h

#include "DataFormats/Candidate/interface/VertexCompositePtrCandidate.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h"

#if defined( __GXX_EXPERIMENTAL_CXX0X__)
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#endif

struct MagneticField;

namespace heppy {
class SignedImpactParameter {
public:
SignedImpactParameter() ;
~SignedImpactParameter() ;

bool qualitytrk(const reco::Track trk, const reco::Vertex &vtx);
Measurement1D signedIP3D(const reco::Track &tk, const reco::Vertex &vtx, const reco::Track::Vector jetdir) const ;
Measurement1D signedIP3D(const reco::Track &tk, const reco::VertexCompositePtrCandidate &vtx, const reco::Track::Vector jetdir) const ;
Measurement1D signedIP2D(const reco::Track &tk, const reco::Vertex &vtx, const reco::Track::Vector jetdir) const ;
Measurement1D signedIP2D(const reco::Track &tk, const reco::VertexCompositePtrCandidate &vtx, const reco::Track::Vector jetdir) const ;
Measurement1D IP3D(const reco::Track &tk, const reco::Vertex &vtx) const ;
Measurement1D IP3D(const reco::Track &tk, const reco::VertexCompositePtrCandidate &vtx) const ;
Measurement1D IP2D(const reco::Track &tk, const reco::Vertex &vtx) const ;
Measurement1D IP2D(const reco::Track &tk, const reco::VertexCompositePtrCandidate &vtx) const ;

std::pair<double,double> twoTrackChi2(const reco::Track &tk1, const reco::Track &tk2) const ;

//For the vertex related variables
//A = selectedLeptons[0], B = selectedLeptons[1], C = selectedLeptons[2], D = selectedLeptons[3]

#if defined( __GXX_EXPERIMENTAL_CXX0X__)
//Helping functions
std::vector<reco::TransientTrack> ttrksf(const reco::Track &trkA, const reco::Track &trkB, const reco::Track &trkC, const reco::Track &trkD, int nlep) const;
std::vector<reco::TransientTrack> ttrksbuthef(const reco::Track &trkA, const reco::Track &trkB, const reco::Track &trkC, const reco::Track &trkD, int nlep, int iptrk) const;
reco::TransientTrack thettrkf(const reco::Track &trkA, const reco::Track &trkB, const reco::Track &trkC, const reco::Track &trkD, int nlep, int iptrk) const;
#endif

//Variables related to IP
//Of one lepton w.r.t. the PV of the event
std::pair<double,double> absIP3D(const reco::Track &trk, const reco::Vertex &pv) const;
//Of one lepton w.r.t. the PV of the PV of the other leptons only
std::pair<double,double> absIP3Dtrkpvtrks(const reco::Track &trkA, const reco::Track &trkB, const reco::Track &trkC, const reco::Track &trkD, int nlep, int iptrk) const;
//Variables related to chi2
std::pair<double,double> chi2pvtrks(const reco::Track &trkA, const reco::Track &trkB, const reco::Track &trkC, const reco::Track &trkD, int nlep) const;

Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv) const ;
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv) const ;
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv) const ;
private:
//MagneticField *bfield_;
static MagneticField *paramField_;
};

}
#endif
21 changes: 21 additions & 0 deletions BBAnalysis/BBHeppy/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<use name="FWCore/Framework"/>
<use name="FWCore/PluginManager"/>
<use name="FWCore/ParameterSet"/>
<use name="DataFormats/PatCandidates"/>
<use name="DataFormats/Candidate"/>
<use name="DataFormats/HepMCCandidate"/>
<use name="RecoVertex/VertexPrimitives"/>
<use name="RecoVertex/VertexTools"/>
<use name="RecoBTag/SecondaryVertex"/>
<use name="DataFormats/BTauReco"/>
<use name="FWCore/ServiceRegistry"/>
<use name="CommonTools/UtilAlgos"/>
<flags EDM_PLUGIN="1"/>


<!--<use name="DataFormats/TrackReco"/>-->
<!--<use name="CommonTools/UtilAlgos"/>-->
<!--<use name="PhysicsTools/UtilAlgos"/>-->
<!--<use name="root"/>-->
<!--<use name="rootcore"/>-->

Loading