|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord > |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
|
void | usesResources (std::vector< std::string > const &) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
KeyedProxiesVector | registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
template<class T > |
void | findingRecord () |
|
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
|
Definition at line 20 of file CSCFakeDBCrosstalk.h.
Definition at line 44 of file CSCFakeDBCrosstalk.h.
References CSCDBCrosstalk::crosstalk, CSCDBCrosstalk::factor_intercept, CSCDBCrosstalk::factor_slope, mps_fire::i, cuy::ii, createfilelist::int, findQualityFiles::jj, pixelgpudetails::MAX_SIZE, SiStripPI::mean, SiStripPI::min, and fileCollector::seed.
Referenced by produceDBCrosstalk().
49 const int SLOPE_FACTOR = 10000000;
50 const int INTERCEPT_FACTOR = 100000;
58 ii = 0,
jj = 0, iii = 0, jjj = 0;
64 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right =
65 (
short int)((-((
double)rand() / ((
double)(RAND_MAX) + (
double)(1))) / 10000 +
mean) * SLOPE_FACTOR + 0.5);
66 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right =
67 (
short int)((((
double)rand() / ((
double)(RAND_MAX) + (
double)(1))) / 100 +
min) * INTERCEPT_FACTOR + 0.5);
69 (
short int)((-((
double)rand() / ((double)(RAND_MAX) + (double)(1))) / 10000 +
mean) * SLOPE_FACTOR + 0.5);
70 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left =
71 (
short int)((((
double)rand() / ((double)(RAND_MAX) + (double)(1))) / 100 +
min) * INTERCEPT_FACTOR + 0.5);
74 if (
i < 34561 &&
i % 80 == 0) {
75 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left = 0;
76 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left = 0;
79 if (
i != 0 &&
i < 34561 && (
i + 1) % 80 == 0) {
80 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = 0;
81 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right = 0;
85 if (
i > 34560 &&
i < 48385 &&
i % 64 == 0) {
86 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left = 0;
87 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left = 0;
90 if (
i > 34560 &&
i < 48385 && (
i + 1) % 64 == 0) {
91 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = 0;
92 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right = 0;
96 if (
i > 48384 &&
i < 143425) {
98 if (
i > 48384 &&
i < 143425 &&
ii % 80 == 0) {
99 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left = 0;
100 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left = 0;
104 if (
i > 48384 &&
i < 143425) {
106 if (
i > 48384 &&
i < 143425 && (
jj + 1) % 80 == 0) {
107 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = 0;
108 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right = 0;
113 if (
i > 143424 &&
i < 157249 &&
i % 64 == 0) {
114 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left = 0;
115 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left = 0;
118 if (
i > 143424 &&
i < 157249 && (
i + 1) % 64 == 0) {
119 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = 0;
120 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right = 0;
126 if (
i > 157248 && iii % 80 == 0) {
127 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left = 0;
128 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left = 0;
134 if (
i > 157248 && (jjj + 1) % 80 == 0) {
135 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = 0;
136 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right = 0;
140 return cndbcrosstalk;
constexpr unsigned int MAX_SIZE
CrosstalkContainer crosstalk