test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes
PATTauDiscriminationByMVAIsolationRun2 Class Reference
Inheritance diagram for PATTauDiscriminationByMVAIsolationRun2:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginEvent (const edm::Event &, const edm::EventSetup &)
 
double discriminate (const TauRef &) const
 
void endEvent (edm::Event &)
 
 PATTauDiscriminationByMVAIsolationRun2 (const edm::ParameterSet &cfg)
 
 ~PATTauDiscriminationByMVAIsolationRun2 ()
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
void produce (edm::Event &, const edm::EventSetup &)
 
 TauDiscriminationProducerBase (const edm::ParameterSet &iConfig)
 
 TauDiscriminationProducerBase ()
 
virtual ~TauDiscriminationProducerBase ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector
< edm::ProductResolverIndex >
const & 
indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector
< ProductResolverIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

enum  {
  kOldDMwoLT, kOldDMwLT, kNewDMwoLT, kNewDMwLT,
  kDBoldDMwLT, kDBnewDMwLT, kPWoldDMwLT, kPWnewDMwLT
}
 

Private Attributes

std::unique_ptr
< pat::PATTauDiscriminator
category_output_
 
std::string chargedIsoPtSums_
 
TauIdMVAAuxiliaries clusterVariables_
 
std::string footprintCorrection_
 
edm::FileInPath inputFileName_
 
std::vector< TFile * > inputFilesToDelete_
 
bool loadMVAfromDB_
 
std::string moduleLabel_
 
float * mvaInput_
 
std::string mvaName_
 
int mvaOpt_
 
const GBRForestmvaReader_
 
std::string neutralIsoPtSums_
 
std::string photonPtSumOutsideSignalCone_
 
std::string puCorrPtSums_
 
edm::Handle< TauCollectiontaus_
 
int verbosity_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd
< TauCollection
TauRefProd
 
- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
std::string moduleLabel_
 
double prediscriminantFailValue_
 
edm::EDGetTokenT< TauCollectionTau_token
 
size_t tauIndex_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 74 of file PATTauDiscriminationByMVAIsolationRun2.cc.

Member Enumeration Documentation

anonymous enum
private

Constructor & Destructor Documentation

PATTauDiscriminationByMVAIsolationRun2::PATTauDiscriminationByMVAIsolationRun2 ( const edm::ParameterSet cfg)
inlineexplicit

Definition at line 77 of file PATTauDiscriminationByMVAIsolationRun2.cc.

References assert(), Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

79  moduleLabel_(cfg.getParameter<std::string>("@module_label")),
80  mvaReader_(0),
81  mvaInput_(0),
83  {
84  mvaName_ = cfg.getParameter<std::string>("mvaName");
85  loadMVAfromDB_ = cfg.exists("loadMVAfromDB") ? cfg.getParameter<bool>("loadMVAfromDB") : false;
86  if ( !loadMVAfromDB_ ) {
87  if(cfg.exists("inputFileName")){
88  inputFileName_ = cfg.getParameter<edm::FileInPath>("inputFileName");
89  }else throw cms::Exception("MVA input not defined") << "Requested to load tau MVA input from ROOT file but no file provided in cfg file";
90  }
91  std::string mvaOpt_string = cfg.getParameter<std::string>("mvaOpt");
92  if ( mvaOpt_string == "oldDMwoLT" ) mvaOpt_ = kOldDMwoLT;
93  else if ( mvaOpt_string == "oldDMwLT" ) mvaOpt_ = kOldDMwLT;
94  else if ( mvaOpt_string == "newDMwoLT" ) mvaOpt_ = kNewDMwoLT;
95  else if ( mvaOpt_string == "newDMwLT" ) mvaOpt_ = kNewDMwLT;
96  else if ( mvaOpt_string == "DBoldDMwLT" ) mvaOpt_ = kDBoldDMwLT;
97  else if ( mvaOpt_string == "DBnewDMwLT" ) mvaOpt_ = kDBnewDMwLT;
98  else if ( mvaOpt_string == "PWoldDMwLT" ) mvaOpt_ = kPWoldDMwLT;
99  else if ( mvaOpt_string == "PWnewDMwLT" ) mvaOpt_ = kPWnewDMwLT;
100  else throw cms::Exception("PATTauDiscriminationByMVAIsolationRun2")
101  << " Invalid Configuration Parameter 'mvaOpt' = " << mvaOpt_string << " !!\n";
102 
103  if ( mvaOpt_ == kOldDMwoLT || mvaOpt_ == kNewDMwoLT ) mvaInput_ = new float[6];
104  else if ( mvaOpt_ == kOldDMwLT || mvaOpt_ == kNewDMwLT ) mvaInput_ = new float[12];
105  else if ( mvaOpt_ == kDBoldDMwLT || mvaOpt_ == kDBnewDMwLT ||
106  mvaOpt_ == kPWoldDMwLT || mvaOpt_ == kPWnewDMwLT) mvaInput_ = new float[23];
107  else assert(0);
108 
109  chargedIsoPtSums_ = cfg.getParameter<std::string>("srcChargedIsoPtSum");
110  neutralIsoPtSums_ = cfg.getParameter<std::string>("srcNeutralIsoPtSum");
111  puCorrPtSums_ = cfg.getParameter<std::string>("srcPUcorrPtSum");
112  photonPtSumOutsideSignalCone_ = cfg.getParameter<std::string>("srcPhotonPtSumOutsideSignalCone");
113  footprintCorrection_ = cfg.getParameter<std::string>("srcFootprintCorrection");
114 
115  verbosity_ = ( cfg.exists("verbosity") ) ?
116  cfg.getParameter<int>("verbosity") : 0;
117 
118  produces<pat::PATTauDiscriminator>("category");
119  }
T getParameter(std::string const &) const
assert(m_qm.get())
bool exists(std::string const &parameterName) const
checks if a parameter exists
TauDiscriminationProducerBase< pat::Tau, pat::PATTauDiscriminator > PATTauDiscriminationProducerBase
std::unique_ptr< pat::PATTauDiscriminator > category_output_
PATTauDiscriminationByMVAIsolationRun2::~PATTauDiscriminationByMVAIsolationRun2 ( )
inline

