|
template<typename T > |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override |
| override DataProxyProvider method More...
|
|
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
| deletes all the Proxies in aStream More...
|
|
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &) |
|
template<class T > |
void | findingRecord () |
|
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
|
Definition at line 20 of file CSCFakeDBCrosstalk.h.
Definition at line 43 of file CSCFakeDBCrosstalk.h.
References CSCDBCrosstalk::crosstalk, CSCDBCrosstalk::factor_intercept, CSCDBCrosstalk::factor_slope, mps_fire::i, cuy::ii, createfilelist::int, findQualityFiles::jj, SiStripPI::mean, min(), rand(), and SurveyInfoScenario_cff::seed.
Referenced by produceDBCrosstalk().
48 const int MAX_SIZE = 217728;
49 const int SLOPE_FACTOR=10000000;
50 const int INTERCEPT_FACTOR=100000;
53 cndbcrosstalk->
crosstalk.resize(MAX_SIZE);
57 mean=-0.0009, min=0.035;
58 ii=0,jj=0,iii=0,jjj=0;
63 for(
int i=0;
i<MAX_SIZE;
i++){
64 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right = (
short int) ((-((
double)
rand()/((
double)(RAND_MAX)+(
double)(1)))/10000+mean)*SLOPE_FACTOR+0.5);
65 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right= (
short int) ((((
double)
rand()/((
double)(RAND_MAX)+(
double)(1)))/100+
min)*INTERCEPT_FACTOR+0.5);
66 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left= (
short int) ((-((
double)
rand()/((double)(RAND_MAX)+(double)(1)))/10000+
mean)*SLOPE_FACTOR+0.5);
67 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=(
short int) ((((
double)
rand()/((double)(RAND_MAX)+(double)(1)))/100+
min)*INTERCEPT_FACTOR+0.5);
71 if(
i<34561 &&
i%80==0){
72 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left=0;
73 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=0;
76 if(
i!=0 &&
i<34561 && (
i+1)%80==0){
77 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right=0;
78 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right=0;
82 if(
i>34560 &&
i<48385 &&
i%64==0){
83 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left=0;
84 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=0;
87 if(
i>34560 &&
i<48385 && (
i+1)%64==0){
88 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right=0;
89 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right=0;
93 if(
i>48384 &&
i<143425){
95 if(
i>48384 &&
i<143425 && ii%80==0){
96 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left=0;
97 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=0;
101 if(
i>48384 &&
i<143425){
103 if(
i>48384 &&
i<143425 && (jj+1)%80==0){
104 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right=0;
105 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right=0;
110 if(
i>143424 &&
i<157249 &&
i%64==0){
111 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left=0;
112 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=0;
115 if(
i>143424 &&
i<157249 && (
i+1)%64==0){
116 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right=0;
117 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right=0;
124 if(
i>157248 && iii%80==0){
125 cndbcrosstalk->
crosstalk[
i].xtalk_slope_left=0;
126 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_left=0;
132 if(
i>157248 && (jjj+1)%80==0){
133 cndbcrosstalk->
crosstalk[
i].xtalk_slope_right=0;
134 cndbcrosstalk->
crosstalk[
i].xtalk_intercept_right=0;
138 return cndbcrosstalk;
CrosstalkContainer crosstalk