CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
MuonAlignmentOutputXML Class Reference

#include <Alignment/MuonAlignment/interface/MuonAlignmentOutputXML.h>

Public Member Functions

 MuonAlignmentOutputXML (const edm::ParameterSet &iConfig)
 
void write (AlignableMuon *alignableMuon, const edm::EventSetup &iSetup) const
 
virtual ~MuonAlignmentOutputXML ()
 

Private Member Functions

 MuonAlignmentOutputXML (const MuonAlignmentOutputXML &)=delete
 
const MuonAlignmentOutputXMLoperator= (const MuonAlignmentOutputXML &)=delete
 
void writeComponents (align::Alignables &alignables, align::Alignables &ideals, std::map< align::ID, CLHEP::HepSymMatrix > &errors, std::ofstream &outputFile, bool DT, const AlignableObjectId &) const
 

Private Attributes

bool m_eulerAngles
 
std::string m_fileName
 
int m_precision
 
bool m_rawIds
 
int m_relativeto
 
bool m_suppressCSCChambers
 
bool m_suppressCSCEndcaps
 
bool m_suppressCSCLayers
 
bool m_suppressCSCRings
 
bool m_suppressCSCStations
 
bool m_suppressDTBarrel
 
bool m_suppressDTChambers
 
bool m_suppressDTLayers
 
bool m_suppressDTStations
 
bool m_suppressDTSuperLayers
 
bool m_suppressDTWheels
 
bool m_survey
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 35 of file MuonAlignmentOutputXML.h.

Constructor & Destructor Documentation

◆ MuonAlignmentOutputXML() [1/2]

MuonAlignmentOutputXML::MuonAlignmentOutputXML ( const edm::ParameterSet iConfig)

Definition at line 44 of file MuonAlignmentOutputXML.cc.

45  : m_fileName(iConfig.getParameter<std::string>("fileName")),
46  m_survey(iConfig.getParameter<bool>("survey")),
47  m_rawIds(iConfig.getParameter<bool>("rawIds")),
48  m_eulerAngles(iConfig.getParameter<bool>("eulerAngles")),
49  m_precision(iConfig.getParameter<int>("precision")),
50  m_suppressDTBarrel(iConfig.getUntrackedParameter<bool>("suppressDTBarrel", false)),
51  m_suppressDTWheels(iConfig.getUntrackedParameter<bool>("suppressDTWheels", false)),
52  m_suppressDTStations(iConfig.getUntrackedParameter<bool>("suppressDTStations", false)),
53  m_suppressDTChambers(iConfig.getUntrackedParameter<bool>("suppressDTChambers", false)),
54  m_suppressDTSuperLayers(iConfig.getUntrackedParameter<bool>("suppressDTSuperLayers", false)),
55  m_suppressDTLayers(iConfig.getUntrackedParameter<bool>("suppressDTLayers", false)),
56  m_suppressCSCEndcaps(iConfig.getUntrackedParameter<bool>("suppressCSCEndcaps", false)),
57  m_suppressCSCStations(iConfig.getUntrackedParameter<bool>("suppressCSCStations", false)),
58  m_suppressCSCRings(iConfig.getUntrackedParameter<bool>("suppressCSCRings", false)),
59  m_suppressCSCChambers(iConfig.getUntrackedParameter<bool>("suppressCSCChambers", false)),
60  m_suppressCSCLayers(iConfig.getUntrackedParameter<bool>("suppressCSCLayers", false)) {
61  std::string str_relativeto = iConfig.getParameter<std::string>("relativeto");
62 
63  if (str_relativeto == std::string("none")) {
64  m_relativeto = 0;
65  } else if (str_relativeto == std::string("ideal")) {
66  m_relativeto = 1;
67  } else if (str_relativeto == std::string("container")) {
68  m_relativeto = 2;
69  } else {
70  throw cms::Exception("BadConfig") << "relativeto must be \"none\", \"ideal\", or \"container\"" << std::endl;
71  }
72 }

References Exception, edm::ParameterSet::getParameter(), m_relativeto, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~MuonAlignmentOutputXML()

