71 virtual void endJob()
override;
100 : m_tjTag(iConfig.getParameter<edm::
InputTag>(
"tjTkAssociationMapTag"))
101 , m_aliParamStoreCfg(iConfig.getParameter<edm::
ParameterSet>(
"ParameterStore")),
103 , m_alignableTracker(
NULL)
104 , m_alignableMuon(
NULL)
105 , m_alignmentParameterStore(
NULL)
107 std::vector<std::string> monitors = iConfig.
getUntrackedParameter<std::vector<std::string> >(
"monitors" );
109 for (std::vector<std::string>::const_iterator miter = monitors.begin(); miter != monitors.end(); ++miter) {
112 if (!newMonitor)
throw cms::Exception(
"BadConfig") <<
"Couldn't find monitor named " << *miter;
149 boost::shared_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(&(*theGeometricDet),
m_pSet ));
155 boost::shared_ptr<DTGeometry> theMuonDT(
new DTGeometry);
156 DTGeometryBuilder.
build(theMuonDT, &(*cpv), *mdc);
157 boost::shared_ptr<CSCGeometry> theMuonCSC(
new CSCGeometry);
158 CSCGeometryBuilder.
build(theMuonCSC, &(*cpv), *mdc);
185 std::vector<Alignable*> empty_alignables;
191 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
194 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
195 (*monitor)->startingNewLoop();
212 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
213 (*monitor)->duringLoop(iEvent, iSetup, trajTracks);
232 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
235 for (std::vector<AlignmentMonitorBase*>::const_iterator monitor =
m_monitors.begin(); monitor !=
m_monitors.end(); ++monitor) {
236 (*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)
TrackerGeometry * build(const GeometricDet *gd, const edm::ParameterSet &pSet)
edm::ParameterSet m_aliParamStoreCfg
virtual void beginJob() override
const edm::ParameterSet m_pSet
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)