20 #include "FWCore/Framework/interface/Event.h" 22 #include "FWCore/ParameterSet/interface/ParameterSet.h" 25 #include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h" 26 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h" 27 #include "DataFormats/Scalers/interface/LumiScalers.h" 47 std::string
name =
"EventInfo";
48 tree_ = fs->make<TTree>(name.c_str(),name.c_str());
53 tree_->Branch(
"lumisection" , &
lumi_ ,
"lumisection/I");
67 std::string
name =
"EventInfo";
68 tree_ = dir.make<TTree>(name.c_str(),name.c_str());
73 tree_->Branch(
"lumisection" , &
lumi_ ,
"lumisection/I");
99 const edm::EventAuxiliary evt =
event.eventAuxiliary();
103 lumi_ = evt.luminosityBlock();
104 orbit_ = evt.orbitNumber();
105 bx_ = evt.bunchCrossing();
164 tree_->Branch(
"nPileup" , &
n_pu_ ,
"nPileup/I");
174 edm::Handle<std::vector<PileupSummaryInfo> > handler;
175 event.getByLabel(
puInfo_, handler);
177 std::vector<PileupSummaryInfo> pileup_infos = *(handler.product());
180 PileupSummaryInfo pileup_info = pileup_infos.at(0);
181 n_true_pu_ = pileup_info.getTrueNumInteractions();
182 n_pu_ = pileup_info.getPU_NumInteractions();
208 edm::Handle<GenEventInfoProduct> hepmc;
211 if ( hepmc.isValid() )
215 pdfid1_ = hepmc -> pdf() ->
id.first;
216 pdfid2_ = hepmc -> pdf() ->
id.second;
217 pdfx1_ = hepmc -> pdf() -> x.first;
218 pdfx2_ = hepmc -> pdf() -> x.second;
237 edm::Handle<LumiScalersCollection> lumis;
240 instLumi_ = lumis -> begin() -> instantLumi();
241 lumiPU_ = lumis -> begin() -> pileup();
256 edm::Handle<double> rhoHandler;
258 rho_ = *(rhoHandler.product());
void ReadGenEventInfo(const edm::Event &)
void ReadLumiScalers(const edm::Event &)
void ReadFixedGridRhoInfo(const edm::Event &)
void ReadPileupInfo(const edm::Event &)
edm::InputTag lumiScalers_
void Fill(const edm::Event &)
void PileupInfo(const edm::InputTag &)
void LumiScalersInfo(const edm::InputTag &)
void GenEventInfo(const edm::InputTag &)
edm::InputTag rho_collection_
void FixedGridRhoInfo(const edm::InputTag &)