CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
GeneralPurposeVertexAnalyzer::IPMonitoring Struct Reference

Public Member Functions

void bookIPMonitor (const edm::ParameterSet &, const edm::Service< TFileService > fs)
 

Public Attributes

TH1D * IP_
 
TH1D * IPErr_
 
TProfile * IPErrVsEta_
 
TProfile2D * IPErrVsEtaVsPhi_
 
TProfile * IPErrVsPhi_
 
TProfile * IPVsEta_
 
TProfile2D * IPVsEtaVsPhi_
 
TProfile * IPVsPhi_
 
float pTcut_
 
std::string varname_
 

Detailed Description

Definition at line 73 of file GeneralPurposeVertexAnalyzer.cc.

Member Function Documentation

◆ bookIPMonitor()

void GeneralPurposeVertexAnalyzer::IPMonitoring::bookIPMonitor ( const edm::ParameterSet config,
const edm::Service< TFileService fs 
)

Definition at line 144 of file GeneralPurposeVertexAnalyzer.cc.

References MonitorTrackInnerTrackMuons_cff::EtaBin, PrimaryVertexMonitor_cff::EtaBin2D, MonitorTrackInnerTrackMuons_cff::EtaMax, MonitorTrackInnerTrackMuons_cff::EtaMin, dqm-mbProfile::format, compareTotals::fs, IP_, IPErr_, IPErrVsEta_, IPErrVsEtaVsPhi_, IPErrVsPhi_, IPVsEta_, IPVsEtaVsPhi_, IPVsPhi_, MonitorTrackSTAMuons_cfi::PhiBin, PrimaryVertexMonitor_cff::PhiBin2D, MonitorTrackSTAMuons_cfi::PhiMax, MonitorTrackSTAMuons_cfi::PhiMin, pTcut_, and varname_.

Referenced by GeneralPurposeVertexAnalyzer::beginJob().

