26 #include "CLHEP/Random/RandGauss.h"
56 Algorithm_ = iConfig.
getParameter<std::string>(
"Algorithm");
57 smearedPVsigmaX_ = iConfig.
getParameter<
double>(
"smearedPVsigmaX");
58 smearedPVsigmaY_ = iConfig.
getParameter<
double>(
"smearedPVsigmaY");
59 smearedPVsigmaZ_ = iConfig.
getParameter<
double>(
"smearedPVsigmaZ");
62 if(Algorithm_ ==
"ConeBased") {
65 else if(Algorithm_ ==
"HPS") {
75 produces<PFTauCollection>();
78 delete PFRecoTauAlgo_;
86 PFRecoTauAlgo_->setTransientTrackBuilder(myTransientTrackBuilder.
product());
103 if(vertCollection.size()) thePV=*(vertCollection.begin());
106 SimPVError(0,0)=smearedPVsigmaX_*smearedPVsigmaX_;
107 SimPVError(1,1)=smearedPVsigmaY_*smearedPVsigmaY_;
108 SimPVError(2,2)=smearedPVsigmaZ_*smearedPVsigmaZ_;
109 Vertex::Point SimPVPoint(CLHEP::RandGauss::shoot(0.,smearedPVsigmaX_),
110 CLHEP::RandGauss::shoot(0.,smearedPVsigmaY_),
111 CLHEP::RandGauss::shoot(0.,smearedPVsigmaZ_));
112 thePV=
Vertex(SimPVPoint,SimPVError,1,1,1);
116 iEvent.
getByLabel(PFTauTagInfoProducer_,thePFTauTagInfoCollection);
118 for(PFTauTagInfoCollection::const_iterator i_info=thePFTauTagInfoCollection->begin();i_info!=thePFTauTagInfoCollection->end();i_info++) {
119 if((*i_info).pfjetRef()->pt()>JetMinPt_){
122 resultPFTau->push_back(myPFTau);
126 iEvent.
put(resultPFTau);
edm::InputTag PFTauTagInfoProducer_
T getParameter(std::string const &) const
std::vector< PFTau > PFTauCollection
collection of PFTau objects
#define DEFINE_FWK_MODULE(type)
PFRecoTauProducer(const edm::ParameterSet &iConfig)
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
math::XYZPoint Point
point in the space
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
T const * product() const
edm::InputTag ElectronPreIDProducer_
PFRecoTauAlgorithmBase * PFRecoTauAlgo_
edm::InputTag PVProducer_