CMS 3D CMS Logo

Macros
GeometryComparisonPlotter.cc File Reference
#include "Alignment/OfflineValidation/interface/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)
 
#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()) { \
std::cout << __FILE__ << ":" << __LINE__ << ":Error: The branch " << branchname_vector[i] \
<< " is not recognised." << std::endl; \
return; \
} \
}

Referenced by GeometryComparisonPlotter::MakePlots(), and GeometryComparisonPlotter::MakeTables().

◆ 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()) { \
std::cout << __FILE__ << ":" << __LINE__ << ":Error: The branch " << branchname_vector[i] \
<< " is not recognised." << std::endl; \
return; \
} \
}

◆ CHECK_MAP_CONTENT

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

Definition at line 24 of file GeometryComparisonPlotter.cc.

Referenced by GeometryComparisonPlotter::MakePlots(), and GeometryComparisonPlotter::MakeTables().

◆ 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)
Value:
std::cout << #vector << "={"; \
for (unsigned int i = 0; i < vector.size() - 1; i++) \
std::cout << vector[i] << ","; \
std::cout << vector.back() << "}";

Definition at line 19 of file GeometryComparisonPlotter.cc.

Referenced by GeometryComparisonPlotter::MakePlots(), and GeometryComparisonPlotter::MakeTables().

◆ 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]); \
}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Referenced by GeometryComparisonPlotter::MakePlots(), and GeometryComparisonPlotter::MakeTables().

◆ 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]); \
}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ 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.