145  {
146  int VarBin = config.getParameter<int>(fmt::format("D{}Bin", varname_));
147  double VarMin = config.getParameter<double>(fmt::format("D{}Min", varname_));
148  double VarMax = config.getParameter<double>(fmt::format("D{}Max", varname_));
149 
150  int PhiBin = config.getParameter<int>("PhiBin");
151  int PhiBin2D = config.getParameter<int>("PhiBin2D");
152  double PhiMin = config.getParameter<double>("PhiMin");
153  double PhiMax = config.getParameter<double>("PhiMax");
154 
155  int EtaBin = config.getParameter<int>("EtaBin");
156  int EtaBin2D = config.getParameter<int>("EtaBin2D");
157  double EtaMin = config.getParameter<double>("EtaMin");
158  double EtaMax = config.getParameter<double>("EtaMax");
159 
160  IP_ = fs->make<TH1D>(fmt::format("d{}_pt{}", varname_, pTcut_).c_str(),
161  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_).c_str(),
162  VarBin,
163  VarMin,
164  VarMax);
165 
166  IPErr_ = fs->make<TH1D>(fmt::format("d{}Err_pt{}", varname_, pTcut_).c_str(),
167  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_).c_str(),
168  100,
169  0.,
170  (varname_.find("xy") != std::string::npos) ? 2000. : 10000.);
171 
172  IPVsPhi_ =
173  fs->make<TProfile>(fmt::format("d{}VsPhi_pt{}", varname_, pTcut_).c_str(),
174  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #phi", pTcut_, varname_).c_str(),
175  PhiBin,
176  PhiMin,
177  PhiMax,
178  //VarBin,
179  VarMin,
180  VarMax);
181  IPVsPhi_->SetXTitle("PV track (p_{T} > 1 GeV) #phi");
182  IPVsPhi_->SetYTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_).c_str());
183 
184  IPVsEta_ =
185  fs->make<TProfile>(fmt::format("d{}VsEta_pt{}", varname_, pTcut_).c_str(),
186  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta", pTcut_, varname_).c_str(),
187  EtaBin,
188  EtaMin,
189  EtaMax,
190  //VarBin,
191  VarMin,
192  VarMax);
193  IPVsEta_->SetXTitle("PV track (p_{T} > 1 GeV) #eta");
194  IPVsEta_->SetYTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_).c_str());
195 
196  IPErrVsPhi_ =
197  fs->make<TProfile>(fmt::format("d{}ErrVsPhi_pt{}", varname_, pTcut_).c_str(),
198  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #phi", pTcut_, varname_).c_str(),
199  PhiBin,
200  PhiMin,
201  PhiMax,
202  //VarBin,
203  0.,
204  (varname_.find("xy") != std::string::npos) ? 100. : 200.);
205  IPErrVsPhi_->SetXTitle("PV track (p_{T} > 1 GeV) #phi");
206  IPErrVsPhi_->SetYTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_).c_str());
207 
208  IPErrVsEta_ =
209  fs->make<TProfile>(fmt::format("d{}ErrVsEta_pt{}", varname_, pTcut_).c_str(),
210  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta", pTcut_, varname_).c_str(),
211  EtaBin,
212  EtaMin,
213  EtaMax,
214  //VarBin,
215  0.,
216  (varname_.find("xy") != std::string::npos) ? 100. : 200.);
217  IPErrVsEta_->SetXTitle("PV track (p_{T} > 1 GeV) #eta");
218  IPErrVsEta_->SetYTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_).c_str());
219 
220  IPVsEtaVsPhi_ = fs->make<TProfile2D>(
221  fmt::format("d{}VsEtaVsPhi_pt{}", varname_, pTcut_).c_str(),
222  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta VS track #phi", pTcut_, varname_).c_str(),
223  EtaBin2D,
224  EtaMin,
225  EtaMax,
226  PhiBin2D,
227  PhiMin,
228  PhiMax,
229  //VarBin,
230  VarMin,
231  VarMax);
232  IPVsEtaVsPhi_->SetXTitle("PV track (p_{T} > 1 GeV) #eta");
233  IPVsEtaVsPhi_->SetYTitle("PV track (p_{T} > 1 GeV) #phi");
234  IPVsEtaVsPhi_->SetZTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_).c_str());
235 
236  IPErrVsEtaVsPhi_ = fs->make<TProfile2D>(
237  fmt::format("d{}ErrVsEtaVsPhi_pt{}", varname_, pTcut_).c_str(),
238  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta VS track #phi", pTcut_, varname_).c_str(),
239  EtaBin2D,
240  EtaMin,
241  EtaMax,
242  PhiBin2D,
243  PhiMin,
244  PhiMax,
245  // VarBin,
246  0.,
247  (varname_.find("xy") != std::string::npos) ? 100. : 200.);
248  IPErrVsEtaVsPhi_->SetXTitle("PV track (p_{T} > 1 GeV) #eta");
249  IPErrVsEtaVsPhi_->SetYTitle("PV track (p_{T} > 1 GeV) #phi");
250  IPErrVsEtaVsPhi_->SetZTitle(
251  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_).c_str());
252 }
Definition: config.py:1

Member Data Documentation

◆ IP_

TH1D* GeneralPurposeVertexAnalyzer::IPMonitoring::IP_

◆ IPErr_

TH1D * GeneralPurposeVertexAnalyzer::IPMonitoring::IPErr_

◆ IPErrVsEta_

TProfile * GeneralPurposeVertexAnalyzer::IPMonitoring::IPErrVsEta_

◆ IPErrVsEtaVsPhi_

TProfile2D * GeneralPurposeVertexAnalyzer::IPMonitoring::IPErrVsEtaVsPhi_

◆ IPErrVsPhi_

TProfile* GeneralPurposeVertexAnalyzer::IPMonitoring::IPErrVsPhi_

◆ IPVsEta_

TProfile * GeneralPurposeVertexAnalyzer::IPMonitoring::IPVsEta_

◆ IPVsEtaVsPhi_

TProfile2D* GeneralPurposeVertexAnalyzer::IPMonitoring::IPVsEtaVsPhi_

◆ IPVsPhi_

TProfile* GeneralPurposeVertexAnalyzer::IPMonitoring::IPVsPhi_

◆ pTcut_

float GeneralPurposeVertexAnalyzer::IPMonitoring::pTcut_

◆ varname_

std::string GeneralPurposeVertexAnalyzer::IPMonitoring::varname_