92 tree_ =
fs_->
make<TTree>(
"PhotonRecoTree",
"PhotonRecoTree");
93 tree_->Branch(
"Photon",
"L1Analysis::L1AnalysisRecoPhotonDataFormat", &
photon_data, 32000, 3);
111 std::vector<edm::Handle<edm::ValueMap<bool> > > phoVIDDecisionHandles(2);
116 if (recoPhotons.
isValid() && phoVIDDecisionHandles[0].isValid() && phoVIDDecisionHandles[1].isValid()) {
120 edm::LogWarning(
"MissingProduct") <<
"Photons or photon ID not found. Branch will not be filled" << std::endl;
136 desc.add<
unsigned int>(
"maxPhoton", 20);
static const std::string kSharedResource
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
void beginJob(void) override
void SetPhoton(const edm::Event &event, const edm::EventSetup &setup, const edm::Handle< reco::PhotonCollection > photons, const std::vector< edm::Handle< edm::ValueMap< bool > > > phoVIDDecisionHandles, const unsigned &maxPhoton)
edm::EDGetTokenT< reco::PhotonCollection > PhotonToken_
L1AnalysisRecoPhotonDataFormat * getData()
T getUntrackedParameter(std::string const &, T const &) const
edm::Service< TFileService > fs_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonWP80MapToken_
L1Analysis::L1AnalysisRecoPhoton * photon
L1PhotonRecoTreeProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T * make(const Args &...args) const
make new ROOT object
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonWP90MapToken_
Log< level::Warning, false > LogWarning
~L1PhotonRecoTreeProducer() override
L1Analysis::L1AnalysisRecoPhotonDataFormat * photon_data
void analyze(const edm::Event &, const edm::EventSetup &) override