88 using namespace trigger;
94 if(!triggerObj.isValid()) {
95 edm::LogInfo(
"Status") <<
"Summary HLT object (TriggerEvent) not found, "
103 for (
size_t ia = 0; ia < triggerObj->sizeFilters(); ++ ia) {
104 std::string fullname = triggerObj->filterTag(ia).encode();
108 size_t p = fullname.find_first_of(
':');
109 if ( p != std::string::npos) {
110 name = fullname.substr(0, p);
116 LogDebug(
"Parameter") <<
"filter " << ia <<
", full name = " << fullname
118 <<
", abbreviated = " <<
name ;
125 std::string histoname(name+
"_et");
126 LogDebug(
"Status") <<
"new histo with name "<< histoname ;
128 std::string
title(name+
" E_{T}");
132 histoname = name+
"_eta";
133 title = name+
" #eta";
137 histoname = name+
"_phi";
138 title = name+
" #phi";
143 histoname = name+
"_etaphi";
144 title = name+
" #eta vs #phi";
156 for (trigger::Keys::const_iterator ki = k.begin(); ki !=k.end(); ++ki ) {
157 LogDebug(
"Parameters") <<
"pt, eta, phi = "
158 << toc[*ki].pt() <<
", "
159 << toc[*ki].eta() <<
", "
161 pic->getEtHisto()->Fill(toc[*ki].pt());
162 pic->getEtaHisto()->Fill(toc[*ki].
eta());
163 pic->getPhiHisto()->Fill(toc[*ki].
phi());
164 pic->getEtaVsPhiHisto()->Fill(toc[*ki].
eta(), toc[*ki].
phi());
171 for(PathInfoCollection::iterator
v =
hltPaths_.begin();
173 const int index = triggerObj->filterIndex(
v->getName());
174 if ( index >= triggerObj->sizeFilters() ) {
177 LogDebug(
"Status") <<
"filling ... " ;
179 for (trigger::Keys::const_iterator ki = k.begin(); ki !=k.end(); ++ki ) {
180 v->getEtHisto()->Fill(toc[*ki].pt());
181 v->getEtaHisto()->Fill(toc[*ki].
eta());
182 v->getPhiHisto()->Fill(toc[*ki].
phi());
183 v->getEtaVsPhiHisto()->Fill(toc[*ki].
eta(), toc[*ki].
phi());
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< size_type > Keys
PathInfoCollection hltPaths_
std::vector< PathInfo >::iterator find(std::string pathName)
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
edm::InputTag triggerSummaryLabel_