MuonAlignmentOutputXML::~MuonAlignmentOutputXML ( )
virtual

Definition at line 79 of file MuonAlignmentOutputXML.cc.

79 {}

◆ MuonAlignmentOutputXML() [2/2]

MuonAlignmentOutputXML::MuonAlignmentOutputXML ( const MuonAlignmentOutputXML )
privatedelete

Member Function Documentation

◆ operator=()

const MuonAlignmentOutputXML& MuonAlignmentOutputXML::operator= ( const MuonAlignmentOutputXML )
privatedelete

◆ write()

void MuonAlignmentOutputXML::write ( AlignableMuon alignableMuon,
const edm::EventSetup iSetup 
) const

Definition at line 97 of file MuonAlignmentOutputXML.cc.

97  {
98  std::ofstream outputFile(m_fileName.c_str());
99  outputFile << std::setprecision(m_precision) << std::fixed;
100 
101  outputFile << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
102  outputFile << "<?xml-stylesheet type=\"text/xml\" href=\"MuonAlignment.xsl\"?>" << std::endl;
103  outputFile << "<MuonAlignment>" << std::endl << std::endl;
104 
105  std::map<align::ID, CLHEP::HepSymMatrix> errors;
106  AlignmentErrorsExtended *dtErrors = alignableMuon->dtAlignmentErrorsExtended();
107  AlignmentErrorsExtended *cscErrors = alignableMuon->cscAlignmentErrorsExtended();
108  for (std::vector<AlignTransformErrorExtended>::const_iterator dtError = dtErrors->m_alignError.begin();
109  dtError != dtErrors->m_alignError.end();
110  ++dtError) {
111  errors[dtError->rawId()] = dtError->matrix();
112  }
113  for (std::vector<AlignTransformErrorExtended>::const_iterator cscError = cscErrors->m_alignError.begin();
114  cscError != cscErrors->m_alignError.end();
115  ++cscError) {
116  errors[cscError->rawId()] = cscError->matrix();
117  }
118 
119  align::Alignables barrels = alignableMuon->DTBarrel();
120  align::Alignables endcaps = alignableMuon->CSCEndcaps();
121 
122  if (m_relativeto == 1) {
124  iSetup.get<IdealGeometryRecord>().get(cpv);
125 
127  iSetup.get<IdealGeometryRecord>().get(mdc);
130 
131  auto dtGeometry = std::make_shared<DTGeometry>();
132  DTGeometryBuilder.build(*dtGeometry, &(*cpv), *mdc);
133 
134  auto boost_cscGeometry = std::make_shared<CSCGeometry>();
135  CSCGeometryBuilder.build(*boost_cscGeometry, &(*cpv), *mdc);
136 
137  AlignableMuon ideal_alignableMuon(&(*dtGeometry), &(*boost_cscGeometry));
138 
139  align::Alignables ideal_barrels = ideal_alignableMuon.DTBarrel();
140  align::Alignables ideal_endcaps = ideal_alignableMuon.CSCEndcaps();
141 
142  writeComponents(barrels, ideal_barrels, errors, outputFile, true, alignableMuon->objectIdProvider());
143  writeComponents(endcaps, ideal_endcaps, errors, outputFile, false, alignableMuon->objectIdProvider());
144  } else {
145  align::Alignables empty1, empty2;
146 
147  writeComponents(barrels, empty1, errors, outputFile, true, alignableMuon->objectIdProvider());
148  writeComponents(endcaps, empty2, errors, outputFile, false, alignableMuon->objectIdProvider());
149  }
150 
151  outputFile << "</MuonAlignment>" << std::endl;
152 }

References CSCGeometryBuilder::build(), AlignableMuon::cscAlignmentErrorsExtended(), AlignableMuon::CSCEndcaps(), AlignableMuon::dtAlignmentErrorsExtended(), AlignableMuon::DTBarrel(), MessageLogger_cfi::errors, alignBH_cfg::fixed, edm::EventSetup::get(), get, AlignmentErrorsExtended::m_alignError, m_fileName, m_precision, m_relativeto, AlignableMuon::objectIdProvider(), download_sqlite_cfg::outputFile, and writeComponents().