Definition at line 127 of file PATTauDiscriminationByMVAIsolationRun2.cc.

128  {
129  if(!loadMVAfromDB_) delete mvaReader_;
130  delete[] mvaInput_;
131  for ( std::vector<TFile*>::iterator it = inputFilesToDelete_.begin();
132  it != inputFilesToDelete_.end(); ++it ) {
133  delete (*it);
134  }
135  }

Member Function Documentation

void PATTauDiscriminationByMVAIsolationRun2::beginEvent ( const edm::Event evt,
const edm::EventSetup es 
)
virtual

Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 163 of file PATTauDiscriminationByMVAIsolationRun2.cc.

References edm::Event::getByToken(), and mvaPFMET_cff::loadMVAfromDB.

164 {
165  if( !mvaReader_ ) {
166  if ( loadMVAfromDB_ ) {
168  } else {
170  }
171  }
172 
173  evt.getByToken(Tau_token, taus_);
175 }
edm::RefProd< TauCollection > TauRefProd
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
edm::EDGetTokenT< TauCollection > Tau_token
std::unique_ptr< pat::PATTauDiscriminator > category_output_
tuple loadMVAfromDB
Definition: mvaPFMET_cff.py:84
double PATTauDiscriminationByMVAIsolationRun2::discriminate ( const TauRef tau) const
virtual

Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 177 of file PATTauDiscriminationByMVAIsolationRun2.cc.

References python.rootplot.argparse::category, PFRecoTauDiscriminationByMVAIsolation2_cff::chargedIsoPtSum, alignCSCRings::e, PFRecoTauDiscriminationByMVAIsolationRun2_cff::footprintCorrection, edm::Ref< C, T, F >::isNull(), dqm-mbProfile::log, bookConverter::max, min(), PFRecoTauDiscriminationByMVAIsolation2_cff::neutralIsoPtSum, PFRecoTauDiscriminationByMVAIsolationRun2_cff::photonPtSumOutsideSignalCone, PFRecoTauDiscriminationByMVAIsolation2_cff::puCorrPtSum, Sign(), and mathSSE::sqrt().

