CMS 3D CMS Logo

Macros
GeometryComparisonPlotter.cc File Reference
#include "GeometryComparisonPlotter.h"

Go to the source code of this file.

Macros

#define CHECK_BRANCHES(branchname_vector)
 
#define CHECK_BRANCHES(branchname_vector)
 
#define CHECK_MAP_CONTENT(m, type)
 
#define COLOR_CODE(icolor)   int(icolor/4)+icolor+1
 
#define INDEX_IN_GLOBAL_CANVAS(i1, i2)   1 + i1 + i2*x.size()
 
#define INSIDE_VECTOR(vector)   cout << #vector << "={"; for (unsigned int i = 0 ; i < vector.size()-1 ; i++) cout << vector[i] << ","; cout << vector.back() << "}";
 
#define LIMITS(axes_vector)
 
#define LIMITS(axes_vector)
 
#define NB_MODULE_QUALITY   3
 
#define NB_X_SLICES   2
 
#define NB_Z_SLICES   2
 
#define NB_Z_SLICES   2
 
#define TALKATIVE
 

Macro Definition Documentation

◆ CHECK_BRANCHES [1/2]

#define CHECK_BRANCHES (   branchname_vector)
Value:
for (unsigned int i = 0 ; i < branchname_vector.size() ; i++) \
{ \
if (branch_f.find(branchname_vector[i]) == branch_f.end()) \
{ \
cout << __FILE__ << ":" << __LINE__ << ":Error: The branch " << branchname_vector[i] << " is not recognised." << endl; \
return; \
} \
}

◆ CHECK_BRANCHES [2/2]

#define CHECK_BRANCHES (   branchname_vector)
Value:
for (unsigned int i = 0 ; i < branchname_vector.size() ; i++) \
{ \
if (branch_f.find(branchname_vector[i]) == branch_f.end()) \
{ \
cout << __FILE__ << ":" << __LINE__ << ":Error: The branch " << branchname_vector[i] << " is not recognised." << endl; \
return; \
} \
}

◆ CHECK_MAP_CONTENT

#define CHECK_MAP_CONTENT (   m,
  type 
)
Value:
for (map<TString,type>::iterator it = m.begin() ; it != m.end() ; it++) \
cout << __FILE__ << ":" << __LINE__ << ":Info: " << #m << "[" << it->first << "]=" << it->second << endl;

Definition at line 21 of file GeometryComparisonPlotter.cc.

◆ COLOR_CODE

#define COLOR_CODE (   icolor)    int(icolor/4)+icolor+1

◆ INDEX_IN_GLOBAL_CANVAS

#define INDEX_IN_GLOBAL_CANVAS (   i1,
  i2 
)    1 + i1 + i2*x.size()

◆ INSIDE_VECTOR

#define INSIDE_VECTOR (   vector)    cout << #vector << "={"; for (unsigned int i = 0 ; i < vector.size()-1 ; i++) cout << vector[i] << ","; cout << vector.back() << "}";

Definition at line 19 of file GeometryComparisonPlotter.cc.

◆ LIMITS [1/2]

#define LIMITS (   axes_vector)
Value:
for (unsigned int i = 0 ; i < axes_vector.size() ; i++) \
{ \
if ( _SF.find(axes_vector[i]) == _SF.end()) _SF[axes_vector[i]] = 1.; \
if (_min.find(axes_vector[i]) == _min.end()) _min[axes_vector[i]] = _SF[axes_vector[i]]*data->GetMinimum(axes_vector[i]); \
if (_max.find(axes_vector[i]) == _max.end()) _max[axes_vector[i]] = _SF[axes_vector[i]]*data->GetMaximum(axes_vector[i]); \
}

◆ LIMITS [2/2]

#define LIMITS (   axes_vector)
Value:
for (unsigned int i = 0 ; i < axes_vector.size() ; i++) \
{ \
if ( _SF.find(axes_vector[i]) == _SF.end()) _SF[axes_vector[i]] = 1.; \
if (_min.find(axes_vector[i]) == _min.end()) _min[axes_vector[i]] = _SF[axes_vector[i]]*data->GetMinimum(axes_vector[i]); \
if (_max.find(axes_vector[i]) == _max.end()) _max[axes_vector[i]] = _SF[axes_vector[i]]*data->GetMaximum(axes_vector[i]); \
}

◆ NB_MODULE_QUALITY

#define NB_MODULE_QUALITY   3

◆ NB_X_SLICES

#define NB_X_SLICES   2

◆ NB_Z_SLICES [1/2]

#define NB_Z_SLICES   2

◆ NB_Z_SLICES [2/2]

#define NB_Z_SLICES   2

◆ TALKATIVE

#define TALKATIVE

Definition at line 15 of file GeometryComparisonPlotter.cc.

mps_fire.i
i
Definition: mps_fire.py:355
gather_cfg.cout
cout
Definition: gather_cfg.py:144
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79