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);
83 for(
const auto mu : *
Muons) {
86 if(mu->muonType() == xAOD::Muon::Combined){NMuIDco++;}
91 m_hNMuon_LB->Fill(current_lb, NMuIDco + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
100 for(
const auto mu : *
Muons) {
103 if(mu->muonType() != xAOD::Muon::Combined){NMuIDco++;}
108 m_hNMuon_LB->Fill(current_lb, NMuIDco + inst_lumi_bcid - inst_lumi_bcid + inst_lumi_lb - inst_lumi_lb);
113void 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);
size_type size() const noexcept
Returns the number of elements in the collection.
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
RecoLumiPlots(PlotBase *pParent, const std::string &sDir, std::string recObj)
void fill_CB(const xAOD::MuonContainer *Muons, int current_lb, float inst_lumi_bcid, float inst_lumi_lb)
void fill_Other(const xAOD::MuonContainer *Muons, int current_lb, float inst_lumi_bcid, float inst_lumi_lb)
TH1 * m_hNResonance_LB_1D
void fill(const xAOD::MuonSegmentContainer *MuonSegments, int current_lb, float inst_lumi_bcid, float inst_lumi_lb)
TH1 * m_hNMuonTrack_LB_1D
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".