CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
MuonAlignment Class Reference

#include <MuonAlignment.h>

Inheritance diagram for MuonAlignment:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 Get the analysis. More...
 
void beginJob ()
 Inizialize parameters for histo binning. More...
 
void copyAlignmentToSurvey (double shiftErr, double angleErr)
 
void copySurveyToAlignment ()
 
void endJob (void)
 Save the histos. More...
 
void fillGapsInSurvey (double shiftErr, double angleErr)
 
AlignableMuongetAlignableMuon ()
 
AlignableNavigatorgetAlignableNavigator ()
 
void moveAlignableGlobalCoord (DetId &, align::Scalars &, align::Scalars &)
 
void moveAlignableLocalCoord (DetId &, align::Scalars &, align::Scalars &)
 
 MuonAlignment (const edm::EventSetup &iSetup)
 
 MuonAlignment (const edm::EventSetup &iSetup, const MuonAlignmentInputMethod &input)
 
 MuonAlignment (const edm::ParameterSet &)
 Constructor. More...
 
void recursiveList (const align::Alignables &alignables, align::Alignables &theList)
 
void recursiveMap (const align::Alignables &alignables, std::map< align::ID, Alignable * > &theMap)
 
void recursiveStructureMap (const align::Alignables &alignables, std::map< std::pair< align::StructureType, align::ID >, Alignable * > &theMap)
 
void saveCSCSurveyToDB ()
 
void saveCSCtoDB ()
 
void saveDTSurveyToDB ()
 
void saveDTtoDB ()
 
void saveSurveyToDB ()
 
void saveToDB ()
 
void writeXML (const edm::ParameterSet &iConfig, const edm::EventSetup &iSetup)
 
 ~MuonAlignment ()
 
virtual ~MuonAlignment ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

RecHitVector doMatching (const reco::Track &, edm::Handle< DTRecSegment4DCollection > &, edm::Handle< CSCSegmentCollection > &, intDVector *, intDVector *, edm::ESHandle< GlobalTrackingGeometry > &)
 
void init ()
 
void recursiveCopySurveyToAlignment (Alignable *alignable)
 

Private Attributes

DQMStoredbe
 
align::Scalars displacements
 
bool doCSC
 
bool doDT
 
bool doSummary
 
MonitorElementhLocalAngleCSC
 
MonitorElementhLocalAngleDT
 
MonitorElementhLocalAngleRmsCSC
 
MonitorElementhLocalAngleRmsDT
 
MonitorElementhLocalPhiMeanCSC
 
MonitorElementhLocalPhiMeanDT
 
MonitorElementhLocalPhiRmsCSC
 
MonitorElementhLocalPhiRmsDT
 
MonitorElementhLocalPositionCSC
 
MonitorElementhLocalPositionDT
 
MonitorElementhLocalPositionRmsCSC
 
MonitorElementhLocalPositionRmsDT
 
MonitorElementhLocalThetaMeanCSC
 
MonitorElementhLocalThetaMeanDT
 
MonitorElementhLocalThetaRmsCSC
 
MonitorElementhLocalThetaRmsDT
 
MonitorElementhLocalXMeanCSC
 
MonitorElementhLocalXMeanDT
 
MonitorElementhLocalXRmsCSC
 
MonitorElementhLocalXRmsDT
 
MonitorElementhLocalYMeanCSC
 
MonitorElementhLocalYMeanDT
 
MonitorElementhLocalYRmsCSC
 
MonitorElementhLocalYRmsDT
 
double meanAngleRange
 
double meanPositionRange
 
std::string MEFolderName
 
std::string metname
 
unsigned int min1DTrackRecHitSize
 
unsigned int min4DTrackSegmentSize
 
unsigned int nbins
 
int numberOfHits
 
int numberOfTracks
 
edm::ParameterSet parameters
 
double resLocalXRangeStation1
 
double resLocalXRangeStation2
 
double resLocalXRangeStation3
 
double resLocalXRangeStation4
 
double resLocalYRangeStation1
 
double resLocalYRangeStation2
 
double resLocalYRangeStation3
 
double resLocalYRangeStation4
 
double resPhiRange
 
double resThetaRange
 
double rmsAngleRange
 
double rmsPositionRange
 
align::Scalars rotations
 
AlignableMuontheAlignableMuon
 
AlignableNavigatortheAlignableNavigator
 
std::string theCSCAlignRecordName
 
std::string theCSCErrorRecordName
 
