91 m_muonCollectionTag(
cfg.getParameter<
edm::
InputTag>(
"muonCollectionTag")),
92 m_minTrackPt(
cfg.getParameter<double>(
"minTrackPt")),
93 m_minTrackP(
cfg.getParameter<double>(
"minTrackP")),
94 m_minTrackerHits(
cfg.getParameter<
int>(
"minTrackerHits")),
95 m_maxTrackerRedChi2(
cfg.getParameter<double>(
"maxTrackerRedChi2")),
96 m_allowTIDTEC(
cfg.getParameter<
bool>(
"allowTIDTEC")),
97 m_minNCrossedChambers(
cfg.getParameter<
int>(
"minNCrossedChambers")),
98 m_maxDxy(
cfg.getParameter<double>(
"maxDxy")),
99 m_minDT13Hits(
cfg.getParameter<
int>(
"minDT13Hits")),
100 m_minDT2Hits(
cfg.getParameter<
int>(
"minDT2Hits")),
101 m_minCSCHits(
cfg.getParameter<
int>(
"minCSCHits")),
102 m_layer(
cfg.getParameter<
int>(
"layer")),
103 m_propagator(
cfg.getParameter<
std::
string>(
"propagator")),
104 m_doDT(
cfg.getParameter<
bool>(
"doDT")),
105 m_doCSC(
cfg.getParameter<
bool>(
"doCSC")) {}
109 std::string wheelname[5] = {
"wheelm2_",
"wheelm1_",
"wheelz_",
"wheelp1_",
"wheelp2_"};
113 for (
int sector = 1; sector <= 14; sector++) {
114 if (
station != 4 && sector > 12)
117 char stationname[20];
118 sprintf(stationname,
"st%d_",
station);
121 sprintf(sectorname,
"sector%02d_", sector);
123 for (
int component = 0; component <
kNumComponents; component++) {
124 std::stringstream th2f_name, tprofile_name;
125 th2f_name <<
"th2f_" << wheelname[
wheel + 2] << stationname << sectorname;
126 tprofile_name <<
"tprofile_" << wheelname[
wheel + 2] << stationname << sectorname;
128 double yminmax = 50., xminmax = 0.05;
133 th2f_name <<
"deltax";
134 tprofile_name <<
"deltax";
136 th2f_name <<
"deltadxdz";
137 tprofile_name <<
"deltadxdz";
141 book2D(
"/iterN/", th2f_name.str(),
"", 30, -xminmax, xminmax, ynbins, -yminmax, yminmax);
143 bookProfile(
"/iterN/", tprofile_name.str(),
"", 30, -xminmax, xminmax);
148 std::string stname[8] = {
"Ep_S1_",
"Ep_S2_",
"Ep_S3_",
"Ep_S4_",
"Em_S1_",
"Em_S2_",
"Em_S3_",
"Em_S4_"};
154 if (st > 1 &&
ring > 2)
160 sprintf(ringname,
"R%d_",
ring);
163 sprintf(chname,
"C%02d_",
chamber);
165 for (
int component = 0; component <
kNumComponents; component++) {
166 std::stringstream componentname;
167 double yminmax = 50., xminmax = 0.05;
173 componentname <<
"deltax";
175 componentname <<
"deltadxdz";
178 std::stringstream th2f_name, tprofile_name;
179 th2f_name <<
"th2f_" << stname[
station] << ringname << chname << componentname.str();
180 tprofile_name <<
"tprofile_" << stname[
station] << ringname << chname << componentname.str();
183 book2D(
"/iterN/", th2f_name.str(),
"", 30, -xminmax, xminmax, 100, -yminmax, yminmax);
185 bookProfile(
"/iterN/", tprofile_name.str(),
"", 30, -xminmax, xminmax);
191 book1D(
"/iterN/",
"trackerRedChi2Diff",
"Fit-minus-refit tracker reduced chi^2", 100, -5., 5.);
207 for (ConstTrajTrackPairCollection::const_iterator trajtrack = trajtracks.begin(); trajtrack != trajtracks.end();
223 if (!(
muon->isTrackerMuon() &&
muon->innerTrack().isNonnull()))
243 std::vector<DetId> chamberIds = mrft.
chamberIds();
244 for (
unsigned ch = 0; ch < chamberIds.size(); ch++)
261 for (std::vector<DetId>::const_iterator chamberId = chamberIds.begin(); chamberId != chamberIds.end(); ++chamberId) {
270 int wheel = dtid.wheel() + 2;
271 int station = dtid.station() - 1;
272 int sector = dtid.sector() - 1;
274 double resid_x = 10. * dt13->global_residual();
275 double resid_dxdz = 1000. * dt13->global_resslope();
277 if (fabs(resid_x) < 100. && fabs(resid_dxdz) < 100.) {
291 int station = 4 * cscid.endcap() + cscid.station() - 5;
292 int ring = cscid.ring() - 1;
293 if (cscid.station() == 1 && cscid.ring() == 4)
295 int chamber = cscid.chamber() - 1;
297 double resid_x = 10. *
csc->global_residual();
298 double resid_dxdz = 1000. *
csc->global_resslope();
300 if (fabs(resid_x) < 100. && fabs(resid_dxdz) < 100.) {