32 nTrk_absolute_bjet = ibook.
book1D(
"nTrk_absolute_bjet",
"absolute average number of tracks in b jets", 6, -0.5, 5.5);
36 nTrk_absolute_bjet->setAxisRange(0, 5, 2);
37 nTrk_absolute_bjet->setAxisTitle(
"average number of tracks", 2);
40 nTrk_relative_bjet = ibook.
book1D(
"nTrk_relative_bjet",
"relative average number of tracks in b jets", 6, -0.5, 5.5);
44 nTrk_relative_bjet->setAxisRange(0, 1, 2);
45 nTrk_relative_bjet->setAxisTitle(
"average fraction of tracks", 2);
48 nTrk_std_bjet = ibook.
book1D(
"nTrk_std_bjet",
"RMS of number of tracks in b jets", 6, -0.5, 5.5);
52 nTrk_std_bjet->setAxisRange(0, 3, 2);
53 nTrk_std_bjet->setAxisTitle(
"RMS of number of tracks", 2);
56 nTrk_absolute_cjet = ibook.
book1D(
"nTrk_absolute_cjet",
"absolute average number of tracks in c jets", 6, -0.5, 5.5);
60 nTrk_absolute_cjet->setAxisRange(0, 5, 2);
61 nTrk_absolute_cjet->setAxisTitle(
"average number of tracks", 2);
63 nTrk_relative_cjet = ibook.
book1D(
"nTrk_relative_cjet",
"relative average number of tracks in c jets", 6, -0.5, 5.5);
67 nTrk_relative_cjet->setAxisRange(0, 1, 2);
68 nTrk_relative_cjet->setAxisTitle(
"average fraction of tracks", 2);
70 nTrk_std_cjet = ibook.
book1D(
"nTrk_std_cjet",
"RMS of number of tracks in c jets", 6, -0.5, 5.5);
74 nTrk_std_cjet->setAxisRange(0, 3, 2);
75 nTrk_std_cjet->setAxisTitle(
"RMS of number of tracks", 2);
78 nTrk_absolute_dusgjet =
79 ibook.
book1D(
"nTrk_absolute_dusgjet",
"absolute average number of tracks in dusg jets", 6, -0.5, 5.5);
83 nTrk_absolute_dusgjet->setAxisRange(0, 5, 2);
84 nTrk_absolute_dusgjet->setAxisTitle(
"average number of tracks", 2);
86 nTrk_relative_dusgjet =
87 ibook.
book1D(
"nTrk_relative_dusgjet",
"relative average number of tracks in dusg jets", 6, -0.5, 5.5);
91 nTrk_relative_dusgjet->setAxisRange(0, 1, 2);
92 nTrk_relative_dusgjet->setAxisTitle(
"average fraction of tracks", 2);
94 nTrk_std_dusgjet = ibook.
book1D(
"nTrk_std_dusgjet",
"RMS of number of tracks in dusg jets", 6, -0.5, 5.5);
98 nTrk_std_dusgjet->setAxisRange(0, 3, 2);
99 nTrk_std_dusgjet->setAxisTitle(
"RMS of number of tracks", 2);
112 MonitorElement *nTrkAll_bjet = iget.
get(
"BDHadronTracks/JetContent/nTrkAll_bjet");
119 MonitorElement *nTrkAll_cjet = iget.
get(
"BDHadronTracks/JetContent/nTrkAll_cjet");
127 MonitorElement *nTrkAll_dusgjet = iget.
get(
"BDHadronTracks/JetContent/nTrkAll_dusgjet");
141 mean_bjets[
i] = nTrk_bjet[
i]->
getMean(1);
142 std_bjets[
i] = nTrk_bjet[
i]->
getRMS(1);
143 nTrk_absolute_bjet->setBinContent(
i + 1, mean_bjets[
i]);
144 nTrk_relative_bjet->setBinContent(
i + 1, mean_bjets[
i] / meanAll_bjets);
145 nTrk_std_bjet->setBinContent(
i + 1, std_bjets[
i]);
154 mean_cjets[
i] = nTrk_cjet[
i]->
getMean(1);
155 std_cjets[
i] = nTrk_cjet[
i]->
getRMS(1);
156 nTrk_absolute_cjet->setBinContent(
i + 1, mean_cjets[
i]);
157 nTrk_relative_cjet->setBinContent(
i + 1, mean_cjets[
i] / meanAll_cjets);
158 nTrk_std_cjet->setBinContent(
i + 1, std_cjets[
i]);
162 float mean_dusgjets[6];
163 float std_dusgjets[6];
164 float meanAll_dusgjets;
167 mean_dusgjets[
i] = nTrk_dusgjet[
i]->
getMean(1);
168 std_dusgjets[
i] = nTrk_dusgjet[
i]->
getRMS(1);
169 nTrk_absolute_dusgjet->setBinContent(
i + 1, mean_dusgjets[
i]);
170 nTrk_relative_dusgjet->setBinContent(
i + 1, mean_dusgjets[
i] / meanAll_dusgjets);
171 nTrk_std_dusgjet->setBinContent(
i + 1, std_dusgjets[
i]);
virtual void setCurrentFolder(std::string const &fullpath)
BDHadronTrackMonitoringHarvester(const edm::ParameterSet &pSet)
#define DEFINE_FWK_MODULE(type)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
virtual double getRMS(int axis=1) const
get RMS of histogram along x, y or z axis (axis=1, 2, 3 respectively)
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
static const std::vector< std::string > TrkHistCat
virtual MonitorElement * get(std::string const &fullpath) const
virtual double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)
~BDHadronTrackMonitoringHarvester() override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())