std::string theCSCSurveyErrorRecordName
 
std::string theCSCSurveyRecordName
 
std::string theDTAlignRecordName
 
std::string theDTErrorRecordName
 
std::string theDTSurveyErrorRecordName
 
std::string theDTSurveyRecordName
 
edm::EDGetTokenT
< reco::TrackCollection
theMuonCollectionLabel
 
edm::EDGetTokenT
< CSCSegmentCollection
theRecHits4DTagCSC
 
edm::EDGetTokenT
< DTRecSegment4DCollection
theRecHits4DTagDT
 
std::stringstream topFolder
 
std::string trackRefitterType
 
std::vector< MonitorElement * > unitsLocalPhi
 
std::vector< MonitorElement * > unitsLocalTheta
 
std::vector< MonitorElement * > unitsLocalX
 
std::vector< MonitorElement * > unitsLocalY
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

The MuonAlignment helper class for alignment jobs

Date:
2011/06/07 19:28:47
Revision:
1.14
Author
Andre Sznajder - UERJ(Brazil)

DQM muon alignment analysis monitoring

Author
J. Fernandez - Univ. Oviedo Javie.nosp@m.r.Fe.nosp@m.rnand.nosp@m.ez@c.nosp@m.ern.c.nosp@m.h

Definition at line 20 of file MuonAlignment.h.

Constructor & Destructor Documentation

MuonAlignment::MuonAlignment ( const edm::EventSetup iSetup)

Definition at line 45 of file MuonAlignment.cc.

MuonAlignment::MuonAlignment ( const edm::EventSetup iSetup,
const MuonAlignmentInputMethod input 
)

Definition at line 58 of file MuonAlignment.cc.

MuonAlignment::~MuonAlignment ( )
inline

Definition at line 28 of file MuonAlignment.h.

References theAlignableMuon, and theAlignableNavigator.

28 { delete theAlignableMuon; delete theAlignableNavigator; }
AlignableNavigator * theAlignableNavigator
Definition: MuonAlignment.h:72
AlignableMuon * theAlignableMuon
Definition: MuonAlignment.h:70
MuonAlignment::MuonAlignment ( const edm::ParameterSet pSet)

Constructor.

Definition at line 11 of file MuonAlignment.cc.

virtual MuonAlignment::~MuonAlignment ( )
virtual

Destructor.

Member Function Documentation

void MuonAlignment::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Get the analysis.

Implements edm::EDAnalyzer.

Definition at line 220 of file MuonAlignment.cc.

void MuonAlignment::beginJob ( void  )
virtual

Inizialize parameters for histo binning.

Reimplemented from edm::EDAnalyzer.

Definition at line 59 of file MuonAlignment.cc.

void MuonAlignment::copyAlignmentToSurvey ( double  shiftErr,
double  angleErr 
)

Definition at line 139 of file MuonAlignment.cc.

void MuonAlignment::copySurveyToAlignment ( )

Definition at line 233 of file MuonAlignment.cc.

RecHitVector MuonAlignment::doMatching ( const reco::Track staTrack,
edm::Handle< DTRecSegment4DCollection > &  all4DSegmentsDT,
edm::Handle< CSCSegmentCollection > &  all4DSegmentsCSC,
intDVector indexCollectionDT,
intDVector indexCollectionCSC,
edm::ESHandle< GlobalTrackingGeometry > &  theTrackingGeometry 
)
private

Definition at line 468 of file MuonAlignment.cc.

void MuonAlignment::endJob ( void  )
virtual

Save the histos.

Reimplemented from edm::EDAnalyzer.

Definition at line 589 of file MuonAlignment.cc.

void MuonAlignment::fillGapsInSurvey ( double  shiftErr,
double  angleErr 
)

Definition at line 176 of file MuonAlignment.cc.

AlignableMuon* MuonAlignment::getAlignableMuon ( )
inline

Definition at line 30 of file MuonAlignment.h.

References theAlignableMuon.

30 { return theAlignableMuon; }
AlignableMuon * theAlignableMuon
Definition: MuonAlignment.h:70
AlignableNavigator* MuonAlignment::getAlignableNavigator ( )
inline

Definition at line 32 of file MuonAlignment.h.

References theAlignableNavigator.

Referenced by MuonGeometrySVGTemplate::analyze().

32 { return theAlignableNavigator; }
AlignableNavigator * theAlignableNavigator
Definition: MuonAlignment.h:72
void MuonAlignment::init ( )
private

