ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerDCASig.h
Revision: 1.1
Committed: Sun Mar 11 23:11:55 2012 UTC (13 years, 1 month ago) by pharris
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, HEAD
Branch point for: Mit_025c_branch
Log Message:
Adding DCA Significance + PF No Pileup Flag + Charge Hadron Subtracted Jets

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 //
3 // Implementation of a filler creating distance of closes approach between two opposite flavored leptons (including taus)
4 //
5 // Authors: P. Harrs
6 //--------------------------------------------------------------------------------------------------
7 #ifndef MITPROD_TREEFILLER_FILLERDCASIG_H
8 #define MITPROD_TREEFILLER_FILLERDCASIG_H
9
10 #include "MitAna/DataTree/interface/DCASigFwd.h"
11 #include "MitAna/DataTree/interface/DCASig.h"
12 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
13 #include "MitProd/TreeFiller/interface/BaseFiller.h"
14 #include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
15
16 namespace mithep
17 {
18 class FillerDCASig : public BaseFiller
19 {
20 public:
21 FillerDCASig(const edm::ParameterSet &cfg, const char *name, bool active=1);
22 ~FillerDCASig();
23
24 void BookDataBlock(TreeWriter &tws);
25 void FillDataBlock(const edm::Event &e,
26 const edm::EventSetup &es);
27 void calculateDCA(Double_t &iDCA3D ,Double_t &iDCA3DE ,Double_t &iDCA2D ,Double_t &iDCA2DE,
28 Double_t &iDCARPhi3D,Double_t &iDCARPhi3DE,Double_t &iDCARPhi2D,Double_t &iDCARPhi2DE,
29 const reco::Track *iTrack1,const reco::Track *iTrack2,DCASig::EDCAType iType) ;
30
31 private:
32 mithep::Particle *GetMitParticle(edm::Ptr<reco::Track> ptr) const;
33
34 std::string edmElectronName_; //name of edm electrons
35 std::string edmMuonName_; //name of edm muons
36 std::string edmTauName_; //name of edm Taus
37 std::string mitName_; //mit name of Conversions
38 std::string electronMapName_; //name of imported electrons map
39 std::string muonMapName_; //name of imported muons map
40 std::string tauMapName_; //name of imported pftau map
41 const mithep::ElectronMap *electronMap_; //map wrt electrons
42 const mithep::MuonMap *muonMap_; //map wrt muons
43 const mithep::PFTauMap *tauMap_; //map wrt pftaus
44 Double_t electronPtMin_; //Minimum electron pT for wich to calc DCA
45 Double_t muonPtMin_; //Minimum muon pT for which to calc DCA
46 Double_t tauPtMin_; //Minimum tau pT for which to calc DCA
47 Bool_t checkDCARef_; //Debug Output
48 mithep::DCASigArr *DCASigs_; //array of DCASignificance
49 const TransientTrackBuilder *transientTrackBuilder_;
50 };
51 }
52 #endif