26 doAllPlots_(conf_.getParameter<
bool>(
"doAllPlots")),
27 doDeDxPlots_(conf_.getParameter<
bool>(
"doDeDxPlots")),
29 conf_.getParameter<
edm::
ParameterSet>(
"genericTriggerEventPSet"), consumesCollector(), *this)) {
34 for (
auto const&
tag : dEdxInputList_) {
48 if (outputMEsInRootFile) {
109 dEdxMEsVector[
i].ME_MipDeDx->setAxisTitle(
"dEdx of each MIP Track (MeV/cm)");
112 histname =
"MIP_NumberOfdEdxHitsPerTrack_";
114 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP Track");
115 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
117 histname =
"MIP_FractionOfSaturateddEdxHitsPerTrack_";
119 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Fraction of Saturated dEdxHits of each MIP Track");
120 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Number of Tracks", 2);
125 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"dEdx Mass of each MIP Track (GeV/c^{2})");
126 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
131 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"dEdx Mass of each HIP Track (GeV/c^{2})");
132 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
134 histname =
"MIPOfHighPt_dEdxPerTrack_";
136 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"dEdx of each MIP (of High pT) Track (MeV/cm)");
137 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"Number of Tracks", 2);
139 histname =
"MIPOfHighPt_NumberOfdEdxHitsPerTrack_";
142 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP (of High pT) Track");
143 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
164 if (!trackCollectionHandle.
isValid())
170 if (!dEdxObjectHandle.
isValid())
174 for (
unsigned int t = 0;
t < trackCollectionHandle->size();
t++) {
179 if (track->pt() >= 5.0 && track->numberOfValidHits() >
TrackHitMin) {
181 dEdxMEsVector[
i].ME_MipDeDxNHits->Fill(dEdxColl[track].numberOfMeasurements());
182 if (dEdxColl[track].numberOfMeasurements() != 0)
183 dEdxMEsVector[
i].ME_MipDeDxNSatHits->Fill((1.0 * dEdxColl[track].numberOfSaturatedMeasurements()) /
184 dEdxColl[track].numberOfMeasurements());
189 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->Fill(dEdxColl[track].numberOfMeasurements());
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setCurrentFolder(std::string const &fullpath)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
dEdxAnalyzer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< std::string > dEdxInputList_
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
GenericTriggerEventFlag * genTriggerEventFlag_
const std::complex< double > I
edm::InputTag trackInputTag_
double mass(double P, double I)
T const * product() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
std::pair< OmniClusterRef, TrackingParticleRef > P
std::vector< edm::EDGetTokenT< reco::DeDxDataValueMap > > dEdxTokenList_
void showDirStructure() const
std::vector< dEdxMEs > dEdxMEsVector
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")