1 #ifndef HiggsValidation_H
2 #define HiggsValidation_H
34 #include "TLorentzVector.h"
56 std::vector<std::string>
input = iConfig.
getParameter<std::vector<std::string> >(
"monitorDecays");
57 for(std::vector<std::string>::const_iterator
i = input.begin();
i!= input.end(); ++
i){
65 if(
abs(pid1) == 14 ||
abs(pid1) == 16) pid1 = 12;
66 if(
abs(pid2) == 14 ||
abs(pid2) == 16) pid2 = 12;
78 if(i == 0)
return "?";
79 if(i ==
channels.size()+1)
return "Stable";
92 if(pid == 14 || pid == 16) pid = 12;
94 if(
i->second == pid)
return i->first;
104 if(
i->second == pid)
return idx;
113 if(idx==index)
return i->first;
121 size_t pos = s.find(
"+");
124 std::pair<int,int> decay;
125 decay.first =
convert(particle1);
126 decay.second =
convert(particle2);
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
PDT table.
T getParameter(std::string const &) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * Higgs_eta
virtual void endRun(const edm::Run &, const edm::EventSetup &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< MonitorElement * > HiggsDecayProd_pt
size_t position(int pid1, int pid2)
MonitoredDecays * monitoredDecays
virtual ~HiggsValidation()
HiggsValidation(const edm::ParameterSet &)
U second(std::pair< T, U > const &p)
std::vector< std::pair< int, int > > channels
std::string convert(int pid)
MonitoredDecays(const edm::ParameterSet &iConfig)
int findHiggsDecayChannel(const HepMC::GenParticle *, std::vector< HepMC::GenParticle * > &decayprod)
std::vector< MonitorElement * > HiggsDecayProd_eta
std::map< std::string, int > namePidMap
MonitorElement * Higgs_pt
int isDecayParticle(int pid)
MonitorElement * HiggsDecayChannels
unsigned int NDecayParticles()
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::InputTag hepmcCollection_
DQMStore * dbe
ME's "container".
int convert(std::string s)
std::string ConvertIndex(int index)
std::string channel(size_t i)
std::string particle_name
MonitorElement * Higgs_mass