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