CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/Alignment/MuonAlignment/interface/MuonAlignmentOutputXML.h

Go to the documentation of this file.
00001 #ifndef Alignment_MuonAlignment_MuonAlignmentOutputXML_h
00002 #define Alignment_MuonAlignment_MuonAlignmentOutputXML_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     MuonAlignment
00006 // Class  :     MuonAlignmentOutputXML
00007 // 
00016 //
00017 // Original Author:  Jim Pivarski
00018 //         Created:  Fri Mar 14 18:02:28 CDT 2008
00019 // $Id: MuonAlignmentOutputXML.h,v 1.4 2011/06/07 19:28:47 khotilov Exp $
00020 //
00021 
00022 // system include files
00023 #include <fstream>
00024 
00025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00026 #include "FWCore/Framework/interface/EventSetup.h"
00027 
00028 // user include files
00029 #include "Alignment/MuonAlignment/interface/AlignableMuon.h"
00030 #include "CondFormats/Alignment/interface/AlignTransformError.h"
00031 
00032 // forward declarations
00033 
00034 class MuonAlignmentOutputXML {
00035 
00036    public:
00037       MuonAlignmentOutputXML(const edm::ParameterSet &iConfig);
00038       virtual ~MuonAlignmentOutputXML();
00039 
00040       // ---------- const member functions ---------------------
00041 
00042       // ---------- static member functions --------------------
00043 
00044       // ---------- member functions ---------------------------
00045 
00046       void write(AlignableMuon *alignableMuon, const edm::EventSetup &iSetup) const;
00047 
00048    private:
00049       MuonAlignmentOutputXML(const MuonAlignmentOutputXML&); // stop default
00050 
00051       const MuonAlignmentOutputXML& operator=(const MuonAlignmentOutputXML&); // stop default
00052 
00053       void writeComponents(align::Alignables &alignables, align::Alignables &ideals,
00054                            std::map<align::ID, CLHEP::HepSymMatrix>& errors, std::ofstream &outputFile, bool DT) const;
00055 
00056       // ---------- member data --------------------------------
00057       std::string m_fileName;
00058       int m_relativeto;
00059       bool m_survey, m_rawIds, m_eulerAngles;
00060       int m_precision;
00061       bool m_suppressDTBarrel, m_suppressDTWheels, m_suppressDTStations, m_suppressDTChambers, m_suppressDTSuperLayers, m_suppressDTLayers;
00062       bool m_suppressCSCEndcaps, m_suppressCSCStations, m_suppressCSCRings, m_suppressCSCChambers, m_suppressCSCLayers;
00063 };
00064 
00065 #endif