|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
3 #include "FWCore/Framework/interface/EDAnalyzer.h"
4 #include "FWCore/Framework/interface/EventSetup.h"
5 #include "FWCore/Framework/interface/ESHandle.h"
6 #include "FWCore/ServiceRegistry/interface/Service.h"
7 #include "FWCore/Common/interface/TriggerNames.h"
9 #include "CommonTools/UtilAlgos/interface/TFileService.h"
11 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
12 #include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h"
25 #include <boost/property_tree/ptree.hpp>
33 explicit Ntupliser(edm::ParameterSet
const& cfg);
35 virtual void beginRun(edm::Run
const& iRun, edm::EventSetup
const& iSetup)
override;
36 virtual void endRun(edm::Run
const& iRun, edm::EventSetup
const& iSetup)
override;
37 virtual void analyze(edm::Event
const& iEvent, edm::EventSetup
const& iSetup)
override;
38 virtual void endJob()
override;
45 bool trigger (edm::Event
const& iEvent);
46 void fillMET (edm::Event
const& iEvent);
48 template<
typename MyJetCollection>
void getGenJets (edm::Handle<MyJetCollection>& mygenjets);
62 edm::Handle<reco::GenJetCollection>
genjets;
67 edm::Handle<pat::METCollection>
met;
68 edm::Handle<double>
rho;
69 edm::Handle<reco::VertexCollection>
recVtxs;
76 edm::Handle<std::vector<reco::VertexCompositePtrCandidate>>
SVs;
79 edm::Handle<LHEEventProduct>
lhe;
83 edm::Service<TFileService>
fs_;
edm::Handle< reco::GenJetCollection > genjets
Definition: Ntupliser.h:62
DAS::Trigger * zbTrigger_
Definition: Ntupliser.h:95
edm::Handle< edm::TriggerResults > metResults
Definition: Ntupliser.h:70
std::vector< DAS::GenPhoton > * genPhotons_
Definition: Ntupliser.h:94
void getRecPhotons()
Finds the reconstructed photons, and applies some hard cuts on the phase space.
Definition: Ntupliser.cc:184
virtual void endJob() override
Definition: Ntupliser.cc:286
edm::Handle< pat::MuonCollection > recmuons
Definition: Ntupliser.h:65
Definition: Ntupliser.h:28
DAS::RecEvent * recEvent_
Definition: Ntupliser.h:97
std::vector< DAS::RecPhoton > * recPhotons_
Definition: Ntupliser.h:93
DAS::MET * met_
Definition: Ntupliser.h:98
std::vector< DAS::GenMuon > * genMuons_
Definition: Ntupliser.h:92
edm::Handle< std::vector< reco::VertexCompositePtrCandidate > > SVs
Definition: Ntupliser.h:76
void getRecMuons()
Finds the reconstructed muons, and applies some hard cuts on the phase space.
Definition: Ntupliser.cc:165
DAS::PileUp * pileup_
Definition: Ntupliser.h:99
edm::Handle< pat::PhotonCollection > recphotons
Definition: Ntupliser.h:66
boost::property_tree::ptree pileup_json
pileup "latest"
Definition: Ntupliser.h:102
std::vector< DAS::FourVector > * HLTjets_
Definition: Ntupliser.h:89
void getHLTjets(edm::Event const &iEvent)
Finds HLT jets and simply stores them in a FourVector.
Definition: Ntupliser.cc:545
DAS::PrimaryVertex * primaryvertex_
Definition: Ntupliser.h:100
edm::Handle< pat::PackedTriggerPrescales > triggerPrescalesl1max
Definition: Ntupliser.h:71
void getGenMuons()
Finds the generated muons, and applies some hard cuts on the phase space.
Definition: Ntupliser.cc:79
edm::Service< TFileService > fs_
Definition: Ntupliser.h:83
edm::Handle< pat::METCollection > met
Definition: Ntupliser.h:67
virtual void endRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: Ntupliser.cc:295
DAS::Trigger * muonTrigger_
Definition: Ntupliser.h:95
virtual ~Ntupliser() override
Definition: Ntupliser.cc:678
Darwin::Tools::UserInfo metainfo
Definition: Ntupliser.h:85
edm::Handle< edm::View< reco::Candidate > > genLeptons
Definition: Ntupliser.h:64
void getGenJets(edm::Handle< MyJetCollection > &mygenjets)
Definition: Ntupliser.cc:143
edm::Handle< reco::JetFlavourInfoMatchingCollection > theJetFlavourInfos
Definition: Ntupliser.h:75
DAS::Helper h
Definition: Ntupliser.h:59
Definition: Parameters.h:53
virtual void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: Ntupliser.cc:301
std::vector< DAS::RecMuon > * recMuons_
Definition: Ntupliser.h:91
edm::Handle< edm::TriggerResults > triggerResults
Definition: Ntupliser.h:70
void initialise(edm::Event const &iEvent)
Called at the beginning of each new event.
Definition: Ntupliser.cc:386
void getGenPhotons()
Finds the generated photons and applies some hard cuts to the phase space.
Definition: Ntupliser.cc:106
edm::Handle< double > rho
Definition: Ntupliser.h:68
edm::Handle< pat::PackedTriggerPrescales > triggerPrescales
Definition: Ntupliser.h:71
DAS::Parameters p
Definition: Ntupliser.h:58
lhe
Definition: Ntupliser_cfg.py:267
edm::Handle< pat::PackedTriggerPrescales > triggerPrescalesl1min
Definition: Ntupliser.h:71
edm::Handle< GenEventInfoProduct > genEvtInfo
Definition: Ntupliser.h:73
reco::Particle::LorentzVector LorentzVector
Definition: Ntupliser.h:30
void fillMET(edm::Event const &iEvent)
Fill the MET flags to the array.
Definition: Ntupliser.cc:527
std::vector< DAS::RecJet > * recJets_
Definition: Ntupliser.h:88
DAS::GenEvent * genEvent_
Definition: Ntupliser.h:96
edm::Handle< std::vector< PileupSummaryInfo > > pileupInfo
Definition: Ntupliser.h:77
edm::Handle< pat::TriggerObjectStandAloneCollection > triggerObjects
Definition: Ntupliser.h:72
void getEventVariables(edm::Event const &iEvent)
Definition: Ntupliser.cc:586
edm::Handle< pat::JetCollection > recjets
Definition: Ntupliser.h:63
DAS::Trigger * jetTrigger_
Definition: Ntupliser.h:95
Ntupliser(edm::ParameterSet const &cfg)
Constructor, only initialising the members.
Definition: Ntupliser.cc:38
edm::Handle< reco::GenParticleCollection > genParticles
Definition: Ntupliser.h:74
virtual void beginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: Ntupliser.cc:291
TTree * tree
Definition: Ntupliser.h:84
void reset()
Just a common method to reset all branches at each new event.
Definition: Ntupliser.cc:349
virtual void beginJob() override
Definition: Ntupliser.cc:230
std::vector< DAS::GenJet > * genJets_
Definition: Ntupliser.h:90
edm::Handle< reco::VertexCollection > recVtxs
Definition: Ntupliser.h:69
bool trigger(edm::Event const &iEvent)
Finds the bits corresponding to the HLT jet pt triggers.
Definition: Ntupliser.cc:452
void getRecJets()
Finds the reconstructed jets, and applies some hard cuts on the phase space.
Definition: Ntupliser.cc:204