Referenced by pkg.AbstractPkg::generate(), querying.connection::write_and_commit(), and MuonAlignment::writeXML().

◆ writeComponents()

void MuonAlignmentOutputXML::writeComponents ( align::Alignables alignables,
align::Alignables ideals,
std::map< align::ID, CLHEP::HepSymMatrix > &  errors,
std::ofstream &  outputFile,
bool  DT,
const AlignableObjectId objectIdProvider 
) const
private

Definition at line 154 of file MuonAlignmentOutputXML.cc.

159  {
160  align::Alignables::const_iterator ideal = ideals.begin();
161  for (align::Alignables::const_iterator alignable = alignables.begin(); alignable != alignables.end(); ++alignable) {
162  if (m_survey && (*alignable)->survey() == nullptr) {
163  throw cms::Exception("Alignment") << "SurveyDets must all be defined when writing to XML" << std::endl;
164  } // now I can assume it's okay everywhere
165 
166  align::StructureType alignableObjectId = (*alignable)->alignableObjectId();
167 
168  if ((alignableObjectId == align::AlignableDTBarrel && !m_suppressDTBarrel) ||
169  (alignableObjectId == align::AlignableDTWheel && !m_suppressDTWheels) ||
170  (alignableObjectId == align::AlignableDTStation && !m_suppressDTStations) ||
171  (alignableObjectId == align::AlignableDTChamber && !m_suppressDTChambers) ||
172  (DT && alignableObjectId == align::AlignableDTSuperLayer && !m_suppressDTSuperLayers) ||
173  (DT && alignableObjectId == align::AlignableDetUnit && !m_suppressDTLayers) ||
174  (alignableObjectId == align::AlignableCSCEndcap && !m_suppressCSCEndcaps) ||
175  (alignableObjectId == align::AlignableCSCStation && !m_suppressCSCStations) ||
176  (alignableObjectId == align::AlignableCSCRing && !m_suppressCSCRings) ||
177  (alignableObjectId == align::AlignableCSCChamber && !m_suppressCSCChambers) ||
178  (!DT && alignableObjectId == align::AlignableDetUnit && !m_suppressCSCLayers)) {
179  unsigned int rawId = (*alignable)->geomDetId().rawId();
180  outputFile << "<operation>" << std::endl;
181 
182  if (DT) {
183  if (m_rawIds && rawId != 0) {
184  std::string typeName = objectIdProvider.idToString(alignableObjectId);
185  if (alignableObjectId == align::AlignableDTSuperLayer)
186  typeName = std::string("DTSuperLayer");
187  if (alignableObjectId == align::AlignableDetUnit)
188  typeName = std::string("DTLayer");
189  outputFile << " <" << typeName << " rawId=\"" << rawId << "\" />" << std::endl;
190  } else {
191  if (alignableObjectId == align::AlignableDetUnit) {
192  DTLayerId id(rawId);
193  outputFile << " <DTLayer wheel=\"" << id.wheel() << "\" station=\"" << id.station() << "\" sector=\""
194  << id.sector() << "\" superlayer=\"" << id.superlayer() << "\" layer=\"" << id.layer() << "\" />"
195  << std::endl;
196  } else if (alignableObjectId == align::AlignableDTSuperLayer) {
197  DTSuperLayerId id(rawId);
198  outputFile << " <DTSuperLayer wheel=\"" << id.wheel() << "\" station=\"" << id.station() << "\" sector=\""
199  << id.sector() << "\" superlayer=\"" << id.superlayer() << "\" />" << std::endl;
200  } else if (alignableObjectId == align::AlignableDTChamber) {
201  DTChamberId id(rawId);
202  outputFile << " <DTChamber wheel=\"" << id.wheel() << "\" station=\"" << id.station() << "\" sector=\""
203  << id.sector() << "\" />" << std::endl;
204  }
205 
206  else {
207  DTChamberId id((*alignable)->id());
208  if (alignableObjectId == align::AlignableDTStation) {
209  outputFile << " <DTStation wheel=\"" << id.wheel() << "\" station=\"" << id.station() << "\" />"
210  << std::endl;
211  } else if (alignableObjectId == align::AlignableDTWheel) {
212  outputFile << " <DTWheel wheel=\"" << id.wheel() << "\" />" << std::endl;
213  } else if (alignableObjectId == align::AlignableDTBarrel) {
214  outputFile << " <DTBarrel />" << std::endl;
215  } else
216  throw cms::Exception("Alignment") << "Unknown DT Alignable StructureType" << std::endl;
217  }
218 
219  } // end if not rawId
220  } // end if DT
221 
222  else { // CSC
223  if (m_rawIds && rawId != 0) {
224  std::string typeName = objectIdProvider.idToString(alignableObjectId);
225  if (alignableObjectId == align::AlignableDetUnit)
226  typeName = std::string("CSCLayer");
227  outputFile << " <" << typeName << " rawId=\"" << rawId << "\" />" << std::endl;
228  } else {
229  if (alignableObjectId == align::AlignableDetUnit) {
230  CSCDetId id(rawId);
231  outputFile << " <CSCLayer endcap=\"" << id.endcap() << "\" station=\"" << id.station() << "\" ring=\""
232  << id.ring() << "\" chamber=\"" << id.chamber() << "\" layer=\"" << id.layer() << "\" />"
233  << std::endl;
234  } else if (alignableObjectId == align::AlignableCSCChamber) {
235  CSCDetId id(rawId);
236  outputFile << " <CSCChamber endcap=\"" << id.endcap() << "\" station=\"" << id.station() << "\" ring=\""
237  << id.ring() << "\" chamber=\"" << id.chamber() << "\" />" << std::endl;
238  } else {
239  CSCDetId id((*alignable)->id());
240  if (alignableObjectId == align::AlignableCSCRing) {
241  outputFile << " <CSCRing endcap=\"" << id.endcap() << "\" station=\"" << id.station() << "\" ring=\""
242  << id.ring() << "\" />" << std::endl;
243  } else if (alignableObjectId == align::AlignableCSCStation) {
244  outputFile << " <CSCStation endcap=\"" << id.endcap() << "\" station=\"" << id.station() << "\" />"
245  << std::endl;
246  } else if (alignableObjectId == align::AlignableCSCEndcap) {
247  outputFile << " <CSCEndcap endcap=\"" << id.endcap() << "\" />" << std::endl;
248  } else
249  throw cms::Exception("Alignment") << "Unknown CSC Alignable StructureType" << std::endl;
250  }
251 
252  } // end if not rawId
253  } // end if CSC
254 
255  align::PositionType pos = (*alignable)->globalPosition();
256  align::RotationType rot = (*alignable)->globalRotation();
257 
258  if (m_survey) {
259  pos = (*alignable)->survey()->position();
260  rot = (*alignable)->survey()->rotation();
261  }
262 
263  std::string str_relativeto;
264  if (m_relativeto == 0) {
265  str_relativeto = std::string("none");
266  }
267 
268  else if (m_relativeto == 1) {
269  if (ideal == ideals.end() || (*ideal)->alignableObjectId() != alignableObjectId ||
270  (*ideal)->id() != (*alignable)->id()) {
271  throw cms::Exception("Alignment") << "AlignableMuon and ideal_AlignableMuon are out of sync!" << std::endl;
272  }
273 
274  align::PositionType idealPosition = (*ideal)->globalPosition();
275  align::RotationType idealRotation = (*ideal)->globalRotation();
276 
277  pos = align::PositionType(idealRotation * (pos.basicVector() - idealPosition.basicVector()));
278  rot = rot * idealRotation.transposed();
279 
280  str_relativeto = std::string("ideal");
281 
282  bool csc_debug = false;
283  if (csc_debug && !DT) {
284  CSCDetId id(rawId);
285  if (id.endcap() == 1 && id.station() == 1 && id.ring() == 1 && id.chamber() == 33) {
286  std::cout << " investigating " << id << std::endl
287  << (*alignable)->globalRotation() << std::endl
288  << std::endl
289  << idealRotation.transposed() << std::endl
290  << std::endl
291  << rot << std::endl
292  << std::endl;
293  double phix = atan2(rot.yz(), rot.zz());
294  double phiy = asin(-rot.xz());
295  double phiz = atan2(rot.xy(), rot.xx());
296 
297  std::cout << "phix=\"" << phix << "\" phiy=\"" << phiy << "\" phiz=\"" << phiz << std::endl;
298 
299  align::EulerAngles eulerAngles = align::toAngles((*alignable)->globalRotation());
300  std::cout << "alpha=\"" << eulerAngles(1) << "\" beta=\"" << eulerAngles(2) << "\" gamma=\""
301  << eulerAngles(3) << std::endl;
302  eulerAngles = align::toAngles(idealRotation);
303  std::cout << "alpha=\"" << eulerAngles(1) << "\" beta=\"" << eulerAngles(2) << "\" gamma=\""
304  << eulerAngles(3) << std::endl;
305  eulerAngles = align::toAngles(rot);
306  std::cout << "alpha=\"" << eulerAngles(1) << "\" beta=\"" << eulerAngles(2) << "\" gamma=\""
307  << eulerAngles(3) << std::endl;
308  }
309  }
310  }
311 
312  else if (m_relativeto == 2 && (*alignable)->mother() != nullptr) {
313  align::PositionType globalPosition = (*alignable)->mother()->globalPosition();
314  align::RotationType globalRotation = (*alignable)->mother()->globalRotation();
315 
316  pos = align::PositionType(globalRotation * (pos.basicVector() - globalPosition.basicVector()));
317  rot = rot * globalRotation.transposed();
318 
319  str_relativeto = std::string("container");
320  }
321 
322  else
323  assert(false); // can't happen: see constructor
324 
325  outputFile << " <setposition relativeto=\"" << str_relativeto << "\" "
326  << "x=\"" << pos.x() << "\" y=\"" << pos.y() << "\" z=\"" << pos.z() << "\" ";
327 
328  if (m_eulerAngles) {
329  align::EulerAngles eulerAngles = align::toAngles(rot);
330  outputFile << "alpha=\"" << eulerAngles(1) << "\" beta=\"" << eulerAngles(2) << "\" gamma=\"" << eulerAngles(3)
331  << "\" />" << std::endl;
332  }
333 
334  else {
335  // the angle convention originally used in alignment, also known as "non-standard Euler angles with a Z-Y-X convention"
336  // this also gets the sign convention right
337  double phix = atan2(rot.yz(), rot.zz());
338  double phiy = asin(-rot.xz());
339  double phiz = atan2(rot.xy(), rot.xx());
340 
341  outputFile << "phix=\"" << phix << "\" phiy=\"" << phiy << "\" phiz=\"" << phiz << "\" />" << std::endl;
342  }
343 
344  if (m_survey) {
345  align::ErrorMatrix err = (*alignable)->survey()->errors();
346 
347  outputFile << " <setsurveyerr"
348  << " xx=\"" << err(0, 0) << "\" xy=\"" << err(0, 1) << "\" xz=\"" << err(0, 2) << "\" xa=\""
349  << err(0, 3) << "\" xb=\"" << err(0, 4) << "\" xc=\"" << err(0, 5) << "\" yy=\"" << err(1, 1)
350  << "\" yz=\"" << err(1, 2) << "\" ya=\"" << err(1, 3) << "\" yb=\"" << err(1, 4) << "\" yc=\""
351  << err(1, 5) << "\" zz=\"" << err(2, 2) << "\" za=\"" << err(2, 3) << "\" zb=\"" << err(2, 4)
352  << "\" zc=\"" << err(2, 5) << "\" aa=\"" << err(3, 3) << "\" ab=\"" << err(3, 4) << "\" ac=\""
353  << err(3, 5) << "\" bb=\"" << err(4, 4) << "\" bc=\"" << err(4, 5) << "\" cc=\"" << err(5, 5)
354  << "\" />" << std::endl;
355  }
356 
357  else if (rawId != 0) {
358  CLHEP::HepSymMatrix err = errors[(*alignable)->id()];
359 
360  outputFile << " <setape xx=\"" << err(1, 1) << "\" xy=\"" << err(1, 2) << "\" xz=\"" << err(1, 3) << "\" xa=\""
361  << err(1, 4) << "\" xb=\"" << err(1, 5) << "\" xc=\"" << err(1, 6) << "\" yy=\"" << err(2, 2)
362  << "\" yz=\"" << err(2, 3) << "\" ya=\"" << err(2, 4) << "\" yb=\"" << err(2, 5) << "\" yc=\""
363  << err(2, 6) << "\" zz=\"" << err(3, 3) << "\" za=\"" << err(3, 4) << "\" zb=\"" << err(3, 5)
364  << "\" zc=\"" << err(3, 6) << "\" aa=\"" << err(4, 4) << "\" ab=\"" << err(4, 5) << "\" ac=\""
365  << err(4, 6) << "\" bb=\"" << err(5, 5) << "\" bc=\"" << err(5, 6) << "\" cc=\"" << err(6, 6)
366  << "\" />" << std::endl;
367  }
368 
369  outputFile << "</operation>" << std::endl << std::endl;
370 
371  } // end if not suppressed
372 
373  // write superstructures before substructures: this is important because <setape> overwrites all substructures' APEs
374  if (ideal != ideals.end()) {
375  align::Alignables components = (*alignable)->components();
376  align::Alignables ideal_components = (*ideal)->components();
377  writeComponents(components, ideal_components, errors, outputFile, DT, objectIdProvider);
378  ++ideal; // important for synchronization in the "for" loop!
379  } else {
380  align::Alignables components = (*alignable)->components();
382  writeComponents(components, dummy, errors, outputFile, DT, objectIdProvider);
383  }
384 
385  } // end loop over alignables
386 }

