21 useCalib( ps.getParameter<
bool>(
"CSCUseCalibrations") ),
22 useStaticPedestals( ps.getParameter<
bool>(
"CSCUseStaticPedestals") ),
23 useTimingCorrections(ps.getParameter<
bool>(
"CSCUseTimingCorrections") ),
24 useGasGainCorrections(ps.getParameter<
bool>(
"CSCUseGasGainCorrections") )
36 produces<CSCRecHit2DCollection>();
51 LogTrace(
"CSCRecHit")<<
"[CSCRecHitDProducer] starting event " << ev.
id().
event() <<
" of run " << ev.
id().
run();
71 auto oc = std::make_unique<CSCRecHit2DCollection>();
77 LogTrace(
"CSCRecHit")<<
"[CSCRecHitDProducer] putting collection of " << oc->size() <<
" rechits into event.";
84 desc.
add<
double>(
"CSCStripPeakThreshold",10.0);
85 desc.
add<
double>(
"CSCStripClusterChargeCut",25.0);
86 desc.
add<
double>(
"CSCStripxtalksOffset",0.03);
87 desc.
add<
bool>(
"UseAverageTime",
false);
88 desc.
add<
bool>(
"UseParabolaFit",
false);
89 desc.
add<
bool>(
"UseFivePoleFit",
true);
90 desc.
add<
int>(
"CSCWireClusterDeltaT",1);
91 desc.
add<
bool>(
"CSCUseCalibrations",
true);
92 desc.
add<
bool>(
"CSCUseStaticPedestals",
false);
93 desc.
add<
int>(
"CSCNoOfTimeBinsForDynamicPedestal",2);
96 desc.
add<
bool>(
"readBadChannels",
true);
97 desc.
add<
bool>(
"readBadChambers",
true);
98 desc.
add<
bool>(
"CSCUseTimingCorrections",
true);
99 desc.
add<
bool>(
"CSCUseGasGainCorrections",
true);
101 desc.
add<
int>(
"CSCstripWireDeltaTime",8);
104 desc.
add<
double>(
"XTasymmetry_ME1a",0.023),
105 desc.
add<
double>(
"XTasymmetry_ME1b",0.01),
106 desc.
add<
double>(
"XTasymmetry_ME12",0.015),
107 desc.
add<
double>(
"XTasymmetry_ME13",0.02),
108 desc.
add<
double>(
"XTasymmetry_ME21",0.023),
109 desc.
add<
double>(
"XTasymmetry_ME22",0.023),
110 desc.
add<
double>(
"XTasymmetry_ME31",0.023),
111 desc.
add<
double>(
"XTasymmetry_ME32",0.023),
112 desc.
add<
double>(
"XTasymmetry_ME41",0.023),
113 desc.
add<
double>(
"ConstSyst_ME1a",0.01),
114 desc.
add<
double>(
"ConstSyst_ME1b",0.02),
115 desc.
add<
double>(
"ConstSyst_ME12",0.02),
116 desc.
add<
double>(
"ConstSyst_ME13",0.03),
117 desc.
add<
double>(
"ConstSyst_ME21",0.03),
118 desc.
add<
double>(
"ConstSyst_ME22",0.03),
119 desc.
add<
double>(
"ConstSyst_ME31",0.03),
120 desc.
add<
double>(
"ConstSyst_ME32",0.03),
121 desc.
add<
double>(
"ConstSyst_ME41",0.03),
122 desc.
add<
double>(
"NoiseLevel_ME1a",9.0),
123 desc.
add<
double>(
"NoiseLevel_ME1b",6.0),
124 desc.
add<
double>(
"NoiseLevel_ME12",7.0),
125 desc.
add<
double>(
"NoiseLevel_ME13",4.0),
126 desc.
add<
double>(
"NoiseLevel_ME21",5.0),
127 desc.
add<
double>(
"NoiseLevel_ME22",7.0),
128 desc.
add<
double>(
"NoiseLevel_ME31",5.0),
129 desc.
add<
double>(
"NoiseLevel_ME32",7.0),
130 desc.
add<
double>(
"NoiseLevel_ME41",5.0);
132 desc.
add<
bool>(
"CSCUseReducedWireTimeWindow",
false);
133 desc.
add<
int>(
"CSCWireTimeWindowLow", 0);
134 desc.
add<
int>(
"CSCWireTimeWindowHigh", 15);
135 descriptions.
add(
"configWireTimeWindow", desc);
T getParameter(std::string const &) const
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setConditions(CSCRecoConditions *reco)
def setup(process, global_tag, zero_tesla=False)
CSCRecoConditions * recoConditions_
void build(const CSCStripDigiCollection *stripds, const CSCWireDigiCollection *wireds, CSCRecHit2DCollection &oc)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
CSCRecHitDBuilder * recHitBuilder_
bool useTimingCorrections
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< CSCStripDigiCollection > s_token
bool useGasGainCorrections
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~CSCRecHitDProducer() override
edm::EDGetTokenT< CSCWireDigiCollection > w_token
CSCRecHitDProducer(const edm::ParameterSet &ps)
void setGeometry(const CSCGeometry *geom)
void initializeEvent(const edm::EventSetup &es)
fetch the cond data from the database