#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 85 of file PCLTrackerAlProducer.h.
PCLTrackerAlProducer::PCLTrackerAlProducer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 62 of file PCLTrackerAlProducer.cc.
|
virtual |
Destructor.
Definition at line 108 of file PCLTrackerAlProducer.cc.
|
private |
Adds survey info to an Alignable.
Definition at line 931 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 242 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 533 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 742 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 798 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 836 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 631 of file PCLTrackerAlProducer.cc.
References MuonScenarioBuilder::applyScenario(), TrackerScenarioBuilder::applyScenario(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 135 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 177 of file PCLTrackerAlProducer.cc.
References edm::RunBase::id(), and edm::RunID::run().
|
private |
Creates the , which manages all Alignables.
Definition at line 599 of file PCLTrackerAlProducer.cc.
References AlignmentParameterStore_cfi::AlignmentParameterStore, and edm::ParameterSet::getParameter().
|
private |
Creates Alignables from the previously loaded Geometry
Definition at line 582 of file PCLTrackerAlProducer.cc.
References align::AlignableMuon.
|
private |
Creates the choosen alignment algorithm (specified in config-file)
Definition at line 319 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 359 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 498 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 336 of file PCLTrackerAlProducer.cc.
References Exception, reco::get(), edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 158 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 233 of file PCLTrackerAlProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 202 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 970 of file PCLTrackerAlProducer.cc.
Referenced by progressbar.ProgressBar::__next__().
|
private |
Creates Geometry and Alignables of the Tracker and initializes the AlignmentAlgorithm
Definition at line 449 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get(), and edm::ESHandle< class >::product().
|
private |
Initializes Beamspot of Alignables .
Definition at line 480 of file PCLTrackerAlProducer.cc.
|
private |
Makes unique RunRanges (specified in config-file)
Definition at line 1056 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 865 of file PCLTrackerAlProducer.cc.
References edm::EventSetup::get().
|
private |
Checks if one of the EventSetup-Records has changed.
Definition at line 395 of file PCLTrackerAlProducer.cc.
|
private |
Applies misalignment scenario to .
Definition at line 665 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 993 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 1178 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 1237 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 1122 of file PCLTrackerAlProducer.cc.
References align::DetectorGlobalPosition(), DetId::Muon, and DetId::Tracker.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
BeamSpot.
Definition at line 256 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 263 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 247 of file PCLTrackerAlProducer.h.
|
private |
ValueMap containing associtaion cluster-flag.
Definition at line 260 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 266 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 248 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 250 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 250 of file PCLTrackerAlProducer.h.
|
private |
GlobalPositions that might be read from DB, NULL otherwise.
Definition at line 230 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 237 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 249 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 245 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 219 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 223 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 228 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 220 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 226 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 291 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 221 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 225 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 235 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 234 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 243 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 297 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 295 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 296 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 224 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 233 of file PCLTrackerAlProducer.h.
|
private |
Map with tracks/trajectories.
Definition at line 254 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 262 of file PCLTrackerAlProducer.h.
|
private |
LAS beams in edm::Run (ignore if empty)
Definition at line 258 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 264 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 265 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 250 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 251 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 281 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 280 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 286 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 285 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 272 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 271 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 284 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 283 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 275 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 274 of file PCLTrackerAlProducer.h.
|
private |
Definition at line 276 of file PCLTrackerAlProducer.h.