87 std::vector<std::unique_ptr<AlignmentMonitorBase>>
m_monitors;
120 : m_tjTag(iConfig.getParameter<edm::
InputTag>(
"tjTkAssociationMapTag")),
121 m_aliParamStoreCfg(iConfig.getParameter<edm::
ParameterSet>(
"ParameterStore")),
139 std::vector<std::string> monitors = iConfig.
getUntrackedParameter<std::vector<std::string>>(
"monitors");
141 for (
auto const&
mon : monitors) {
163 std::shared_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(geom, ptitp, ptp, tTopo));
181 &(*dtAlignmentErrorsExtended),
188 &(*cscAlignmentErrorsExtended),
195 &(*gemAlignmentErrorsExtended),
202 m_alignableMuon = std::make_unique<AlignableMuon>(&(*theMuonDT), &(*theMuonCSC), &(*theMuonGEM));
206 monitor->beginOfJob(
m_alignableTracker.get(), m_alignableMuon.get(), m_alignmentParameterStore.get());
208 for (
auto const& monitor : m_monitors) {
209 monitor->startingNewLoop();
221 for (
const auto& iPair : *trajTracksMap) {
227 monitor->duringLoop(iEvent, iSetup, trajTracks);
237 monitor->endOfLoop();
239 for (
auto const& monitor : m_monitors) {
const edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd > esTokenPTP_
T getUntrackedParameter(std::string const &, T const &) const
const edm::ESGetToken< GeometricDet, IdealGeometryRecord > esTokenGeomDet_
const edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd > esTokenTkAPE_
AlignmentMonitorAsAnalyzer(const edm::ParameterSet &)
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
const edm::ESGetToken< Alignments, GlobalPositionRcd > esTokenGPR_
Class to update a given geometry with a set of alignments.
#define DEFINE_FWK_MODULE(type)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerAdditionalParametersPerDet *ptitp, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
const edm::ESGetToken< AlignmentErrorsExtended, CSCAlignmentErrorExtendedRcd > esTokenCSCAPE_
edm::ParameterSet m_aliParamStoreCfg
const edm::ESGetToken< GEMGeometry, MuonGeometryRecord > esTokenGEM_
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > esTokenCSC_
~AlignmentMonitorAsAnalyzer() override=default
const edm::ESGetToken< PTrackerAdditionalParametersPerDet, PTrackerAdditionalParametersPerDetRcd > esTokenPtitp_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
const edm::ESGetToken< Alignments, DTAlignmentRcd > esTokenDTAl_
bool getData(T &iHolder) const
const edm::ESGetToken< Alignments, CSCAlignmentRcd > esTokenCSCAl_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< AlignableMuon > m_alignableMuon
const edm::ESGetToken< AlignmentErrorsExtended, GEMAlignmentErrorExtendedRcd > esTokenGEMAPE_
std::unique_ptr< AlignableTracker > m_alignableTracker
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > esTokenDT_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > esTokenTTopo_
std::vector< Alignable * > Alignables
std::vector< std::unique_ptr< AlignmentMonitorBase > > m_monitors
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
std::unique_ptr< AlignmentParameterStore > m_alignmentParameterStore
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const edm::ESGetToken< AlignmentErrorsExtended, DTAlignmentErrorExtendedRcd > esTokenDTAPE_
const edm::ESGetToken< Alignments, TrackerAlignmentRcd > esTokenTkAl_
std::pair< const Trajectory *, const reco::Track * > ConstTrajTrackPair
const edm::ESGetToken< Alignments, GEMAlignmentRcd > esTokenGEMAl_