29 , m_minTrackPt(cfg.getParameter<double>(
"minTrackPt"))
30 , m_maxTrackPt(cfg.getParameter<double>(
"maxTrackPt"))
31 , m_minTrackerHits(cfg.getParameter<int>(
"minTrackerHits"))
32 , m_maxTrackerRedChi2(cfg.getParameter<double>(
"maxTrackerRedChi2"))
33 , m_allowTIDTEC(cfg.getParameter<bool>(
"allowTIDTEC"))
34 , m_minDT13Hits(cfg.getParameter<int>(
"minDT13Hits"))
35 , m_minDT2Hits(cfg.getParameter<int>(
"minDT2Hits"))
36 , m_minCSCHits(cfg.getParameter<int>(
"minCSCHits"))
43 std::string s_tens, s_ones;
44 if (tens == 0) s_tens = std::string(
"0");
45 if (tens == 1) s_tens = std::string(
"1");
46 if (tens == 2) s_tens = std::string(
"2");
47 if (tens == 3) s_tens = std::string(
"3");
48 if (tens == 4) s_tens = std::string(
"4");
49 if (tens == 5) s_tens = std::string(
"5");
50 if (tens == 6) s_tens = std::string(
"6");
51 if (tens == 7) s_tens = std::string(
"7");
52 if (tens == 8) s_tens = std::string(
"8");
53 if (tens == 9) s_tens = std::string(
"9");
55 if (ones == 0) s_ones = std::string(
"0");
56 if (ones == 1) s_ones = std::string(
"1");
57 if (ones == 2) s_ones = std::string(
"2");
58 if (ones == 3) s_ones = std::string(
"3");
59 if (ones == 4) s_ones = std::string(
"4");
60 if (ones == 5) s_ones = std::string(
"5");
61 if (ones == 6) s_ones = std::string(
"6");
62 if (ones == 7) s_ones = std::string(
"7");
63 if (ones == 8) s_ones = std::string(
"8");
64 if (ones == 9) s_ones = std::string(
"9");
66 return s_tens + s_ones;
70 for (
int sector = 1; sector <= 14; sector++) {
80 for (
int chamber = 1; chamber <= 36; chamber++) {
88 for (
int wheel = -2; wheel <= 2; wheel++) {
90 if (wheel == -2) s_wheel = std::string(
"A");
91 else if (wheel == -1) s_wheel = std::string(
"B");
92 else if (wheel == 0) s_wheel = std::string(
"C");
93 else if (wheel == +1) s_wheel = std::string(
"D");
94 else if (wheel == +2) s_wheel = std::string(
"E");
132 for (ConstTrajTrackPairCollection::const_iterator trajtrack = trajtracks.begin(); trajtrack != trajtracks.end(); ++trajtrack) {
147 std::vector<DetId> chamberIds = muonResidualsFromTrack.
chamberIds();
151 for (std::vector<DetId>::const_iterator chamberId = chamberIds.begin(); chamberId != chamberIds.end(); ++chamberId) {
166 int dof = dt13->
ndof();
169 double phi = atan2(trackpos.
y(), trackpos.
x());
170 double z = trackpos.
z();
172 assert(1 <=
id.sector() &&
id.sector() <= 14);
201 int dof = dt2->
ndof();
204 double phi = atan2(trackpos.
y(), trackpos.
x());
205 double z = trackpos.
z();
207 assert(1 <=
id.sector() &&
id.sector() <= 14);
243 int dof = csc->
ndof();
246 double phi = atan2(trackpos.
y(), trackpos.
x());
247 double R =
sqrt(
pow(trackpos.
x(), 2) +
pow(trackpos.
y(), 2));
249 int chamber =
id.chamber() - 1;
250 if (
id.
station() > 1 &&
id.
ring() == 1) chamber *= 2;
252 assert(1 <=
id.
endcap() &&
id.
endcap() <= 2 && 0 <= chamber && chamber <= 35);
288 else { assert(
false); }
MuonSystemMapPlot1D * m_DTvsz_station3[12]
double m_maxTrackerRedChi2
MuonSystemMapPlot1D * m_DTvsz_station4[14]
AlignableNavigator * pNavigator()
MuonSystemMapPlot1D * m_CSCvsphi_me31[2]
MuonSystemMapPlot1D * m_CSCvsphi_me42[2]
std::string num02d(int num)
int trackerNumHits() const
MuonSystemMapPlot1D * m_CSCvsr_me3[2][36]
MuonSystemMapPlot1D * m_CSCvsphi_me12[2]
void fill_y(char charge, double abscissa, double residy, double chi2, int dof)
MuonSystemMapPlot1D * m_CSCvsphi_me21[2]
MuonSystemMapPlot1D * m_DTvsphi_station3[5]
double global_residual() const
void event(const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks)
Called for each event (by "run()"): may be reimplemented.
GlobalPoint global_trackpos()
const std::vector< DetId > chamberIds() const
void fill_x(char charge, double abscissa, double residx, double chi2, int dof)
double pt() const
track transverse momentum
void book()
Book or retrieve histograms; MUST be reimplemented.
MuonSystemMapPlot1D * m_DTvsphi_station4[5]
MuonSystemMapPlot1D * m_CSCvsphi_me14[2]
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
void afterAlignment(const edm::EventSetup &iSetup)
MuonSystemMapPlot1D * m_CSCvsphi_me11[2]
MuonSystemMapPlot1D * m_CSCvsphi_me41[2]
MuonSystemMapPlot1D * m_DTvsphi_station1[5]
MuonSystemMapPlot1D * m_DTvsz_station1[12]
MuonSystemMapPlot1D * m_CSCvsr_me1[2][36]
double trackerRedChi2() const
MuonSystemMapPlot1D * m_CSCvsphi_me22[2]
MuonSystemMapPlot1D * m_CSCvsr_me2[2][36]
std::vector< MuonSystemMapPlot1D * > m_plots
MuonSystemMapPlot1D * m_CSCvsr_me4[2][36]
MuonSystemMapPlot1D * m_CSCvsphi_me13[2]
void fill_dydz(char charge, double abscissa, double slopey, double chi2, int dof)
friend class MuonSystemMapPlot1D
long m_counter_cscnumhits
double global_resslope() const
int charge() const
track electric charge
#define DEFINE_EDM_PLUGIN(factory, type, name)
void fill_dxdz(char charge, double abscissa, double slopex, double chi2, int dof)
MuonSystemMapPlot1D * m_DTvsphi_station2[5]
MuonSystemMapPlot1D * m_CSCvsphi_me32[2]
MuonSystemMapPlot1D * m_DTvsz_station2[12]
Power< A, B >::type pow(const A &a, const B &b)
MuonChamberResidual * chamberResidual(DetId chamberId, int type)
AlignmentMonitorMuonSystemMap1D(const edm::ParameterSet &cfg)
bool contains_TIDTEC() const