CMS 3D CMS Logo

Variables
zMuMuValidationTemplates Namespace Reference

Variables

string LoadMuonModules
 
string mergeZmumuPlotsExecution
 
string mergeZmumuPlotsTemplate
 
string ZMuMuPath
 
string zMuMuScriptTemplate
 
string ZMuMuValidationTemplate
 

Variable Documentation

◆ LoadMuonModules

string zMuMuValidationTemplates.LoadMuonModules
Initial value:
1 = """
2 process.load("RecoMuon.DetLayers.muonDetLayerGeometry_cfi")
3 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
4 process.load("RecoMuon.TrackingTools.MuonServiceProxy_cff")
5 process.load("Configuration.StandardSequences.Reconstruction_cff")
6 """

Definition at line 189 of file zMuMuValidationTemplates.py.

◆ mergeZmumuPlotsExecution

string zMuMuValidationTemplates.mergeZmumuPlotsExecution
Initial value:
1 = """
2 #merge Z->mumu histograms
3 
4 cp .oO[mergeZmumuPlotsScriptPath]Oo. .
5 root -l -x -b -q TkAlMergeZmumuPlots.C++
6 
7 """

Definition at line 282 of file zMuMuValidationTemplates.py.

◆ mergeZmumuPlotsTemplate

string zMuMuValidationTemplates.mergeZmumuPlotsTemplate
Initial value:
1 = """
2 #include "MuonAnalysis/MomentumScaleCalibration/test/Macros/RooFit/MultiHistoOverlapAll_.oO[resonance]Oo..C"
3 #include <sstream>
4 #include <vector>
5 
6 template <typename T> string separatebycommas(vector<T> v){
7  if (v.size()==0) return "";
8  stringstream s;
9  s << v[0];
10  for (unsigned int i = 1; i < v.size(); i++) s << "," << v[i];
11  return s.str();
12 }
13 
14 void TkAlMergeZmumuPlots(){
15  vector<string> filenames; vector<string> titles; vector<int> colors; vector<int> linestyles;
16 
17 .oO[PlottingInstantiation]Oo.
18 
19  vector<int> linestyles_new, markerstyles_new;
20  for (unsigned int j=0; j<linestyles.size(); j++){ linestyles_new.push_back(linestyles.at(j) % 100); markerstyles_new.push_back(linestyles.at(j) / 100); }
21 
22  TkAlStyle::legendheader = ".oO[legendheader]Oo.";
23  TkAlStyle::set(.oO[publicationstatus]Oo., .oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.");
24 
25  MultiHistoOverlapAll_.oO[resonance]Oo.(separatebycommas(filenames), separatebycommas(titles), separatebycommas(colors), separatebycommas(linestyles_new), separatebycommas(markerstyles_new), ".oO[datadir]Oo./.oO[PlotsDirName]Oo.", .oO[switchONfit]Oo., .oO[AutoSetRange]Oo., .oO[CustomMinY]Oo., .oO[CustomMaxY]Oo.);
26 }
27 """

Definition at line 293 of file zMuMuValidationTemplates.py.

◆ ZMuMuPath

string zMuMuValidationTemplates.ZMuMuPath
Initial value:
1 = """
2 process.p = cms.Path(
3  process.offlineBeamSpot*process.TrackRefitter
4  )
5 """

Definition at line 199 of file zMuMuValidationTemplates.py.

◆ zMuMuScriptTemplate

string zMuMuValidationTemplates.zMuMuScriptTemplate

Definition at line 208 of file zMuMuValidationTemplates.py.

◆ ZMuMuValidationTemplate

string zMuMuValidationTemplates.ZMuMuValidationTemplate

Definition at line 1 of file zMuMuValidationTemplates.py.