References align::AlignableCSCChamber, align::AlignableCSCEndcap, align::AlignableCSCRing, align::AlignableCSCStation, align::AlignableDetUnit, align::AlignableDTBarrel, align::AlignableDTChamber, align::AlignableDTStation, align::AlignableDTSuperLayer, align::AlignableDTWheel, cms::cuda::assert(), PV3DBase< T, PVType, FrameType >::basicVector(), relativeConstraints::chamber, makeMuonMisalignmentScenario::components, gather_cfg::cout, GeomDetEnumerators::DT, makeMuonMisalignmentScenario::endcap, runTheMatrix::err, Exception, triggerObjects_cff::id, AlignableObjectId::idToString(), m_eulerAngles, m_rawIds, m_relativeto, m_suppressCSCChambers, m_suppressCSCEndcaps, m_suppressCSCLayers, m_suppressCSCRings, m_suppressCSCStations, m_suppressDTBarrel, m_suppressDTChambers, m_suppressDTLayers, m_suppressDTStations, m_suppressDTSuperLayers, m_suppressDTWheels, m_survey, download_sqlite_cfg::outputFile, relativeConstraints::ring, makeMuonMisalignmentScenario::rot, relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, align::toAngles(), TkRotation< T >::transposed(), and dqmiodumpindices::typeName.