178 {
179  // CV: define dummy category index in order to use RecoTauDiscriminantCutMultiplexer module to appy WP cuts
180  double category = 0.;
181  category_output_->setValue(tauIndex_, category);
182 
183  // CV: computation of MVA value requires presence of leading charged hadron
184  if ( tau->leadChargedHadrCand().isNull() ) return 0.;
185 
186  int tauDecayMode = tau->decayMode();
187 
188  if ( ((mvaOpt_ == kOldDMwoLT || mvaOpt_ == kOldDMwLT || mvaOpt_ == kDBoldDMwLT || mvaOpt_ == kPWoldDMwLT) && (tauDecayMode == 0 || tauDecayMode == 1 || tauDecayMode == 2 || tauDecayMode == 10)) ||
189  ((mvaOpt_ == kNewDMwoLT || mvaOpt_ == kNewDMwLT || mvaOpt_ == kDBnewDMwLT || mvaOpt_ == kPWnewDMwLT) && (tauDecayMode == 0 || tauDecayMode == 1 || tauDecayMode == 2 || tauDecayMode == 5 || tauDecayMode == 6 || tauDecayMode == 10)) ) {
190 
191  float chargedIsoPtSum = tau->tauID(chargedIsoPtSums_);
192  float neutralIsoPtSum = tau->tauID(neutralIsoPtSums_);
193  float puCorrPtSum = tau->tauID(puCorrPtSums_);
195  float footprintCorrection = tau->tauID(footprintCorrection_);
196 
197  float decayDistX = tau->flightLength().x();
198  float decayDistY = tau->flightLength().y();
199  float decayDistZ = tau->flightLength().z();
200  float decayDistMag = std::sqrt(decayDistX*decayDistX + decayDistY*decayDistY + decayDistZ*decayDistZ);
201 
202  // --- The following 5 variables differ slightly between AOD & MiniAOD
203  // because they are recomputed using packedCandidates saved in the tau
204  float nPhoton = (float)clusterVariables_.tau_n_photons_total(*tau);
205  float ptWeightedDetaStrip = clusterVariables_.tau_pt_weighted_deta_strip(*tau, tauDecayMode);
206  float ptWeightedDphiStrip = clusterVariables_.tau_pt_weighted_dphi_strip(*tau, tauDecayMode);
207  float ptWeightedDrSignal = clusterVariables_.tau_pt_weighted_dr_signal(*tau, tauDecayMode);
208  float ptWeightedDrIsolation = clusterVariables_.tau_pt_weighted_dr_iso(*tau, tauDecayMode);
209  // ---
210  float leadingTrackChi2 = tau->leadingTrackNormChi2();
211  float eRatio = clusterVariables_.tau_Eratio(*tau);
212 
213  if ( mvaOpt_ == kOldDMwoLT || mvaOpt_ == kNewDMwoLT ) {
214  mvaInput_[0] = std::log(std::max((float)1., (float)tau->pt()));
215  mvaInput_[1] = std::fabs((float)tau->eta());
216  mvaInput_[2] = std::log(std::max((float)1.e-2, chargedIsoPtSum));
217  mvaInput_[3] = std::log(std::max((float)1.e-2, neutralIsoPtSum - (float)0.125*puCorrPtSum));
218  mvaInput_[4] = std::log(std::max((float)1.e-2, puCorrPtSum));
219  mvaInput_[5] = tauDecayMode;
220  } else if ( mvaOpt_ == kOldDMwLT || mvaOpt_ == kNewDMwLT ) {
221  mvaInput_[0] = std::log(std::max((float)1., (float)tau->pt()));
222  mvaInput_[1] = std::fabs((float)tau->eta());
223  mvaInput_[2] = std::log(std::max((float)1.e-2, chargedIsoPtSum));
224  mvaInput_[3] = std::log(std::max((float)1.e-2, neutralIsoPtSum - (float)0.125*puCorrPtSum));
225  mvaInput_[4] = std::log(std::max((float)1.e-2, puCorrPtSum));
226  mvaInput_[5] = tauDecayMode;
227  mvaInput_[6] = TMath::Sign((float)+1., tau->dxy());
228  mvaInput_[7] = std::sqrt(std::min((float)1., std::fabs(tau->dxy())));
229  mvaInput_[8] = std::min((float)10., std::fabs(tau->dxy_Sig()));
230  mvaInput_[9] = ( tau->hasSecondaryVertex() ) ? 1. : 0.;
231  mvaInput_[10] = std::sqrt(decayDistMag);
232  mvaInput_[11] = std::min((float)10., tau->flightLengthSig());
233  } else if ( mvaOpt_ == kDBoldDMwLT || mvaOpt_ == kDBnewDMwLT ) {
234  mvaInput_[0] = std::log(std::max((float)1., (float)tau->pt()));
235  mvaInput_[1] = std::fabs(tau->eta());
236  mvaInput_[2] = std::log(std::max((float)1.e-2, chargedIsoPtSum));
237  mvaInput_[3] = std::log(std::max((float)1.e-2, neutralIsoPtSum));
238  mvaInput_[4] = std::log(std::max((float)1.e-2, puCorrPtSum));
239  mvaInput_[5] = std::log(std::max((float)1.e-2, photonPtSumOutsideSignalCone));
240  mvaInput_[6] = tauDecayMode;
241  mvaInput_[7] = std::min((float)30., nPhoton);
242  mvaInput_[8] = std::min((float)0.5, ptWeightedDetaStrip);
243  mvaInput_[9] = std::min((float)0.5, ptWeightedDphiStrip);
244  mvaInput_[10] = std::min((float)0.5, ptWeightedDrSignal);
245  mvaInput_[11] = std::min((float)0.5, ptWeightedDrIsolation);
246  mvaInput_[12] = std::min((float)100., leadingTrackChi2);
247  mvaInput_[13] = std::min((float)1., eRatio);
248  mvaInput_[14] = TMath::Sign((float)+1., tau->dxy());
249  mvaInput_[15] = std::sqrt(std::min((float)1., std::fabs(tau->dxy())));
250  mvaInput_[16] = std::min((float)10., std::fabs(tau->dxy_Sig()));
251  mvaInput_[17] = TMath::Sign((float)+1., tau->ip3d());
252  mvaInput_[18] = std::sqrt(std::min((float)1., std::fabs(tau->ip3d())));
253  mvaInput_[19] = std::min((float)10., std::fabs(tau->ip3d_Sig()));
254  mvaInput_[20] = ( tau->hasSecondaryVertex() ) ? 1. : 0.;
255  mvaInput_[21] = std::sqrt(decayDistMag);
256  mvaInput_[22] = std::min((float)10., tau->flightLengthSig());
257  } else if ( mvaOpt_ == kPWoldDMwLT || mvaOpt_ == kPWnewDMwLT ) {
258  mvaInput_[0] = std::log(std::max((float)1., (float)tau->pt()));
259  mvaInput_[1] = std::fabs(tau->eta());
260  mvaInput_[2] = std::log(std::max((float)1.e-2, chargedIsoPtSum));
261  mvaInput_[3] = std::log(std::max((float)1.e-2, neutralIsoPtSum));
262  mvaInput_[4] = std::log(std::max((float)1.e-2, footprintCorrection));
263  mvaInput_[5] = std::log(std::max((float)1.e-2, photonPtSumOutsideSignalCone));
264  mvaInput_[6] = tauDecayMode;
265  mvaInput_[7] = std::min((float)30., nPhoton);
266  mvaInput_[8] = std::min((float)0.5, ptWeightedDetaStrip);
267  mvaInput_[9] = std::min((float)0.5, ptWeightedDphiStrip);
268  mvaInput_[10] = std::min((float)0.5, ptWeightedDrSignal);
269  mvaInput_[11] = std::min((float)0.5, ptWeightedDrIsolation);
270  mvaInput_[12] = std::min((float)100., leadingTrackChi2);
271  mvaInput_[13] = std::min((float)1., eRatio);
272  mvaInput_[14] = TMath::Sign((float)+1., tau->dxy());
273  mvaInput_[15] = std::sqrt(std::fabs(std::min((float)1., std::fabs(tau->dxy()))));
274  mvaInput_[16] = std::min((float)10., std::fabs(tau->dxy_Sig()));
275  mvaInput_[17] = TMath::Sign((float)+1., tau->ip3d());
276  mvaInput_[18] = std::sqrt(std::fabs(std::min((float)1., std::fabs(tau->ip3d()))));
277  mvaInput_[19] = std::min((float)10., std::fabs(tau->ip3d_Sig()));
278  mvaInput_[20] = ( tau->hasSecondaryVertex() ) ? 1. : 0.;
279  mvaInput_[21] = std::sqrt(decayDistMag);
280  mvaInput_[22] = std::min((float)10., tau->flightLengthSig());
281  }
282 
283  double mvaValue = mvaReader_->GetClassifier(mvaInput_);
284  if ( verbosity_ ) {
285  edm::LogPrint("PATTauDiscByMVAIsolRun2") << "<PATTauDiscriminationByMVAIsolationRun2::discriminate>:";
286  edm::LogPrint("PATTauDiscByMVAIsolRun2") << " tau: Pt = " << tau->pt() << ", eta = " << tau->eta();
287  edm::LogPrint("PATTauDiscByMVAIsolRun2") << " isolation: charged = " << chargedIsoPtSum << ", neutral = " << neutralIsoPtSum << ", PUcorr = " << puCorrPtSum;
288  edm::LogPrint("PATTauDiscByMVAIsolRun2") << " decay mode = " << tauDecayMode;
289  edm::LogPrint("PATTauDiscByMVAIsolRun2") << " impact parameter: distance = " << tau->dxy() << ", significance = " << tau->dxy_Sig();
290  edm::LogPrint("PATTauDiscByMVAIsolRun2") << " has decay vertex = " << tau->hasSecondaryVertex() << ":"
291  << " distance = " << decayDistMag << ", significance = " << tau->flightLengthSig();
292  edm::LogPrint("PATTauDiscByMVAIsolRun2") << "--> mvaValue = " << mvaValue;
293  }
294  return mvaValue;
295  } else {
296  return -1.;
297  }
298 }
float tau_Eratio(const reco::PFTau &tau) const
return ratio of energy in ECAL over sum of energy in ECAL and HCAL
T Sign(T A, T B)
Definition: MathUtil.h:54
T sqrt(T t)
Definition: SSEVec.h:18
float tau_pt_weighted_dphi_strip(const reco::PFTau &tau, int dm) const
T min(T a, T b)
Definition: MathUtil.h:58
float tau_pt_weighted_dr_signal(const reco::PFTau &tau, int dm) const
bool isNull() const
Checks for null.
Definition: Ref.h:249
float tau_pt_weighted_dr_iso(const reco::PFTau &tau, int dm) const
float tau_pt_weighted_deta_strip(const reco::PFTau &tau, int dm) const
std::unique_ptr< pat::PATTauDiscriminator > category_output_
double GetClassifier(const float *vector) const
Definition: GBRForest.h:43
unsigned int tau_n_photons_total(const reco::PFTau &tau) const
return total number of pf photon candidates with pT&gt;500 MeV, which are associated to signal ...
void PATTauDiscriminationByMVAIsolationRun2::endEvent ( edm::Event evt)
virtual

Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 300 of file PATTauDiscriminationByMVAIsolationRun2.cc.

