1 |
pharris |
1.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
|