80 moduleName_(parameters_.getParameter<
std::
string>(
"ModuleName")),
81 folderName_(parameters_.getParameter<
std::
string>(
"FolderName")),
82 pixelClusterInputTag_(parameters_.getParameter<
edm::
InputTag>(
"PixelClusterInputTag")),
83 pixelVertexInputTag_(parameters_.getParameter<
edm::
InputTag>(
"PixelVertexInputTag")),
84 hltInputTag_(parameters_.getParameter<
edm::
InputTag>(
"HLTInputTag")),
88 minVtxDoF_(parameters_.getParameter<double>(
"MinVtxDoF")) {}
97 std::vector<std::string> selectedPaths;
98 for (
const auto& it : pathList) {
101 nmatch += TPRegexp(kt).Match(it);
106 selectedPaths.push_back(it);
116 for (
const auto&
tag : selectedPaths) {
117 std::map<std::string, PixelMEs>::iterator iPos =
histoMap_.find(
tag);
123 htitle =
"# of Pixel Clusters (";
133 htitle =
"# of Pixel Vertices (";
137 VtxHistoPar.getParameter<int32_t>(
"Xbins"),
138 VtxHistoPar.getParameter<
double>(
"Xmin"),
139 VtxHistoPar.getParameter<
double>(
"Xmax"));
151 <<
" successfully extracted";
185 if ((ivtx.isValid() ==
true) && (ivtx.isFake() ==
false) && (ivtx.ndof() >=
minVtxDoF_) &&
186 (ivtx.tracksSize() != 0))
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
dqm::legacy::DQMStore DQMStore
T getParameter(std::string const &) const
const edm::EDGetTokenT< edm::TriggerResults > hltInputTagToken_
virtual void setCurrentFolder(std::string const &fullpath)
dqm::legacy::MonitorElement MonitorElement
#define DEFINE_FWK_MODULE(type)
edm::ParameterSet parameters_
const edm::EDGetTokenT< SiPixelClusterCollectionNew > pixelClusterInputTagToken_
Log< level::Error, false > LogError
const edm::InputTag hltInputTag_
std::vector< Vertex > VertexCollection
const edm::EDGetTokenT< reco::VertexCollection > pixelVertexInputTagToken_
void dqmBeginRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override
void bookHistograms(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup) override
HLTConfigProvider hltConfig_
std::map< std::string, PixelMEs > histoMap_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
static std::string const triggerResults
const std::string folderName_
const edm::InputTag pixelClusterInputTag_
Log< level::Info, false > LogInfo
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const std::vector< std::string > & triggerNames() const
names of trigger paths
const std::string moduleName_
PixelVTXMonitor(const edm::ParameterSet &)
~PixelVTXMonitor() override=default
const edm::InputTag pixelVertexInputTag_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())