44 #include <Math/VectorUtil.h> 140 ,
isMC_ (iConfig.getParameter<
bool>(
"isMC"))
141 ,
ptThreshold_ (iConfig.getParameter<double>(
"ptThreshold"))
184 vars_.push_back(0.0);
235 int bx =
pu.getBunchCrossing();
262 int nPho =
src->size();
264 for(
int iPho = 0; iPho < nPho; ++iPho) {
266 const auto pho =
src->ptrAt(iPho);
305 desc.
addUntracked<std::vector<std::string>>(
"phoMVALabels");
306 desc.
addUntracked<std::vector<std::string>>(
"phoMVAValMaps");
307 desc.
addUntracked<std::vector<std::string>>(
"phoMVAValMapLabels");
308 desc.
addUntracked<std::vector<std::string>>(
"phoMVACats");
309 desc.
addUntracked<std::vector<std::string>>(
"phoMVACatLabels");
310 desc.
add<
bool>(
"isMC");
311 desc.
add<
double>(
"ptThreshold", 5.0);
static const std::string kSharedResource
EventNumber_t event() const
const double ptThreshold_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
MultiTokenT< edm::View< reco::Photon > > src_
edm::LuminosityBlockNumber_t luminosityBlock() const
T * make(const Args &...args) const
make new ROOT object
const std::vector< std::string > valMapBranchNames_
std::vector< int > mvaCats_
~PhotonMVANtuplizer() override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const std::vector< std::string > phoMapTags_
std::vector< int > mvaPasses_
const std::vector< std::string > valMapTags_
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< float > mvaValues_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MultiTokenT< std::vector< reco::Vertex > > vertices_
edm::Handle< T > getValidHandle(const edm::Event &iEvent)
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
const std::vector< std::string > mvaCatBranchNames_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
const std::vector< std::string > phoMapBranchNames_
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< float > vars_
PhotonMVANtuplizer(const edm::ParameterSet &)
const std::vector< std::string > mvaCatTags_