Go to the documentation of this file. 1 #ifndef Alignment_CommonAlignmentProducer_AlignmentProducerBase_h
2 #define Alignment_CommonAlignmentProducer_AlignmentProducerBase_h
173 template <
class G,
class Rcd,
class ErrRcd>
177 template <
class G,
class DeformationRcd>
276 template <
class G,
class Rcd,
class ErrRcd>
292 <<
"@SUB=AlignmentProducerBase::applyDB"
293 <<
"\nTrying to apply " <<
record.key().name() <<
" with multiple IOVs in tag.\n"
294 <<
"Validity range is " <<
first.eventID().run() <<
" - " <<
last.eventID().run();
302 iSetup.
get<ErrRcd>().
get(alignmentErrors);
308 template <
class G,
class DeformationRcd>
313 const DeformationRcd&
record = iSetup.
get<DeformationRcd>();
320 <<
"@SUB=AlignmentProducerBase::applyDB"
321 <<
"\nTrying to apply " <<
record.key().name() <<
" with multiple IOVs in tag.\n"
322 <<
"Validity range is " <<
first.eventID().run() <<
" - " <<
last.eventID().run();
326 record.get(surfaceDeformations);
void initAlignmentAlgorithm(const edm::EventSetup &, bool update=false)
ESHandle< TrackerGeometry > geometry
edm::ESHandle< DTGeometry > muonDTGeometry_
void beginLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
begin lumi block
void createGeometries(const edm::EventSetup &, const TrackerTopology *)
Creates ideal geometry @trackerGeometry_ from IdealGeometryRecord.
edm::ESWatcher< DTSurveyErrorExtendedRcd > watchDTSurveyErrExtRcd_
std::unique_ptr< AlignableMuon > alignableMuon_
std::string idealGeometryLabel
edm::ESWatcher< CSCSurveyErrorExtendedRcd > watchCSCSurveyErrExtRcd_
void endRunImpl(const edm::Run &, const edm::EventSetup &)
end run
edm::ESWatcher< DTAlignmentErrorExtendedRcd > watchDTAlErrExtRcd_
void applyMisalignment()
Applies misalignment scenario to @alignableTracker_.
edm::ESWatcher< CSCSurveyRcd > watchCSCSurveyRcd_
void endLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
end lumi block
void createMonitors()
Creates the monitors.
std::unique_ptr< AlignableExtras > alignableExtras_
edm::ESWatcher< DTAlignmentRcd > watchDTAlRcd_
AlignmentProducerBase(const edm::ParameterSet &)
const IOVSyncValue & last() const
void simpleMisalignment(const align::Alignables &, const std::string &, float, float, bool)
Applies misalignment scenario to @alignableTracker_.
edm::ESWatcher< TrackerAlignmentErrorExtendedRcd > watchTrackerAlErrorExtRcd_
const IOVSyncValue & first() const
const Alignments * surveyValues_
const bool doMisalignmentScenario_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
virtual bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &)=0
const align::RunRanges uniqueRunRanges_
const edm::InputTag beamSpotTag_
BeamSpot.
std::shared_ptr< TrackerGeometry > trackerGeometry_
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
const TimeTypeSpecs timeTypeSpecs[]
edm::Handle< reco::BeamSpot > beamSpot_
void writeForRunRange(cond::Time_t)
edm::ESWatcher< TrackerSurveyErrorExtendedRcd > watchTkSurveyErrExtRcd_
void addSurveyInfo(Alignable *)
Adds survey info to an Alignable.
void applyDB(const G *, const edm::EventSetup &, const AlignTransform &) const
edm::ESWatcher< IdealGeometryRecord > watchIdealGeometryRcd_
edm::ESHandle< CSCGeometry > muonCSCGeometry_
CalibrationsOwner calibrations_
const bool checkDbAlignmentValidity_
virtual bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &)=0
const bool applyDbAlignment_
edm::ESWatcher< TrackerAlignmentRcd > watchTrackerAlRcd_
const int stNFixAlignables_
std::vector< std::unique_ptr< IntegratedCalibrationBase > > CalibrationsOwner
void createAlignables(const TrackerTopology *, bool update=false)
edm::ESWatcher< CSCAlignmentRcd > watchCSCAlRcd_
bool processEvent(const edm::Event &, const edm::EventSetup &)
Process event.
std::unique_ptr< AlignmentAlgorithmBase > alignmentAlgo_
std::unique_ptr< AlignableTracker > alignableTracker_
std::vector< std::unique_ptr< AlignmentMonitorBase > > AlignmentMonitors
void storeAlignmentsToDB()
Writes Alignments (i.e. Records) to database-file.
static const IOVSyncValue & endOfTime()
void createCalibrations()
Creates the calibrations.
virtual bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &)=0
void terminateProcessing(const edm::EventSetup *=nullptr)
Terminate processing of events.
unsigned long long Time_t
void buildParameterStore()
Creates the @alignmentParameterStore_, which manages all Alignables.
void readInSurveyRcds(const edm::EventSetup &)
Reads in survey records.
const bool enableAlignableUpdates_
void applyAlignmentsToGeometry()
edm::ESWatcher< TrackerSurfaceDeformationRcd > watchTrackerSurDeRcd_
bool setupChanged(const edm::EventSetup &)
Checks if one of the EventSetup-Records has changed.
AlignmentMonitors monitors_
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
virtual bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &)=0
edm::ESWatcher< CSCAlignmentErrorExtendedRcd > watchCSCAlErrExtRcd_
void attachSurfaceDeformations(const C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
const SurveyErrors * surveyErrors_
std::vector< Alignable * > Alignables
void initBeamSpot(const edm::Event &)
Initializes Beamspot @beamSpot_ of Alignables @alignableExtras_.
virtual ~AlignmentProducerBase() noexcept(false)
void applyAlignmentsToDB(const edm::EventSetup &)
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
edm::ESWatcher< GlobalPositionRcd > watchGlobalPositionRcd_
static const IOVSyncValue & beginOfTime()
std::unique_ptr< AlignmentParameterStore > alignmentParameterStore_
std::vector< RunRange > RunRanges
void createAlignmentAlgorithm()
Creates the choosen alignment algorithm.
std::unique_ptr< const Alignments > globalPositions_
GlobalPositions that might be read from DB, nullptr otherwise.
Interface/Base class for alignment algorithms, each alignment algorithm has to be derived from this c...
edm::ESWatcher< DTSurveyRcd > watchDTSurveyRcd_
const double stRandomRotation_
const double stRandomShift_
void startProcessing()
Start processing of events.
const bool saveDeformationsToDB_
void beginRunImpl(const edm::Run &, const edm::EventSetup &)
begin run
edm::ParameterSet config_
virtual bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &)=0
void writeDB(Alignments *, const std::string &, AlignmentErrorsExtended *, const std::string &, const AlignTransform *, cond::Time_t) const
Class to update a given geometry with a set of alignments.
edm::ESWatcher< TrackerSurveyRcd > watchTkSurveyRcd_