Referenced by write().

Member Data Documentation

◆ m_eulerAngles

bool MuonAlignmentOutputXML::m_eulerAngles
private

Definition at line 63 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_fileName

std::string MuonAlignmentOutputXML::m_fileName
private

Definition at line 61 of file MuonAlignmentOutputXML.h.

Referenced by write().

◆ m_precision

int MuonAlignmentOutputXML::m_precision
private

Definition at line 64 of file MuonAlignmentOutputXML.h.

Referenced by write().

◆ m_rawIds

bool MuonAlignmentOutputXML::m_rawIds
private

Definition at line 63 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_relativeto

int MuonAlignmentOutputXML::m_relativeto
private

Definition at line 62 of file MuonAlignmentOutputXML.h.

Referenced by MuonAlignmentOutputXML(), write(), and writeComponents().

◆ m_suppressCSCChambers

bool MuonAlignmentOutputXML::m_suppressCSCChambers
private

Definition at line 67 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressCSCEndcaps

bool MuonAlignmentOutputXML::m_suppressCSCEndcaps
private

Definition at line 67 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressCSCLayers

bool MuonAlignmentOutputXML::m_suppressCSCLayers
private

Definition at line 67 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressCSCRings

bool MuonAlignmentOutputXML::m_suppressCSCRings
private