References eostools::move(), and edm::Event::put().

301 {
302  // add all category indices to event
303  evt.put(std::move(category_output_), "category");
304 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
def move
Definition: eostools.py:510
std::unique_ptr< pat::PATTauDiscriminator > category_output_

Member Data Documentation

std::unique_ptr<pat::PATTauDiscriminator> PATTauDiscriminationByMVAIsolationRun2::category_output_
private

Definition at line 156 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::chargedIsoPtSums_
private

Definition at line 149 of file PATTauDiscriminationByMVAIsolationRun2.cc.

TauIdMVAAuxiliaries PATTauDiscriminationByMVAIsolationRun2::clusterVariables_
private

Definition at line 158 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::footprintCorrection_
private

Definition at line 153 of file PATTauDiscriminationByMVAIsolationRun2.cc.

edm::FileInPath PATTauDiscriminationByMVAIsolationRun2::inputFileName_
private

Definition at line 143 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::vector<TFile*> PATTauDiscriminationByMVAIsolationRun2::inputFilesToDelete_
private

Definition at line 157 of file PATTauDiscriminationByMVAIsolationRun2.cc.

bool PATTauDiscriminationByMVAIsolationRun2::loadMVAfromDB_
private

Definition at line 142 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::moduleLabel_
private
float* PATTauDiscriminationByMVAIsolationRun2::mvaInput_
private

Definition at line 147 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::mvaName_
private

Definition at line 141 of file PATTauDiscriminationByMVAIsolationRun2.cc.

int PATTauDiscriminationByMVAIsolationRun2::mvaOpt_
private

Definition at line 146 of file PATTauDiscriminationByMVAIsolationRun2.cc.

const GBRForest* PATTauDiscriminationByMVAIsolationRun2::mvaReader_
private

Definition at line 144 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::neutralIsoPtSums_
private

Definition at line 150 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::photonPtSumOutsideSignalCone_
private

Definition at line 152 of file PATTauDiscriminationByMVAIsolationRun2.cc.

std::string PATTauDiscriminationByMVAIsolationRun2::puCorrPtSums_
private

Definition at line 151 of file PATTauDiscriminationByMVAIsolationRun2.cc.

edm::Handle<TauCollection> PATTauDiscriminationByMVAIsolationRun2::taus_
private

Definition at line 155 of file PATTauDiscriminationByMVAIsolationRun2.cc.

int PATTauDiscriminationByMVAIsolationRun2::verbosity_
private

Definition at line 160 of file PATTauDiscriminationByMVAIsolationRun2.cc.