ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::ChamberResPlots Struct Reference

residual plots per chamber index More...

#include <MuonInsideOutAnalysisPlots.h>

Collaboration diagram for Muon::ChamberResPlots:

Public Member Functions

void book (TDirectory *dir, const TString &prefix)
void fill (int chIndex_, float res_, float pull_, float exerr_, float p_)

Public Attributes

std::vector< ResPlotsplots
std::vector< ResPlotsPtplots_p

Detailed Description

residual plots per chamber index

Definition at line 38 of file MuonInsideOutAnalysisPlots.h.

Member Function Documentation

◆ book()

void Muon::ChamberResPlots::book ( TDirectory * dir,
const TString & prefix )

Definition at line 40 of file MuonInsideOutAnalysisPlots.cxx.

40 {
41 TDirectory* ndir = dir->mkdir(prefix+"Chamber");
42 ndir->cd();
43 plots.resize(toInt(ChIndex::ChIndexMax));
44 plots_p.resize(toInt(ChIndex::ChIndexMax));
45 for( unsigned int i=0;i<plots.size();++i ){
46 TString name = prefix + "chIndex_" + std::to_string(i).c_str() + "_";
47 plots[i].book(name);
48 plots_p[i].book(name);
49 }
50 dir->cd();
51 }
constexpr int toInt(const EnumType enumVal)
std::vector< ResPlotsPt > plots_p
std::vector< ResPlots > plots

◆ fill()

void Muon::ChamberResPlots::fill ( int chIndex_,
float res_,
float pull_,
float exerr_,
float p_ )

Definition at line 53 of file MuonInsideOutAnalysisPlots.cxx.

53 {
54 if( chIndex_ <0 || static_cast<unsigned>(chIndex_) >= plots.size() ) return;
55
56 plots[chIndex_].fill(res_,pull_,exerr_);
57 plots_p[chIndex_].fill(res_,pull_,exerr_,p_);
58
59 }

Member Data Documentation

◆ plots

std::vector<ResPlots> Muon::ChamberResPlots::plots

Definition at line 40 of file MuonInsideOutAnalysisPlots.h.

◆ plots_p

std::vector<ResPlotsPt> Muon::ChamberResPlots::plots_p

Definition at line 41 of file MuonInsideOutAnalysisPlots.h.


The documentation for this struct was generated from the following files: