CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
PPSPixelTopologyESSource Class Reference

Loads PPSPixelTopology from a config file. More...

Inheritance diagram for PPSPixelTopologyESSource:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 PPSPixelTopologyESSource (const edm::ParameterSet &)
 
std::unique_ptr< PPSPixelTopologyproduce (const PPSPixelTopologyRcd &)
 
 ~PPSPixelTopologyESSource () override=default
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
bool concurrentFinder () const
 
const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
 EventSetupRecordIntervalFinder (const EventSetupRecordIntervalFinder &)=delete
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
bool nonconcurrentAndIOVNeedsUpdate (const eventsetup::EventSetupRecordKey &key, const IOVSyncValue &syncValue) const
 
const EventSetupRecordIntervalFinderoperator= (const EventSetupRecordIntervalFinder &)=delete
 
void resetInterval (const eventsetup::EventSetupRecordKey &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Protected Member Functions

void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
 sets infinite validity of this data More...
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Private Member Functions

std::unique_ptr< PPSPixelTopologyfillPPSPixelTopology ()
 Fill PPSPixelTopology object. More...
 
void setPPSPixelTopology (const edm::ParameterSet &)
 Set PPS Topology parameters to their values from config. More...
 

Private Attributes

double active_edge_sigma_
 
double dead_edge_width_
 
unsigned short no_of_pixels_
 
unsigned short no_of_pixels_simX_
 
unsigned short no_of_pixels_simY_
 
double phys_active_edge_dist_
 
double pitch_simX_
 
double pitch_simY_
 
std::string runType_
 
double simX_width_
 
double simY_width_
 
double thickness_
 

Additional Inherited Members

- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 

Detailed Description

Loads PPSPixelTopology from a config file.

Definition at line 34 of file PPSPixelTopologyESSource.cc.

Constructor & Destructor Documentation

◆ PPSPixelTopologyESSource()

PPSPixelTopologyESSource::PPSPixelTopologyESSource ( const edm::ParameterSet iConfig)

Definition at line 71 of file PPSPixelTopologyESSource.cc.

72  : runType_(""),
73  pitch_simY_(0.),
74  pitch_simX_(0.),
75  thickness_(0.),
78  no_of_pixels_(0.),
79  simX_width_(0.),
80  simY_width_(0.),
81  dead_edge_width_(0.),
84  setPPSPixelTopology(iConfig);
85  setWhatProduced(this);
86  findingRecord<PPSPixelTopologyRcd>();
87 }

References setPPSPixelTopology(), and edm::ESProducer::setWhatProduced().

◆ ~PPSPixelTopologyESSource()

PPSPixelTopologyESSource::~PPSPixelTopologyESSource ( )
overridedefault

Member Function Documentation

◆ fillDescriptions()

void PPSPixelTopologyESSource::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 153 of file PPSPixelTopologyESSource.cc.

153  {
155  desc.add<std::string>("RunType", "Run3");
156  desc.add<double>("PitchSimY", 150e-3);
157  desc.add<double>("PitchSimX", 100e-3);
158  desc.add<double>("thickness", 0.23);
159  desc.add<int>("noOfPixelSimX", 160);
160  desc.add<int>("noOfPixelSimY", 104);
161  desc.add<int>("noOfPixels", 160 * 104);
162  desc.add<double>("simXWidth", 16.6);
163  desc.add<double>("simYWidth", 16.2);
164  desc.add<double>("deadEdgeWidth", 200e-3);
165  desc.add<double>("activeEdgeSigma", 0.02);
166  desc.add<double>("physActiveEdgeDist", 0.150);
167 
168  descriptions.add("ppsPixelTopologyESSource", desc);
169 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fillPPSPixelTopology()

std::unique_ptr< PPSPixelTopology > PPSPixelTopologyESSource::fillPPSPixelTopology ( )
private

Fill PPSPixelTopology object.

Definition at line 118 of file PPSPixelTopologyESSource.cc.

118  {
119  auto p = std::make_unique<PPSPixelTopology>();
120 
121  p->setRunType(runType_);
122  p->setPitchSimY(pitch_simY_);
123  p->setPitchSimX(pitch_simX_);
124  p->setThickness(thickness_);
125  p->setNoPixelsSimX(no_of_pixels_simX_);
126  p->setNoPixelsSimY(no_of_pixels_simY_);
127  p->setNoPixels(no_of_pixels_);
128  p->setSimXWidth(simX_width_);
129  p->setSimYWidth(simY_width_);
130  p->setDeadEdgeWidth(dead_edge_width_);
131  p->setActiveEdgeSigma(active_edge_sigma_);
132  p->setPhysActiveEdgeDist(phys_active_edge_dist_);
133  p->setActiveEdgeX(simX_width_ / 2. - phys_active_edge_dist_);
134  p->setActiveEdgeY(simY_width_ / 2. - phys_active_edge_dist_);
135 
136  return p;
137 }

References active_edge_sigma_, dead_edge_width_, no_of_pixels_, no_of_pixels_simX_, no_of_pixels_simY_, AlCaHLTBitMon_ParallelJobs::p, phys_active_edge_dist_, pitch_simX_, pitch_simY_, runType_, simX_width_, simY_width_, and thickness_.

Referenced by produce().

◆ produce()

std::unique_ptr< PPSPixelTopology > PPSPixelTopologyESSource::produce ( const PPSPixelTopologyRcd )

Definition at line 91 of file PPSPixelTopologyESSource.cc.

91  {
92  auto topo = fillPPSPixelTopology();
93 
94  edm::LogInfo("PPS") << "PixelTopologyESSource::produce \n" << *topo;
95 
96  return topo;
97 }

References fillPPSPixelTopology().

◆ setIntervalFor()

void PPSPixelTopologyESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey key,
const edm::IOVSyncValue iosv,
edm::ValidityInterval oValidity 
)
overrideprotectedvirtual

sets infinite validity of this data

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 141 of file PPSPixelTopologyESSource.cc.

143  {
144  edm::LogInfo("PPS") << ">> PPSPixelTopologyESSource::setIntervalFor(" << key.name() << ")\n"
145  << " run=" << iosv.eventID().run() << ", event=" << iosv.eventID().event();
146 
148  oValidity = infinity;
149 }

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::EventID::event(), edm::IOVSyncValue::eventID(), infinity, crabWrapper::key, and edm::EventID::run().

◆ setPPSPixelTopology()

void PPSPixelTopologyESSource::setPPSPixelTopology ( const edm::ParameterSet iConfig)
private

Set PPS Topology parameters to their values from config.

Definition at line 101 of file PPSPixelTopologyESSource.cc.

101  {
102  runType_ = iConfig.getParameter<std::string>("RunType");
103  pitch_simY_ = iConfig.getParameter<double>("PitchSimY");
104  pitch_simX_ = iConfig.getParameter<double>("PitchSimX");
105  thickness_ = iConfig.getParameter<double>("thickness");
106  no_of_pixels_simX_ = iConfig.getParameter<int>("noOfPixelSimX");
107  no_of_pixels_simY_ = iConfig.getParameter<int>("noOfPixelSimY");
108  no_of_pixels_ = iConfig.getParameter<int>("noOfPixels");
109  simX_width_ = iConfig.getParameter<double>("simXWidth");
110  simY_width_ = iConfig.getParameter<double>("simYWidth");
111  dead_edge_width_ = iConfig.getParameter<double>("deadEdgeWidth");
112  active_edge_sigma_ = iConfig.getParameter<double>("activeEdgeSigma");
113  phys_active_edge_dist_ = iConfig.getParameter<double>("physActiveEdgeDist");
114 }

References active_edge_sigma_, dead_edge_width_, edm::ParameterSet::getParameter(), no_of_pixels_, no_of_pixels_simX_, no_of_pixels_simY_, phys_active_edge_dist_, pitch_simX_, pitch_simY_, runType_, simX_width_, simY_width_, AlCaHLTBitMon_QueryRunRegistry::string, and thickness_.

Referenced by PPSPixelTopologyESSource().

Member Data Documentation

◆ active_edge_sigma_

double PPSPixelTopologyESSource::active_edge_sigma_
private

Definition at line 69 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ dead_edge_width_

double PPSPixelTopologyESSource::dead_edge_width_
private

Definition at line 68 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ no_of_pixels_

unsigned short PPSPixelTopologyESSource::no_of_pixels_
private

Definition at line 65 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ no_of_pixels_simX_

unsigned short PPSPixelTopologyESSource::no_of_pixels_simX_
private

Definition at line 63 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ no_of_pixels_simY_

unsigned short PPSPixelTopologyESSource::no_of_pixels_simY_
private

Definition at line 64 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ phys_active_edge_dist_

double PPSPixelTopologyESSource::phys_active_edge_dist_
private

Definition at line 70 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ pitch_simX_

double PPSPixelTopologyESSource::pitch_simX_
private

Definition at line 61 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ pitch_simY_

double PPSPixelTopologyESSource::pitch_simY_
private

Definition at line 60 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ runType_

std::string PPSPixelTopologyESSource::runType_
private

Definition at line 59 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ simX_width_

double PPSPixelTopologyESSource::simX_width_
private

Definition at line 66 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ simY_width_

double PPSPixelTopologyESSource::simY_width_
private

Definition at line 67 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

◆ thickness_

double PPSPixelTopologyESSource::thickness_
private

Definition at line 62 of file PPSPixelTopologyESSource.cc.

Referenced by fillPPSPixelTopology(), and setPPSPixelTopology().

PPSPixelTopologyESSource::runType_
std::string runType_
Definition: PPSPixelTopologyESSource.cc:59
PPSPixelTopologyESSource::dead_edge_width_
double dead_edge_width_
Definition: PPSPixelTopologyESSource.cc:68
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::ValidityInterval
Definition: ValidityInterval.h:28
PPSPixelTopologyESSource::simY_width_
double simY_width_
Definition: PPSPixelTopologyESSource.cc:67
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
infinity
const double infinity
Definition: CSCChamberFitter.cc:10
PPSPixelTopologyESSource::no_of_pixels_
unsigned short no_of_pixels_
Definition: PPSPixelTopologyESSource.cc:65
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PPSPixelTopologyESSource::no_of_pixels_simX_
unsigned short no_of_pixels_simX_
Definition: PPSPixelTopologyESSource.cc:63
edm::EventID::run
RunNumber_t run() const
Definition: EventID.h:38
edm::IOVSyncValue::eventID
const EventID & eventID() const
Definition: IOVSyncValue.h:40
PPSPixelTopologyESSource::fillPPSPixelTopology
std::unique_ptr< PPSPixelTopology > fillPPSPixelTopology()
Fill PPSPixelTopology object.
Definition: PPSPixelTopologyESSource.cc:118
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PPSPixelTopologyESSource::phys_active_edge_dist_
double phys_active_edge_dist_
Definition: PPSPixelTopologyESSource.cc:70
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
PPSPixelTopologyESSource::thickness_
double thickness_
Definition: PPSPixelTopologyESSource.cc:62
edm::EventID::event
EventNumber_t event() const
Definition: EventID.h:40
PPSPixelTopologyESSource::no_of_pixels_simY_
unsigned short no_of_pixels_simY_
Definition: PPSPixelTopologyESSource.cc:64
PPSPixelTopologyESSource::active_edge_sigma_
double active_edge_sigma_
Definition: PPSPixelTopologyESSource.cc:69
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
PPSPixelTopologyESSource::setPPSPixelTopology
void setPPSPixelTopology(const edm::ParameterSet &)
Set PPS Topology parameters to their values from config.
Definition: PPSPixelTopologyESSource.cc:101
PPSPixelTopologyESSource::simX_width_
double simX_width_
Definition: PPSPixelTopologyESSource.cc:66
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PPSPixelTopologyESSource::pitch_simX_
double pitch_simX_
Definition: PPSPixelTopologyESSource.cc:61
crabWrapper.key
key
Definition: crabWrapper.py:19
PPSPixelTopologyESSource::pitch_simY_
double pitch_simY_
Definition: PPSPixelTopologyESSource.cc:60
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37