11 m_hNSegment_LB_1D(nullptr),
12 m_hNMuonTrack_LB_1D(nullptr),
13 m_hNMuon_LB_1D(nullptr),
14 m_hNResonance_LB_1D(nullptr),
16 m_hNSegment_LB(nullptr),
17 m_hNMuonTrack_LB(nullptr),
19 m_hNResonance_LB(nullptr),
21 type(std::move(recObj)),
29 std::string Zsig(
"Z");
30 std::string Jsig(
"Jpsi");
31 std::string CBMuons(
"CBMuons");
32 std::string OtherMuons(
"NonCBMuons");
34 if (!
type.compare(Zsig)) {
name =
"Z"; }
35 else if (!
type.compare(Jsig)) {
name =
"J/#psi"; }
36 else if (!
type.compare(CBMuons)) {
name =
"CBMuons"; }
37 else if (!
type.compare(OtherMuons)) {
name =
"NonCBMuons";}
38 else {
name =
"other"; }
44 m_hNSegment_LB =
Book2D(
"nSegment_LB_2D",
"Number of Muon Segments Per LumiBlock;LumiBlock;Number of Segments",
n_lbs, -0.5, (
float)(
n_lbs)-0.5, 100, 0.5, 101.5);
45 m_hNMuonTrack_LB =
Book2D(
"nMuonTrack_LB_2D",
"Number of Muon MS Tracks Per LumiBlock;LumiBlock;Number of Tracks",
n_lbs, -0.5, (
float)(
n_lbs)-0.5, 21, 0.5, 21.5);
49 else if (
name ==
"CBMuons"){
50 m_hNMuon_LB =
Book2D(
"nMuon_LB_2D",
"Number of Muons Per LumiBlock;LumiBlock;Nmuons",
n_lbs, -0.5, (
float)(
n_lbs)-0.5, 21, 0.5, 21.5);
53 else if (
name ==
"NonCBMuons"){
54 m_hNMuon_LB =
Book2D(
"nMuon_LB_2D",
"Number of non-CB Muons Per LumiBlock;LumiBlock;Nmuons",
n_lbs, -0.5, (
float)(
n_lbs)-0.5, 21, 0.5, 21.5);
57 else if (
name ==
"Z" ||
name ==
"J/#psi"){
67 m_hNSegment_LB->Fill(current_lb, MuonSegments->
size() + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
74 m_hNMuonTrack_LB->Fill(current_lb, MSTracks->
size() + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
91 m_hNMuon_LB->Fill(current_lb, NMuIDco + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
108 m_hNMuon_LB->Fill(current_lb, NMuIDco + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
113 void RecoLumiPlots::fill(
const std::vector<std::pair<const xAOD::Muon*, const xAOD::Muon*> >& resonances,
int current_lb,
float inst_lumi_bcid,
float inst_lumi_lb){
115 int Nresonance = resonances.size();
118 m_hNResonance_LB->Fill(current_lb, Nresonance + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);