69 : subtractT0_(
pset.getParameter<
bool>(
"subtractT0")), digiLabel_(
pset.getParameter<
edm::
InputTag>(
"digiLabel")) {
100 for (dtLayerIt = digis->begin(); dtLayerIt != digis->end(); ++dtLayerIt) {
105 const DTLayerId layerId = (*dtLayerIt).first;
109 const DTWireId wireId(layerId, (*digi).wire());
111 double t0 = (*digi).countsTDC();
137 std::map<DTLayerId, TH1F*> meanHistoMap;
138 std::map<DTLayerId, TH1F*> sigmaHistoMap;
147 double mean = sumW / nDigis;
152 if (meanHistoMap.find(layerId) == meanHistoMap.end()) {
156 TH1F* meanHistoTP =
new TH1F((
histoName +
"_tpMean").c_str(),
157 "mean from test pulses by channel",
160 (firstChannel + nWires));
161 TH1F* sigmaHistoTP =
new TH1F((
histoName +
"_tpSigma").c_str(),
162 "sigma from test pulses by channel",
165 (firstChannel + nWires));
166 meanHistoMap[layerId] = meanHistoTP;
167 sigmaHistoMap[layerId] = sigmaHistoTP;
170 int nBin = meanHistoMap[layerId]->GetXaxis()->FindFixBin(wireId.
wire());
171 meanHistoMap[layerId]->SetBinContent(
nBin,
mean);
172 sigmaHistoMap[layerId]->SetBinContent(
nBin,
rms);
175 for (std::map<DTLayerId, TH1F*>::const_iterator
key = meanHistoMap.begin();
key != meanHistoMap.end(); ++
key) {
176 meanHistoMap[(*key).first]->Write();
177 sigmaHistoMap[(*key).first]->Write();
183 std::stringstream theStream;