Definition at line 67 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressCSCStations

bool MuonAlignmentOutputXML::m_suppressCSCStations
private

Definition at line 67 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTBarrel

bool MuonAlignmentOutputXML::m_suppressDTBarrel
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTChambers

bool MuonAlignmentOutputXML::m_suppressDTChambers
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTLayers

bool MuonAlignmentOutputXML::m_suppressDTLayers
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTStations

bool MuonAlignmentOutputXML::m_suppressDTStations
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTSuperLayers

bool MuonAlignmentOutputXML::m_suppressDTSuperLayers
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_suppressDTWheels

bool MuonAlignmentOutputXML::m_suppressDTWheels
private

Definition at line 65 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

◆ m_survey

bool MuonAlignmentOutputXML::m_survey
private

Definition at line 63 of file MuonAlignmentOutputXML.h.

Referenced by writeComponents().

align::toAngles
EulerAngles toAngles(const RotationType &)
Convert rotation matrix to angles about x-, y-, z-axes (frame rotation).
Definition: Utilities.cc:8
TkRotation< Scalar >
DTSuperLayerId
Definition: DTSuperLayerId.h:12
AlignableMuon::dtAlignmentErrorsExtended
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
Definition: AlignableMuon.cc:426
DTGeometryBuilder
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
MuonAlignmentOutputXML::m_suppressCSCLayers
bool m_suppressCSCLayers
Definition: MuonAlignmentOutputXML.h:67
MuonAlignmentOutputXML::m_suppressDTChambers
bool m_suppressDTChambers
Definition: MuonAlignmentOutputXML.h:65
relativeConstraints.station
station
Definition: relativeConstraints.py:67
DTGeometryBuilderFromDDD
Definition: DTGeometryBuilderFromDDD.h:31
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos
Definition: PixelAliasList.h:18
align::PositionType
Point3DBase< Scalar, GlobalTag > PositionType
Definition: Definitions.h:28
MuonAlignmentOutputXML::m_eulerAngles
bool m_eulerAngles
Definition: MuonAlignmentOutputXML.h:63
MessageLogger_cfi.errors
errors
Definition: MessageLogger_cfi.py:18
cms::cuda::assert
assert(be >=bs)
align::ErrorMatrix
math::Error< 6 >::type ErrorMatrix
Definition: Definitions.h:37
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
align::AlignableCSCStation
Definition: StructureType.h:80
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
align::AlignableDTChamber
Definition: StructureType.h:76
MuonAlignmentOutputXML::m_rawIds
bool m_rawIds
Definition: MuonAlignmentOutputXML.h:63
MuonAlignmentOutputXML::m_relativeto
int m_relativeto
Definition: MuonAlignmentOutputXML.h:62
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
MuonAlignmentOutputXML::m_suppressCSCEndcaps
bool m_suppressCSCEndcaps
Definition: MuonAlignmentOutputXML.h:67
download_sqlite_cfg.outputFile
outputFile
Definition: download_sqlite_cfg.py:5
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
align::AlignableDTSuperLayer
Definition: StructureType.h:77
align::AlignableCSCEndcap
Definition: StructureType.h:79
errors
Definition: errors.py:1
edm::ESHandle
Definition: DTSurvey.h:22
MuonAlignmentOutputXML::m_survey
bool m_survey
Definition: MuonAlignmentOutputXML.h:63
CSCGeometryBuilder::build
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
Definition: CSCGeometryBuilder.cc:17
Point3DBase< Scalar, GlobalTag >
AlignableMuon::DTBarrel
align::Alignables DTBarrel()
Definition: AlignableMuon.cc:326
DTLayerId
Definition: DTLayerId.h:12
AlignableMuon::objectIdProvider
const AlignableObjectId & objectIdProvider() const
Return muon alignable object ID provider derived from the muon system geometry.
Definition: AlignableMuon.h:77
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
align::StructureType
StructureType
Definition: StructureType.h:16
dqmiodumpindices.typeName
typeName
Definition: dqmiodumpindices.py:33
GeomDetEnumerators::DT
Definition: GeomDetEnumerators.h:18
align::AlignableDetUnit
Definition: StructureType.h:19
align::AlignableDTStation
Definition: StructureType.h:75
MuonAlignmentOutputXML::m_suppressCSCChambers
bool m_suppressCSCChambers
Definition: MuonAlignmentOutputXML.h:67
runTheMatrix.err
err
Definition: runTheMatrix.py:288
CSCDetId
Definition: CSCDetId.h:26
AlignableMuon
Constructor of the full muon geometry.
Definition: AlignableMuon.h:33
MuonAlignmentOutputXML::writeComponents
void writeComponents(align::Alignables &alignables, align::Alignables &ideals, std::map< align::ID, CLHEP::HepSymMatrix > &errors, std::ofstream &outputFile, bool DT, const AlignableObjectId &) const
Definition: MuonAlignmentOutputXML.cc:154
align::AlignableCSCChamber
Definition: StructureType.h:82
get
#define get
align::EulerAngles
AlgebraicVector EulerAngles
Definition: Definitions.h:34
AlignmentErrorsExtended
Definition: AlignmentErrorsExtended.h:10
MuonAlignmentOutputXML::m_suppressDTStations
bool m_suppressDTStations
Definition: MuonAlignmentOutputXML.h:65
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
PV3DBase::basicVector
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
MuonAlignmentOutputXML::m_suppressDTBarrel
bool m_suppressDTBarrel
Definition: MuonAlignmentOutputXML.h:65
MuonAlignmentOutputXML::m_precision
int m_precision
Definition: MuonAlignmentOutputXML.h:64
align::AlignableDTBarrel
Definition: StructureType.h:73
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
align::AlignableDTWheel
Definition: StructureType.h:74
align::Alignables
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
AlignableMuon::CSCEndcaps
align::Alignables CSCEndcaps()
Definition: AlignableMuon.cc:369
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
CSCGeometryBuilderFromDDD
Definition: CSCGeometryBuilderFromDDD.h:30
makeMuonMisalignmentScenario.components
string components
Definition: makeMuonMisalignmentScenario.py:58
MuonAlignmentOutputXML::m_suppressCSCStations
bool m_suppressCSCStations
Definition: MuonAlignmentOutputXML.h:67
Exception
Definition: hltDiff.cc:246
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
MuonAlignmentOutputXML::m_suppressDTWheels
bool m_suppressDTWheels
Definition: MuonAlignmentOutputXML.h:65
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
TkRotation::transposed
TkRotation transposed() const
Definition: extTkRotation.h:161
AlignableObjectId::idToString
const char * idToString(align::StructureType type) const
Definition: AlignableObjectId.cc:259
AlignmentErrorsExtended::m_alignError
std::vector< AlignTransformErrorExtended > m_alignError
Definition: AlignmentErrorsExtended.h:19
MuonAlignmentOutputXML::m_suppressDTSuperLayers
bool m_suppressDTSuperLayers
Definition: MuonAlignmentOutputXML.h:65
DTChamberId
Definition: DTChamberId.h:14
dummy
Definition: DummySelector.h:38
AlignableMuon::cscAlignmentErrorsExtended
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
Definition: AlignableMuon.cc:445
align::AlignableCSCRing
Definition: StructureType.h:81
MuonAlignmentOutputXML::m_suppressCSCRings
bool m_suppressCSCRings
Definition: MuonAlignmentOutputXML.h:67
MuonAlignmentOutputXML::m_fileName
std::string m_fileName
Definition: MuonAlignmentOutputXML.h:61
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27
MuonAlignmentOutputXML::m_suppressDTLayers
bool m_suppressDTLayers
Definition: MuonAlignmentOutputXML.h:65