#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 (const std::string &iProcessName, std::vector< const char * > &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 &) |
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 82 of file PCLTrackerAlProducer.h.
PCLTrackerAlProducer::PCLTrackerAlProducer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 61 of file PCLTrackerAlProducer.cc.
|
virtual |
Destructor.
Definition at line 99 of file PCLTrackerAlProducer.cc.
|
private |
Adds survey info to an Alignable.
Definition at line 922 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 233 of file PCLTrackerAlProducer.cc.
References ZMuMuCategoriesSequences_cff::eventInfo, edm::Event::getByLabel(), and edm::EventBase::id().
|
private |
Applies Alignments from Database (GlobalPositionRcd) to Geometry
Definition at line 524 of file PCLTrackerAlProducer.cc.
References align::DetectorGlobalPosition(), edm::EventSetup::get(), DetId::Muon, HcalObjRepresent::setup(), and DetId::Tracker.
|
private |
Applies Alignments, AlignmentErrors and SurfaceDeformations to
Definition at line 733 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 789 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(), prof2calltree::last, record, and edm::EventID::run().
|
private |
Applies DB constants for SurfaceDeformations.
Definition at line 827 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(), prof2calltree::last, record, and edm::EventID::run().
|
private |
Applies misalignment scenario to .
Definition at line 622 of file PCLTrackerAlProducer.cc.
References MuonScenarioBuilder::applyScenario(), TrackerScenarioBuilder::applyScenario(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 126 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 215 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 168 of file PCLTrackerAlProducer.cc.
References edm::RunBase::id(), and edm::RunID::run().
|
private |
Creates the , which manages all Alignables.
Definition at line 590 of file PCLTrackerAlProducer.cc.
References AlignmentParameterStore_cfi::AlignmentParameterStore, and edm::ParameterSet::getParameter().
|
private |
Creates Alignables from the previously loaded Geometry
Definition at line 573 of file PCLTrackerAlProducer.cc.
References align::AlignableMuon.
|
private |
Creates the choosen alignment algorithm (specified in config-file)
Definition at line 310 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 350 of file PCLTrackerAlProducer.cc.
References SurfaceDeformationFactory::create(), Exception, reco::get(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Creates ideal geometry from IdealGeometryRecord.
Definition at line 489 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 327 of file PCLTrackerAlProducer.cc.
References Exception, reco::get(), edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 149 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 224 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 193 of file PCLTrackerAlProducer.cc.
References edm::Run::getByLabel(), and edm::RunBase::id().
|
private |
Steers activities after end of job, terminates the AlignmentAlgorithm
Definition at line 961 of file PCLTrackerAlProducer.cc.
Referenced by progressbar.ProgressBar::__next__().
|
private |
Creates Geometry and Alignables of the Tracker and initializes the AlignmentAlgorithm
Definition at line 440 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get(), and edm::ESHandle< class >::product().
|
private |
Initializes Beamspot of Alignables .
Definition at line 471 of file PCLTrackerAlProducer.cc.
|
private |
Makes unique RunRanges (specified in config-file)
Definition at line 1047 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 856 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get().
|
private |
Checks if one of the EventSetup-Records has changed.
Definition at line 386 of file PCLTrackerAlProducer.cc.
|
private |
Applies misalignment scenario to .
Definition at line 656 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 984 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 1169 of file PCLTrackerAlProducer.cc.
References Exception, edm::Service< T >::isAvailable(), GeometryAligner::removeGlobalTransform(), cond::rpcobgas::time, 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 1228 of file PCLTrackerAlProducer.cc.
References Exception, edm::Service< T >::isAvailable(), cond::rpcobgas::time, and cond::service::PoolDBOutputService::writeOne().
|
private |
Writes Alignments and AlignmentErrors for all sub detectors and the given run number
Definition at line 1113 of file PCLTrackerAlProducer.cc.
References align::DetectorGlobalPosition(), DetId::Muon, and DetId::Tracker.
|
private |
Definition at line 244 of file PCLTrackerAlProducer.h.
|
private |
BeamSpot.
Definition at line 253 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 244 of file PCLTrackerAlProducer.h.
|
private |
ValueMap containing associtaion cluster-flag.
Definition at line 257 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 245 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
GlobalPositions that might be read from DB, NULL otherwise.
Definition at line 227 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 234 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 246 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 246 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 246 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 242 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 243 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 243 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 216 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 220 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 225 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 217 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 223 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 283 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 232 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 231 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 240 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 289 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 287 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 288 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 221 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 230 of file PCLTrackerAlProducer.h.
|
private |
Map with tracks/trajectories.
Definition at line 251 of file PCLTrackerAlProducer.h.
|
private |
LAS beams in edm::Run (ignore if empty)
Definition at line 255 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 248 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 273 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 272 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 280 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 279 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 271 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 270 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 278 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 277 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 264 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 263 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 267 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 266 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 268 of file PCLTrackerAlProducer.h.