74 std::vector<edm::EDGetTokenT<l1t::TauBxCollection>>
tauTokens_;
98 tree_ =
fs_->
make<TTree>(
"L1UpgradeTree",
"L1UpgradeTree");
99 tree_->Branch(
"L1Upgrade",
"L1Analysis::L1AnalysisL1UpgradeDataFormat", &
l1UpgradeData, 32000, 3);
128 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade Em not found. Branch will not be filled" << std::endl;
133 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade Jets not found. Branch will not be filled" << std::endl;
139 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade EtSums not found. Branch will not be filled" << std::endl;
145 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade Muons not found. Branch will not be filled" << std::endl;
154 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade Tau not found. Branch will not be filled" << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::EDGetTokenT< l1t::TauBxCollection > > tauTokens_
void SetMuon(const edm::Handle< l1t::MuonBxCollection > muon, unsigned maxL1Upgrade)
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::Service< TFileService > fs_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void SetJet(const edm::Handle< l1t::JetBxCollection > jet, unsigned maxL1Upgrade)
void SetEm(const edm::Handle< l1t::EGammaBxCollection > em, unsigned maxL1Upgrade)
T * make(const Args &...args) const
make new ROOT object
void beginJob(void) override
L1UpgradeTreeProducer(const edm::ParameterSet &)
L1Analysis::L1AnalysisL1Upgrade * l1Upgrade
L1Analysis::L1AnalysisL1UpgradeDataFormat * l1UpgradeData
edm::EDGetTokenT< l1t::EGammaBxCollection > egToken_
edm::EDGetTokenT< l1t::EtSumBxCollection > sumToken_
void SetTau(const edm::Handle< l1t::TauBxCollection > tau, unsigned maxL1Upgrade)
T getParameter(std::string const &) const
edm::EDGetTokenT< l1t::MuonBxCollection > muonToken_
edm::EDGetTokenT< l1t::JetBxCollection > jetToken_
Log< level::Warning, false > LogWarning
~L1UpgradeTreeProducer() override
void SetSum(const edm::Handle< l1t::EtSumBxCollection > sums, unsigned maxL1Upgrade)