77 virtual void endJob()
override;
105 : m_tjTag(iConfig.getParameter<edm::
InputTag>(
"tjTkAssociationMapTag"))
106 , m_aliParamStoreCfg(iConfig.getParameter<edm::
ParameterSet>(
"ParameterStore"))
107 , m_alignableTracker(
NULL)
108 , m_alignableMuon(
NULL)
109 , m_alignmentParameterStore(
NULL)
111 std::vector<std::string> monitors = iConfig.
getUntrackedParameter<std::vector<std::string> >(
"monitors" );
113 for (std::vector<std::string>::const_iterator miter = monitors.begin(); miter != monitors.end(); ++miter) {
116 if (!newMonitor)
throw cms::Exception(
"BadConfig") <<
"Couldn't find monitor named " << *miter;
155 boost::shared_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(&(*theGeometricDet), *ptp, tTopo ));
161 boost::shared_ptr<DTGeometry> theMuonDT(
new DTGeometry);
162 DTGeometryBuilder.
build(theMuonDT, &(*cpv), *mdc);
163 boost::shared_ptr<CSCGeometry> theMuonCSC(
new CSCGeometry);
164 CSCGeometryBuilder.
build(theMuonCSC, &(*cpv), *mdc);
191 std::vector<Alignable*> empty_alignables;
197 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
200 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
201 (*monitor)->startingNewLoop();
218 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
219 (*monitor)->duringLoop(iEvent, iSetup, trajTracks);
238 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
241 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
242 (*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
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
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
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)