Definition at line 31 of file MuonAlignment.cc.

void MuonAlignment::moveAlignableGlobalCoord ( DetId detid,
align::Scalars displacements,
align::Scalars rotations 
)

Definition at line 89 of file MuonAlignment.cc.

void MuonAlignment::moveAlignableLocalCoord ( DetId detid,
align::Scalars displacements,
align::Scalars rotations 
)

Definition at line 68 of file MuonAlignment.cc.

void MuonAlignment::recursiveCopySurveyToAlignment ( Alignable alignable)
private

Definition at line 200 of file MuonAlignment.cc.

void MuonAlignment::recursiveList ( const align::Alignables alignables,
align::Alignables theList 
)

Definition at line 109 of file MuonAlignment.cc.

void MuonAlignment::recursiveMap ( const align::Alignables alignables,
std::map< align::ID, Alignable * > &  theMap 
)

Definition at line 118 of file MuonAlignment.cc.

void MuonAlignment::recursiveStructureMap ( const align::Alignables alignables,
std::map< std::pair< align::StructureType, align::ID >, Alignable * > &  theMap 
)

Definition at line 130 of file MuonAlignment.cc.

void MuonAlignment::saveCSCSurveyToDB ( void  )

Definition at line 277 of file MuonAlignment.cc.

void MuonAlignment::saveCSCtoDB ( void  )

Definition at line 330 of file MuonAlignment.cc.

void MuonAlignment::saveDTSurveyToDB ( void  )

Definition at line 244 of file MuonAlignment.cc.

void MuonAlignment::saveDTtoDB ( void  )

Definition at line 315 of file MuonAlignment.cc.

void MuonAlignment::saveSurveyToDB ( void  )

Definition at line 310 of file MuonAlignment.cc.

void MuonAlignment::saveToDB ( void  )

Definition at line 345 of file MuonAlignment.cc.

Referenced by DTSurveyConvert::analyze().

void MuonAlignment::writeXML ( const edm::ParameterSet iConfig,
const edm::EventSetup iSetup 
)

Definition at line 240 of file MuonAlignment.cc.

Member Data Documentation

DQMStore* MuonAlignment::dbe
private

Definition at line 87 of file MuonAlignment.h.

align::Scalars MuonAlignment::displacements
private

Definition at line 66 of file MuonAlignment.h.

bool MuonAlignment::doCSC
private

Definition at line 145 of file MuonAlignment.h.

bool MuonAlignment::doDT
private

Definition at line 145 of file MuonAlignment.h.

bool MuonAlignment::doSummary
private

Definition at line 145 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalAngleCSC
private

Definition at line 105 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalAngleDT
private

Definition at line 91 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalAngleRmsCSC
private

Definition at line 106 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalAngleRmsDT
private

Definition at line 92 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPhiMeanCSC
private

Definition at line 112 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPhiMeanDT
private

Definition at line 98 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPhiRmsCSC
private

Definition at line 113 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPhiRmsDT
private

Definition at line 99 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPositionCSC
private

Definition at line 103 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPositionDT
private

Definition at line 89 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPositionRmsCSC
private

Definition at line 104 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalPositionRmsDT
private

Definition at line 90 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalThetaMeanCSC
private

Definition at line 114 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalThetaMeanDT
private

Definition at line 100 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalThetaRmsCSC
private

Definition at line 115 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalThetaRmsDT
private

Definition at line 101 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalXMeanCSC
private

Definition at line 108 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalXMeanDT
private

Definition at line 94 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalXRmsCSC
private

Definition at line 109 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalXRmsDT
private

Definition at line 95 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalYMeanCSC
private

Definition at line 110 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalYMeanDT
private

Definition at line 96 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalYRmsCSC
private

Definition at line 111 of file MuonAlignment.h.

MonitorElement* MuonAlignment::hLocalYRmsDT
private

Definition at line 97 of file MuonAlignment.h.

double MuonAlignment::meanAngleRange
private

Definition at line 139 of file MuonAlignment.h.

double MuonAlignment::meanPositionRange
private

Definition at line 139 of file MuonAlignment.h.

std::string MuonAlignment::MEFolderName
private

Definition at line 162 of file MuonAlignment.h.

std::string MuonAlignment::metname
private

Definition at line 120 of file MuonAlignment.h.

unsigned int MuonAlignment::min1DTrackRecHitSize
private

Definition at line 142 of file MuonAlignment.h.

unsigned int MuonAlignment::min4DTrackSegmentSize
private

