#include <PCLTrackerAlProducer.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
virtual void | beginJob () override |
virtual void | beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override |
virtual void | beginRun (const edm::Run &, const edm::EventSetup &) override |
virtual void | endJob () override |
virtual void | endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override |
virtual void | endRun (const edm::Run &, const edm::EventSetup &) override |
PCLTrackerAlProducer (const edm::ParameterSet &) | |
Constructor. More... | |
virtual | ~PCLTrackerAlProducer () |
Destructor. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
void | addSurveyInfo (Alignable *) |
Adds survey info to an Alignable. More... | |
void | applyAlignmentsToDB (const edm::EventSetup &) |
void | applyAlignmentsToGeometry () |
template<class G , class Rcd , class ErrRcd > | |
void | applyDB (G *, const edm::EventSetup &, const AlignTransform &) const |
template<class G , class DeformationRcd > | |
void | applyDB (G *, const edm::EventSetup &) const |
Applies DB constants for SurfaceDeformations. More... | |
void | applyMisalignment () |
Applies misalignment scenario to . More... | |
void | buildParameterStore () |
Creates the , which manages all Alignables. More... | |
void | createAlignables (const TrackerTopology *const) |
void | createAlignmentAlgorithm (const edm::ParameterSet &) |
Creates the choosen alignment algorithm (specified in config-file) More... | |
void | createCalibrations (const edm::ParameterSet &) |
Creates the calibrations (specified in config-file) More... | |
void | createGeometries (const edm::EventSetup &, const TrackerTopology *) |
Creates ideal geometry from IdealGeometryRecord. More... | |
void | createMonitors (const edm::ParameterSet &) |
Creates the monitors (specified in config-file) More... | |
void | finish () |
void | initAlignmentAlgorithm (const edm::EventSetup &) |
void | initBeamSpot (const edm::Event &) |
Initializes Beamspot of Alignables . More... | |
RunRanges | makeNonOverlappingRunRanges (const edm::VParameterSet &) |
Makes unique RunRanges (specified in config-file) More... | |
void | readInSurveyRcds (const edm::EventSetup &) |
Reads in survey records. More... | |
bool | setupChanged (const edm::EventSetup &) |
Checks if one of the EventSetup-Records has changed. More... | |
void | simpleMisalignment (const Alignables &, const std::string &, float, float, bool) |
Applies misalignment scenario to . More... | |
void | storeAlignmentsToDB () |
Writes Alignments (i.e. Records) to database-file. More... | |
void | writeDB (Alignments *, const std::string &, AlignmentErrorsExtended *, const std::string &, const AlignTransform *, cond::Time_t) const |
void | writeDB (AlignmentSurfaceDeformations *, const std::string &, cond::Time_t) const |
void | writeForRunRange (cond::Time_t) |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 84 of file PCLTrackerAlProducer.h.
PCLTrackerAlProducer::PCLTrackerAlProducer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 63 of file PCLTrackerAlProducer.cc.
|
virtual |
Destructor.
Definition at line 109 of file PCLTrackerAlProducer.cc.
|
private |
Adds survey info to an Alignable.
Definition at line 932 of file PCLTrackerAlProducer.cc.
References Alignable::alignableObjectId(), AlCaHLTBitMon_QueryRunRegistry::comp, Alignable::components(), relativeConstraints::error, Exception, i, Alignable::id(), AlignableSurface::length(), SurveyError::matrix(), SurveyError::rawId(), makeMuonMisalignmentScenario::rot, AlignableSurface::setLength(), Alignable::setSurvey(), AlignableSurface::setWidth(), SurveyError::structureType(), Alignable::surface(), and AlignableSurface::width().
|
overridevirtual |
Implements edm::EDAnalyzer.
Definition at line 243 of file PCLTrackerAlProducer.cc.
References ZMuMuCategoriesSequences_cff::eventInfo, edm::Event::getByToken(), and edm::EventBase::id().
|
private |
Applies Alignments from Database (GlobalPositionRcd) to Geometry
Definition at line 534 of file PCLTrackerAlProducer.cc.
References align::DetectorGlobalPosition(), edm::EventSetup::get(), DetId::Muon, GeneralSetup::setup(), and DetId::Tracker.
|
private |
Applies Alignments, AlignmentErrors and SurfaceDeformations to
Definition at line 743 of file PCLTrackerAlProducer.cc.
References GeometryAligner::applyAlignments(), and GeometryAligner::attachSurfaceDeformations().
|
private |
Applies DB constants belonging to (Err)Rcd to Geometry, taking into account 'globalPosition' correction.
Definition at line 799 of file PCLTrackerAlProducer.cc.
References GeometryAligner::applyAlignments(), edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), Exception, edm::ValidityInterval::first(), plotBeamSpotDB::first, callgraph::G, geometry, edm::EventSetup::get(), edm::ValidityInterval::last(), plotBeamSpotDB::last, record, and edm::EventID::run().
|
private |
Applies DB constants for SurfaceDeformations.
Definition at line 837 of file PCLTrackerAlProducer.cc.
References GeometryAligner::attachSurfaceDeformations(), edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), Exception, edm::ValidityInterval::first(), plotBeamSpotDB::first, callgraph::G, geometry, edm::EventSetup::get(), edm::ValidityInterval::last(), plotBeamSpotDB::last, record, and edm::EventID::run().
|
private |
Applies misalignment scenario to .
Definition at line 632 of file PCLTrackerAlProducer.cc.
References MuonScenarioBuilder::applyScenario(), TrackerScenarioBuilder::applyScenario(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 136 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 225 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 178 of file PCLTrackerAlProducer.cc.
References edm::RunBase::id(), and edm::RunID::run().
|
private |
Creates the , which manages all Alignables.
Definition at line 600 of file PCLTrackerAlProducer.cc.
References AlignmentParameterStore_cfi::AlignmentParameterStore, and edm::ParameterSet::getParameter().
|
private |
Creates Alignables from the previously loaded Geometry
Definition at line 583 of file PCLTrackerAlProducer.cc.
References align::AlignableMuon.
|
private |
Creates the choosen alignment algorithm (specified in config-file)
Definition at line 320 of file PCLTrackerAlProducer.cc.
References edm::ParameterSet::addUntrackedParameter(), Exception, reco::get(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Creates the calibrations (specified in config-file)
Definition at line 360 of file PCLTrackerAlProducer.cc.
References beamerCreator::create(), Exception, reco::get(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Creates ideal geometry from IdealGeometryRecord.
Definition at line 499 of file PCLTrackerAlProducer.cc.
References TrackerGeomBuilderFromGeometricDet::build(), CSCGeometryBuilderFromDDD::build(), CSCGeometryBuilder::build(), and edm::EventSetup::get().
|
private |
Creates the monitors (specified in config-file)
Definition at line 337 of file PCLTrackerAlProducer.cc.
References Exception, reco::get(), edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 159 of file PCLTrackerAlProducer.cc.
Referenced by o2o.O2ORunMgr::executeJob().
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 234 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 203 of file PCLTrackerAlProducer.cc.
References edm::Run::getByToken(), and edm::RunBase::id().
|
private |
Steers activities after end of job, terminates the AlignmentAlgorithm
Definition at line 971 of file PCLTrackerAlProducer.cc.
References MillePedeFileReader::read(), and MillePedeFileReader::storeAlignments().
Referenced by progressbar.ProgressBar::__next__().
|
private |
Creates Geometry and Alignables of the Tracker and initializes the AlignmentAlgorithm
Definition at line 450 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get(), and edm::ESHandle< class >::product().
|
private |
Initializes Beamspot of Alignables .
Definition at line 481 of file PCLTrackerAlProducer.cc.
|
private |
Makes unique RunRanges (specified in config-file)
Definition at line 1068 of file PCLTrackerAlProducer.cc.
References cond::TimeTypeSpecs::beginValue, cond::TimeTypeSpecs::endValue, plotBeamSpotDB::first, i, cond::runnumber, groupFilesInBlocks::temp, cond::timeTypeSpecs, and edm::tokenize().
|
private |
Reads in survey records.
Definition at line 866 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get().
|
private |
Checks if one of the EventSetup-Records has changed.
Definition at line 396 of file PCLTrackerAlProducer.cc.
|
private |
Applies misalignment scenario to .
Definition at line 666 of file PCLTrackerAlProducer.cc.
References funct::abs(), Alignable::alignmentParameters(), AlignmentParameterSelector::convertParamSel(), RigidBodyAlignmentParameters::dalpha, RigidBodyAlignmentParameters::dbeta, RigidBodyAlignmentParameters::dgamma, RigidBodyAlignmentParameters::dx, RigidBodyAlignmentParameters::dy, RigidBodyAlignmentParameters::dz, Exception, Alignable::move(), RigidBodyAlignmentParameters::N_PARAM, convertSQLitetoXML_cfg::output, alignCSCRings::r, random, Alignable::rotateInGlobalFrame(), Alignable::rotateInLocalFrame(), indexGen::s2, AlignmentParameters::selector(), Alignable::surface(), AlignableSurface::toGlobal(), and align::toMatrix().
|
private |
Writes Alignments (i.e. Records) to database-file.
Definition at line 1005 of file PCLTrackerAlProducer.cc.
References AlignmentParameters::parameters(), cond::runnumber, and cond::timeTypeSpecs.
|
private |
Writes Alignments and/or AlignmentErrors to DB for record names (removes *globalCoordinates before writing if non-null...). Takes over ownership of Alignments and AlignmentErrors.
Definition at line 1190 of file PCLTrackerAlProducer.cc.
References Exception, edm::Service< T >::isAvailable(), GeometryAligner::removeGlobalTransform(), AlignTransform::transform(), and cond::service::PoolDBOutputService::writeOne().
|
private |
Writes SurfaceDeformations (bows & kinks) to DB for given record name Takes over ownership of AlignmentSurfaceDeformations.
Definition at line 1249 of file PCLTrackerAlProducer.cc.
References Exception, edm::Service< T >::isAvailable(), and cond::service::PoolDBOutputService::writeOne().
|
private |
Writes Alignments and AlignmentErrors for all sub detectors and the given run number
Definition at line 1134 of file PCLTrackerAlProducer.cc.
References align::DetectorGlobalPosition(), DetId::Muon, and DetId::Tracker.
|
private |
Definition at line 246 of file PCLTrackerAlProducer.h.
|
private |
BeamSpot.
Definition at line 255 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 262 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 246 of file PCLTrackerAlProducer.h.
|
private |
ValueMap containing associtaion cluster-flag.
Definition at line 259 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 265 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
GlobalPositions that might be read from DB, NULL otherwise.
Definition at line 229 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 236 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 248 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 248 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 248 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 244 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 245 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 245 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 218 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 222 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 227 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 219 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 225 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 266 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 220 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 224 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 234 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 233 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 242 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 300 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 298 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 299 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 223 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 232 of file PCLTrackerAlProducer.h.
|
private |
Map with tracks/trajectories.
Definition at line 253 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 261 of file PCLTrackerAlProducer.h.
|
private |
LAS beams in edm::Run (ignore if empty)
Definition at line 257 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 263 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 264 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 250 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 285 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 284 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 292 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 291 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 283 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 282 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 290 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 289 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 276 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 275 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 288 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 287 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 279 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 278 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 280 of file PCLTrackerAlProducer.h.