74 virtual void endJob()
override;
102 : m_tjTag(iConfig.getParameter<edm::
InputTag>(
"tjTkAssociationMapTag"))
103 , m_aliParamStoreCfg(iConfig.getParameter<edm::
ParameterSet>(
"ParameterStore"))
104 , m_alignableTracker(
NULL)
105 , m_alignableMuon(
NULL)
106 , m_alignmentParameterStore(
NULL)
108 std::vector<std::string> monitors = iConfig.
getUntrackedParameter<std::vector<std::string> >(
"monitors" );
110 for (std::vector<std::string>::const_iterator miter = monitors.begin(); miter != monitors.end(); ++miter) {
113 if (!newMonitor)
throw cms::Exception(
"BadConfig") <<
"Couldn't find monitor named " << *miter;
152 boost::shared_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(&(*theGeometricDet), *ptp ));
158 boost::shared_ptr<DTGeometry> theMuonDT(
new DTGeometry);
159 DTGeometryBuilder.
build(theMuonDT, &(*cpv), *mdc);
160 boost::shared_ptr<CSCGeometry> theMuonCSC(
new CSCGeometry);
161 CSCGeometryBuilder.
build(theMuonCSC, &(*cpv), *mdc);
188 std::vector<Alignable*> empty_alignables;
194 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
197 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
198 (*monitor)->startingNewLoop();
215 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
216 (*monitor)->duringLoop(iEvent, iSetup, trajTracks);
235 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
238 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
239 (*monitor)->endOfJob();
T getUntrackedParameter(std::string const &, T const &) const
AlignmentMonitorAsAnalyzer(const edm::ParameterSet &)
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
~AlignmentMonitorAsAnalyzer()
friend struct const_iterator
Class to update a given geometry with a set of alignments.
#define DEFINE_FWK_MODULE(type)
edm::ParameterSet m_aliParamStoreCfg
virtual void beginJob() override
void build(boost::shared_ptr< CSCGeometry > geom, const DDCompactView *fv, const MuonDDDConstants &muonConstants)
Build the geometry.
tuple AlignmentParameterStore
std::vector< AlignmentMonitorBase * > m_monitors
const edm::EventSetup * m_lastSetup
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
AlignmentParameterStore * m_alignmentParameterStore
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
void build(boost::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
T const * product() const
virtual void endJob() override
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp)
AlignableTracker * m_alignableTracker
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
AlignableMuon * m_alignableMuon
Constructor of the full muon geometry.
std::pair< const Trajectory *, const reco::Track * > ConstTrajTrackPair
T get(const Candidate &c)