1 #ifndef HiggsValidation_H 2 #define HiggsValidation_H 32 #include "TLorentzVector.h" 52 std::vector<std::string>
input = iConfig.
getParameter<std::vector<std::string> >(
"monitorDecays");
53 for (std::vector<std::string>::const_iterator
i =
input.begin();
i !=
input.end(); ++
i) {
61 if (
abs(pid1) == 14 ||
abs(pid1) == 16)
63 if (
abs(pid2) == 14 ||
abs(pid2) == 16)
93 if (pid == 14 || pid == 16)
107 if (
i->second == pid)
126 size_t pos =
s.find(
'+');
129 std::pair<int, int>
decay;
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
PDT table.
std::vector< MonitorElement * > HiggsDecayProd_pt
T getParameter(std::string const &) const
MonitorElement * Higgs_eta
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
std::vector< std::pair< int, int > > channels
std::vector< MonitorElement * > HiggsDecayProd_eta
size_t position(int pid1, int pid2)
MonitoredDecays * monitoredDecays
int findHiggsDecayChannel(const HepMC::GenParticle *, std::vector< HepMC::GenParticle *> &decayprod)
static std::string const input
HiggsValidation(const edm::ParameterSet &)
U second(std::pair< T, U > const &p)
std::string convert(int pid)
MonitoredDecays(const edm::ParameterSet &iConfig)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
Abs< T >::type abs(const T &t)
MonitorElement * Higgs_pt
int isDecayParticle(int pid)
MonitorElement * HiggsDecayChannels
edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > fPDGTableToken
unsigned int NDecayParticles()
void analyze(edm::Event const &, edm::EventSetup const &) override
edm::InputTag hepmcCollection_
~HiggsValidation() override
int convert(std::string s)
std::string ConvertIndex(int index)
std::string channel(size_t i)
std::string particle_name
std::map< std::string, int > namePidMap
MonitorElement * Higgs_mass