Definition at line 142 of file MuonAlignment.h.

unsigned int MuonAlignment::nbins
private

Definition at line 142 of file MuonAlignment.h.

int MuonAlignment::numberOfHits
private

Definition at line 159 of file MuonAlignment.h.

int MuonAlignment::numberOfTracks
private

Definition at line 158 of file MuonAlignment.h.

edm::ParameterSet MuonAlignment::parameters
private

Definition at line 117 of file MuonAlignment.h.

double MuonAlignment::resLocalXRangeStation1
private

Definition at line 134 of file MuonAlignment.h.

double MuonAlignment::resLocalXRangeStation2
private

Definition at line 134 of file MuonAlignment.h.

double MuonAlignment::resLocalXRangeStation3
private

Definition at line 134 of file MuonAlignment.h.

double MuonAlignment::resLocalXRangeStation4
private

Definition at line 134 of file MuonAlignment.h.

double MuonAlignment::resLocalYRangeStation1
private

Definition at line 135 of file MuonAlignment.h.

double MuonAlignment::resLocalYRangeStation2
private

Definition at line 135 of file MuonAlignment.h.

double MuonAlignment::resLocalYRangeStation3
private

Definition at line 135 of file MuonAlignment.h.

double MuonAlignment::resLocalYRangeStation4
private

Definition at line 135 of file MuonAlignment.h.

double MuonAlignment::resPhiRange
private

Definition at line 136 of file MuonAlignment.h.

double MuonAlignment::resThetaRange
private

Definition at line 136 of file MuonAlignment.h.

double MuonAlignment::rmsAngleRange
private

Definition at line 139 of file MuonAlignment.h.

double MuonAlignment::rmsPositionRange
private

Definition at line 139 of file MuonAlignment.h.

align::Scalars MuonAlignment::rotations
private

Definition at line 68 of file MuonAlignment.h.

AlignableMuon* MuonAlignment::theAlignableMuon
private

Definition at line 70 of file MuonAlignment.h.

Referenced by getAlignableMuon(), and ~MuonAlignment().

AlignableNavigator* MuonAlignment::theAlignableNavigator
private

Definition at line 72 of file MuonAlignment.h.

Referenced by getAlignableNavigator(), and ~MuonAlignment().

std::string MuonAlignment::theCSCAlignRecordName
private

Definition at line 62 of file MuonAlignment.h.

std::string MuonAlignment::theCSCErrorRecordName
private

Definition at line 62 of file MuonAlignment.h.

std::string MuonAlignment::theCSCSurveyErrorRecordName
private

Definition at line 64 of file MuonAlignment.h.

std::string MuonAlignment::theCSCSurveyRecordName
private

Definition at line 64 of file MuonAlignment.h.

std::string MuonAlignment::theDTAlignRecordName
private

Definition at line 61 of file MuonAlignment.h.

std::string MuonAlignment::theDTErrorRecordName
private

Definition at line 61 of file MuonAlignment.h.

std::string MuonAlignment::theDTSurveyErrorRecordName
private

Definition at line 63 of file MuonAlignment.h.

std::string MuonAlignment::theDTSurveyRecordName
private

Definition at line 63 of file MuonAlignment.h.

edm::EDGetTokenT<reco::TrackCollection> MuonAlignment::theMuonCollectionLabel
private

Definition at line 125 of file MuonAlignment.h.

edm::EDGetTokenT<CSCSegmentCollection> MuonAlignment::theRecHits4DTagCSC
private

Definition at line 129 of file MuonAlignment.h.

edm::EDGetTokenT<DTRecSegment4DCollection> MuonAlignment::theRecHits4DTagDT
private

Definition at line 127 of file MuonAlignment.h.

std::stringstream MuonAlignment::topFolder
private

Definition at line 163 of file MuonAlignment.h.

std::string MuonAlignment::trackRefitterType
private

Definition at line 131 of file MuonAlignment.h.

std::vector<MonitorElement *> MuonAlignment::unitsLocalPhi
private

Definition at line 153 of file MuonAlignment.h.

std::vector<MonitorElement *> MuonAlignment::unitsLocalTheta
private

Definition at line 154 of file MuonAlignment.h.

std::vector<MonitorElement *> MuonAlignment::unitsLocalX
private

Definition at line 152 of file MuonAlignment.h.

std::vector<MonitorElement *> MuonAlignment::unitsLocalY
private

Definition at line 155 of file MuonAlignment.h.