41 if (hltPathsOfInterest.empty())
45 std::vector<std::string> selectedPaths;
46 for (std::vector<std::string>::const_iterator it = pathList.begin(); it != pathList.end(); ++it) {
48 for (std::vector<std::string>::const_iterator kt = hltPathsOfInterest.begin(); kt != hltPathsOfInterest.end();
50 nmatch += TPRegexp(*kt).Match(*it);
55 selectedPaths.push_back(*it);
65 for (std::vector<std::string>::iterator it = selectedPaths.begin(); it != selectedPaths.end(); it++) {
67 std::map<std::string, PixelMEs>::iterator iPos =
histoMap_.find(tag);
73 htitle =
"# of Pixel Clusters (";
83 htitle =
"# of Pixel Vertices (";
87 VtxHistoPar.getParameter<int32_t>(
"Xbins"),
88 VtxHistoPar.getParameter<
double>(
"Xmin"),
89 VtxHistoPar.getParameter<
double>(
"Xmax"));
91 histoMap_.insert(std::make_pair(tag, local_MEs));
103 <<
" successfully extracted";
121 if (!siPixelClusters.
isValid()) {
130 if (!pixelVertices.
isValid()) {
136 for (reco::VertexCollection::const_iterator ivtx = pixelVertices->begin(); ivtx != pixelVertices->end(); ++ivtx) {
140 if ((ivtx->isValid() ==
true) && (ivtx->isFake() ==
false) && (ivtx->ndof() >=
minVtxDoF_) &&
141 (ivtx->tracksSize() != 0))
151 for (std::map<std::string, PixelMEs>::iterator it =
histoMap_.begin(); it !=
histoMap_.end(); ++it) {
156 if (index < triggerResults->
size() && triggerResults->
accept(index)) {
160 me_clus->
Fill(nClusters);
edm::EDGetTokenT< reco::VertexCollection > pixelVertexInputTagToken_
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::TriggerResults > hltInputTagToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ParameterSet parameters_
bool accept() const
Has at least one path accepted the event?
const std::vector< std::string > & triggerNames() const
names of trigger paths
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
HLTConfigProvider hltConfig_
edm::InputTag pixelClusterInputTag_
#define DEFINE_FWK_MODULE(type)
std::map< std::string, PixelMEs > histoMap_
void endRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
static std::string const triggerResults
edm::InputTag pixelVertexInputTag_
~PixelVTXMonitor() override
edm::InputTag hltInputTag_
edm::EDGetTokenT< SiPixelClusterCollectionNew > pixelClusterInputTagToken_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void setCurrentFolder(std::string const &fullpath)
void beginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
PixelVTXMonitor(const edm::ParameterSet &)
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.