|
|
#include <CSCAlignmentCorrections.h>
|
void | applyAlignment (AlignableNavigator *alignableNavigator, AlignmentParameterStore *alignmentParameterStore, int mode, bool combineME11) |
|
| CSCAlignmentCorrections (std::string fitterName, double oldchi2, double newchi2) |
|
void | insertCorrection (std::string name, CSCDetId id, double value) |
|
void | insertMode (const std::vector< double > &coefficient, const std::vector< std::string > &modename, const std::vector< long > &modeid, double error) |
|
void | insertResidual (std::string i, std::string j, double before, double uncert, double residual, double pull) |
|
void | plot () |
|
void | report (std::ofstream &report) |
|
virtual | ~CSCAlignmentCorrections () |
|
- Date
- 2010/05/12 21:57:51
- Revision
- 1.2
- Author
- J. Pivarski - Texas A&M University pivar.nosp@m.ski@.nosp@m.physi.nosp@m.cs.t.nosp@m.amu.e.nosp@m.du
Definition at line 23 of file CSCAlignmentCorrections.h.
◆ CSCAlignmentCorrections()
CSCAlignmentCorrections::CSCAlignmentCorrections |
( |
std::string |
fitterName, |
|
|
double |
oldchi2, |
|
|
double |
newchi2 |
|
) |
| |
|
inline |
◆ ~CSCAlignmentCorrections()
virtual CSCAlignmentCorrections::~CSCAlignmentCorrections |
( |
| ) |
|
|
inlinevirtual |
◆ applyAlignment()
Definition at line 80 of file CSCAlignmentCorrections.cc.
84 for (
unsigned int i = 0;
i <
m_name.size();
i++) {
95 const DetId alsoid2(alsoid);
107 double radius =
sqrt(center.
x() * center.
x() + center.
y() * center.
y());
112 params[5] = phi_correction * (backward ? -1. : 1.);
127 if (also !=
nullptr) {
References AlignableDetOrUnitPtr::alignable(), AlignableNavigator::alignableFromDetId(), Alignable::alignmentParameters(), AlignmentParameterStore::applyParameters(), cms::cuda::assert(), relativeConstraints::chamber, AlignmentParameters::cloneFromSelected(), align_cfg::combineME11, funct::cos(), MillePedeFileConverter_cfg::e, makeMuonMisalignmentScenario::endcap, mps_fire::i, triggerObjects_cff::id, CSCPairResidualsConstraint::kModePhiPos, CSCPairResidualsConstraint::kModePhiy, CSCPairResidualsConstraint::kModePhiz, m_id, m_name, m_value, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, CalibrationSummaryClient_cfi::params, CosmicsPD_Skims::radius, relativeConstraints::ring, Alignable::setAlignmentParameters(), AlignmentParameters::setValid(), funct::sin(), mathSSE::sqrt(), relativeConstraints::station, Alignable::surface(), AlignableSurface::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
◆ insertCorrection()
void CSCAlignmentCorrections::insertCorrection |
( |
std::string |
name, |
|
|
CSCDetId |
id, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ insertMode()
void CSCAlignmentCorrections::insertMode |
( |
const std::vector< double > & |
coefficient, |
|
|
const std::vector< std::string > & |
modename, |
|
|
const std::vector< long > & |
modeid, |
|
|
double |
error |
|
) |
| |
|
inline |
◆ insertResidual()
void CSCAlignmentCorrections::insertResidual |
( |
std::string |
i, |
|
|
std::string |
j, |
|
|
double |
before, |
|
|
double |
uncert, |
|
|
double |
residual, |
|
|
double |
pull |
|
) |
| |
|
inline |
◆ plot()
void CSCAlignmentCorrections::plot |
( |
| ) |
|
Definition at line 7 of file CSCAlignmentCorrections.cc.
12 if (modifiedName[0] ==
'M' && modifiedName[1] ==
'E') {
13 if (modifiedName[2] ==
'-')
14 modifiedName[2] =
'm';
15 else if (modifiedName[2] ==
'+')
16 modifiedName[2] =
'p';
17 if (modifiedName[4] ==
'/')
18 modifiedName[4] =
'_';
19 if (modifiedName[6] ==
'/')
20 modifiedName[6] =
'_';
21 }
else if (modifiedName[0] ==
'Y' && modifiedName[1] ==
'E') {
22 if (modifiedName[2] ==
'-')
23 modifiedName[2] =
'm';
24 else if (modifiedName[2] ==
'+')
25 modifiedName[2] =
'p';
28 std::stringstream histname, histtitle;
29 histname << modifiedName <<
"_mode_" <<
i;
32 TH1F *
hist = tFileService->
make<TH1F>(
35 bool showed_full_name =
false;
39 if (
m_modeid[
i][
j] == -1 || !showed_full_name) {
42 std::stringstream shortname;
44 hist->GetXaxis()->SetBinLabel(
j + 1, shortname.str().c_str());
47 showed_full_name =
true;
References gpuVertexFinder::hist, mps_fire::i, dqmiolumiharvest::j, m_coefficient, m_error, m_fitterName, m_modeid, m_modename, TFileService::make(), AlCaHLTBitMon_QueryRunRegistry::string, and th1f_modes.
◆ report()
void CSCAlignmentCorrections::report |
( |
std::ofstream & |
report | ) |
|
Definition at line 54 of file CSCAlignmentCorrections.cc.
58 for (
unsigned int i = 0;
i <
m_name.size();
i++) {
64 report <<
"cscReports[-1].addErrorMode(" <<
m_error[
i] <<
")" << std::endl;
72 for (
unsigned int i = 0;
i <
m_i.size();
i++) {
References mps_fire::i, dqmiolumiharvest::j, m_before, m_coefficient, m_error, m_fitterName, m_i, m_id, m_j, m_modeid, m_modename, m_name, m_newchi2, m_oldchi2, m_pull, m_residual, m_uncert, and m_value.
◆ m_before
std::vector<double> CSCAlignmentCorrections::m_before |
|
protected |
◆ m_coefficient
std::vector<std::vector<double> > CSCAlignmentCorrections::m_coefficient |
|
protected |
◆ m_error
std::vector<double> CSCAlignmentCorrections::m_error |
|
protected |
◆ m_fitterName
std::string CSCAlignmentCorrections::m_fitterName |
|
protected |
◆ m_i
std::vector<std::string> CSCAlignmentCorrections::m_i |
|
protected |
◆ m_id
std::vector<CSCDetId> CSCAlignmentCorrections::m_id |
|
protected |
◆ m_j
std::vector<std::string> CSCAlignmentCorrections::m_j |
|
protected |
◆ m_modeid
std::vector<std::vector<long> > CSCAlignmentCorrections::m_modeid |
|
protected |
◆ m_modename
std::vector<std::vector<std::string> > CSCAlignmentCorrections::m_modename |
|
protected |
◆ m_name
std::vector<std::string> CSCAlignmentCorrections::m_name |
|
protected |
◆ m_newchi2
double CSCAlignmentCorrections::m_newchi2 |
|
protected |
◆ m_oldchi2
double CSCAlignmentCorrections::m_oldchi2 |
|
protected |
◆ m_pull
std::vector<double> CSCAlignmentCorrections::m_pull |
|
protected |
◆ m_residual
std::vector<double> CSCAlignmentCorrections::m_residual |
|
protected |
◆ m_uncert
std::vector<double> CSCAlignmentCorrections::m_uncert |
|
protected |
◆ m_value
std::vector<double> CSCAlignmentCorrections::m_value |
|
protected |
◆ th1f_modes
std::vector<TH1F*> CSCAlignmentCorrections::th1f_modes |
|
protected |
void setAlignmentParameters(AlignmentParameters *dap)
Set the AlignmentParameters.
void report(std::ofstream &report)
std::vector< std::vector< std::string > > m_modename
Sin< T >::type sin(const T &t)
std::vector< std::string > m_i
Cos< T >::type cos(const T &t)
CLHEP::HepVector AlgebraicVector
void applyParameters(void)
Obsolete: Use AlignableNavigator::alignableDetFromDetId and alignableFromAlignableDet.
std::vector< std::vector< long > > m_modeid
std::vector< double > m_before
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
std::vector< std::vector< double > > m_coefficient
std::vector< double > m_pull
std::vector< TH1F * > th1f_modes
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< std::string > m_j
void setValid(bool v)
Set validity flag.
AlignableDetOrUnitPtr alignableFromDetId(const DetId &detid)
Returns AlignableDetOrUnitPtr corresponding to given DetId.
virtual AlignmentParameters * cloneFromSelected(const AlgebraicVector &par, const AlgebraicSymMatrix &cov) const =0
std::vector< double > m_uncert
std::vector< double > m_residual
std::vector< double > m_error
AlignmentParameters * alignmentParameters() const
Get the AlignmentParameters.
std::vector< CSCDetId > m_id
std::vector< double > m_value
T * make(const Args &... args) const
make new ROOT object
std::vector< std::string > m_name