43 #include <Math/VectorUtil.h> 147 isMC_ (iConfig.getParameter<
bool>(
"isMC")),
148 ptThreshold_ (iConfig.getParameter<double>(
"ptThreshold"))
188 vars_.push_back(0.0);
236 <<
" failed to find a standard AOD or miniAOD vertex collection " << std::endl;
239 vtxN_ = vertices->size();
248 <<
" failed to find a standard AOD or miniAOD pileup collection " << std::endl;
253 for(
const auto&
pu : *pileup)
255 int bx =
pu.getBunchCrossing();
274 <<
" failed to find a standard AOD or miniAOD particle collection " << std::endl;
295 int nPho = src->size();
297 for(
int iPho = 0; iPho < nPho; ++iPho) {
299 const auto pho = src->ptrAt(iPho);
350 desc.
addUntracked<std::vector<std::string>>(
"phoMVALabels");
351 desc.
addUntracked<std::vector<std::string>>(
"phoMVAValMaps");
352 desc.
addUntracked<std::vector<std::string>>(
"phoMVAValMapLabels");
353 desc.
addUntracked<std::vector<std::string>>(
"phoMVACats");
354 desc.
addUntracked<std::vector<std::string>>(
"phoMVACatLabels");
355 desc.
add<
bool>(
"isMC");
356 desc.
add<
double>(
"ptThreshold", 5.0);
static const std::string kSharedResource
EventNumber_t event() const
const double ptThreshold_
const edm::EDGetToken src_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetToken verticesMiniAOD_
#define DEFINE_FWK_MODULE(type)
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_
const edm::EDGetToken pileupMiniAOD_
std::vector< int > mvaPasses_
const std::vector< std::string > valMapTags_
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< float > mvaValues_
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetToken pileup_
const edm::EDGetToken srcMiniAOD_
const edm::EDGetToken vertices_
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_