CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
FakeCaloAlignmentEP Class Reference
Inheritance diagram for FakeCaloAlignmentEP:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Types

using ReturnAli = std::unique_ptr< Alignments >
 
using ReturnAliErr = std::unique_ptr< AlignmentErrors >
 
typedef AlignTransform::Rotation Rot
 
typedef AlignTransform::Translation Trl
 

Public Member Functions

 FakeCaloAlignmentEP (const edm::ParameterSet &)
 
ReturnAli produceCastorAli (const CastorAlignmentRcd &)
 
ReturnAliErr produceCastorAliErr (const CastorAlignmentErrorExtendedRcd &)
 
ReturnAli produceEBAli (const EBAlignmentRcd &)
 
ReturnAliErr produceEBAliErr (const EBAlignmentErrorExtendedRcd &)
 
ReturnAli produceEEAli (const EEAlignmentRcd &)
 
ReturnAliErr produceEEAliErr (const EEAlignmentErrorExtendedRcd &)
 
ReturnAli produceESAli (const ESAlignmentRcd &)
 
ReturnAliErr produceESAliErr (const ESAlignmentErrorExtendedRcd &)
 
ReturnAli produceHBAli (const HBAlignmentRcd &)
 
ReturnAliErr produceHBAliErr (const HBAlignmentErrorExtendedRcd &)
 
ReturnAli produceHEAli (const HEAlignmentRcd &)
 
ReturnAliErr produceHEAliErr (const HEAlignmentErrorExtendedRcd &)
 
ReturnAli produceHFAli (const HFAlignmentRcd &)
 
ReturnAliErr produceHFAliErr (const HFAlignmentErrorExtendedRcd &)
 
ReturnAli produceHOAli (const HOAlignmentRcd &)
 
ReturnAliErr produceHOAliErr (const HOAlignmentErrorExtendedRcd &)
 
ReturnAli produceZdcAli (const ZDCAlignmentRcd &)
 
ReturnAliErr produceZdcAliErr (const ZDCAlignmentErrorExtendedRcd &)
 
 ~FakeCaloAlignmentEP () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: Producer of fake alignment data for calo geometries

Implementation: The alignment objects are filled with fixed alignments.

Definition at line 57 of file FakeCaloAlignmentEP.cc.

Member Typedef Documentation

◆ ReturnAli

using FakeCaloAlignmentEP::ReturnAli = std::unique_ptr<Alignments>

Definition at line 59 of file FakeCaloAlignmentEP.cc.

◆ ReturnAliErr

Definition at line 60 of file FakeCaloAlignmentEP.cc.

◆ Rot

Definition at line 63 of file FakeCaloAlignmentEP.cc.

◆ Trl

Definition at line 62 of file FakeCaloAlignmentEP.cc.

Constructor & Destructor Documentation

◆ FakeCaloAlignmentEP()

FakeCaloAlignmentEP::FakeCaloAlignmentEP ( const edm::ParameterSet )
inline

Definition at line 65 of file FakeCaloAlignmentEP.cc.

References produceCastorAli(), produceCastorAliErr(), produceEBAli(), produceEBAliErr(), produceEEAli(), produceEEAliErr(), produceESAli(), produceESAliErr(), produceHBAli(), produceHBAliErr(), produceHEAli(), produceHEAliErr(), produceHFAli(), produceHFAliErr(), produceHOAli(), produceHOAliErr(), produceZdcAli(), produceZdcAliErr(), and edm::ESProducer::setWhatProduced().

65  {
84  }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
ReturnAli produceEEAli(const EEAlignmentRcd &)
ReturnAli produceHFAli(const HFAlignmentRcd &)
ReturnAli produceCastorAli(const CastorAlignmentRcd &)
ReturnAliErr produceHEAliErr(const HEAlignmentErrorExtendedRcd &)
ReturnAliErr produceHBAliErr(const HBAlignmentErrorExtendedRcd &)
ReturnAliErr produceHOAliErr(const HOAlignmentErrorExtendedRcd &)
ReturnAli produceHBAli(const HBAlignmentRcd &)
ReturnAli produceEBAli(const EBAlignmentRcd &)
ReturnAliErr produceEEAliErr(const EEAlignmentErrorExtendedRcd &)
ReturnAli produceZdcAli(const ZDCAlignmentRcd &)
ReturnAliErr produceZdcAliErr(const ZDCAlignmentErrorExtendedRcd &)
ReturnAli produceHEAli(const HEAlignmentRcd &)
ReturnAliErr produceHFAliErr(const HFAlignmentErrorExtendedRcd &)
ReturnAliErr produceCastorAliErr(const CastorAlignmentErrorExtendedRcd &)
ReturnAliErr produceESAliErr(const ESAlignmentErrorExtendedRcd &)
ReturnAli produceESAli(const ESAlignmentRcd &)
ReturnAli produceHOAli(const HOAlignmentRcd &)
ReturnAliErr produceEBAliErr(const EBAlignmentErrorExtendedRcd &)

◆ ~FakeCaloAlignmentEP()

FakeCaloAlignmentEP::~FakeCaloAlignmentEP ( )
inlineoverride

Definition at line 86 of file FakeCaloAlignmentEP.cc.

86 {}

Member Function Documentation

◆ produceCastorAli()

ReturnAli FakeCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 229 of file FakeCaloAlignmentEP.cc.

References HcalCastorDetId::EM, mps_fire::i, l1ctLayer2EG_cff::id, and CastorGeometry::numberOfAlignments().

Referenced by FakeCaloAlignmentEP().

229  {
230  ReturnAli ali = std::make_unique<Alignments>();
231  std::vector<AlignTransform>& vtr(ali->m_align);
232  const unsigned int nA(CastorGeometry::numberOfAlignments());
233  vtr.reserve(nA);
234  for (unsigned int i(0); i != nA; ++i) {
235  const HcalCastorDetId id(HcalCastorDetId::EM, false, 1, 1);
236  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
237  }
238  return ali;
239  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot

◆ produceCastorAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorExtendedRcd )
inline

Definition at line 241 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

241  {
242  return std::make_unique<AlignmentErrors>();
243  }

◆ produceEBAli()

ReturnAli FakeCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 90 of file FakeCaloAlignmentEP.cc.

References EcalBarrelGeometry::detIdFromLocalAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, ecalpyutils::ism(), and EcalBarrelGeometry::numberOfAlignments().

Referenced by FakeCaloAlignmentEP().

90  {
91  ReturnAli ali = std::make_unique<Alignments>();
92  std::vector<AlignTransform>& vtr(ali->m_align);
93  const unsigned int nA(EcalBarrelGeometry::numberOfAlignments());
94  vtr.reserve(nA);
95  for (unsigned int i(0); i != nA; ++i) {
97  vtr.emplace_back(AlignTransform((1 == id.ism() ? Trl(0, 0, 0) : //-0.3 ) :
98  Trl(0, 0, 0)),
99  Rot(),
100  id));
101  }
102  return ali;
103  }
static unsigned int numberOfAlignments()
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:49
AlignTransform::Rotation Rot

◆ produceEBAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorExtendedRcd )
inline

Definition at line 105 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

105  {
106  return std::make_unique<AlignmentErrors>();
107  }

◆ produceEEAli()

ReturnAli FakeCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd )
inline

Definition at line 110 of file FakeCaloAlignmentEP.cc.

References EcalEndcapGeometry::detIdFromLocalAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and EcalEndcapGeometry::numberOfAlignments().

Referenced by FakeCaloAlignmentEP().

110  {
111  ReturnAli ali = std::make_unique<Alignments>();
112  std::vector<AlignTransform>& vtr(ali->m_align);
113  const unsigned int nA(EcalEndcapGeometry::numberOfAlignments());
114  vtr.reserve(nA);
115  for (unsigned int i(0); i != nA; ++i) {
117  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
118  }
119  return ali;
120  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Rotation Rot

◆ produceEEAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 122 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

122  {
123  return std::make_unique<AlignmentErrors>();
124  }

◆ produceESAli()

ReturnAli FakeCaloAlignmentEP::produceESAli ( const ESAlignmentRcd )
inline

Definition at line 127 of file FakeCaloAlignmentEP.cc.

References EcalPreshowerGeometry::detIdFromLocalAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and EcalPreshowerGeometry::numberOfAlignments().

Referenced by FakeCaloAlignmentEP().

127  {
128  ReturnAli ali = std::make_unique<Alignments>();
129  std::vector<AlignTransform>& vtr(ali->m_align);
130  const unsigned int nA(EcalPreshowerGeometry::numberOfAlignments());
131  vtr.reserve(nA);
132  for (unsigned int i(0); i != nA; ++i) {
134  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
135  }
136  return ali;
137  }
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
std::unique_ptr< Alignments > ReturnAli
static unsigned int numberOfAlignments()
AlignTransform::Translation Trl
AlignTransform::Rotation Rot

◆ produceESAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorExtendedRcd )
inline

Definition at line 139 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

139  {
140  return std::make_unique<AlignmentErrors>();
141  }

◆ produceHBAli()

ReturnAli FakeCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 144 of file FakeCaloAlignmentEP.cc.

References HcalGeometry::detIdFromBarrelAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and HcalGeometry::numberOfBarrelAlignments().

Referenced by FakeCaloAlignmentEP().

144  {
145  ReturnAli ali = std::make_unique<Alignments>();
146  std::vector<AlignTransform>& vtr(ali->m_align);
147  const unsigned int nA(HcalGeometry::numberOfBarrelAlignments());
148  vtr.reserve(nA);
149  for (unsigned int i(0); i != nA; ++i) {
151  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
152  }
153  return ali;
154  }
static unsigned int numberOfBarrelAlignments()
Definition: HcalGeometry.h:67
static DetId detIdFromBarrelAlignmentIndex(unsigned int i)
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot

◆ produceHBAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorExtendedRcd )
inline

Definition at line 156 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

156  {
157  return std::make_unique<AlignmentErrors>();
158  }

◆ produceHEAli()

ReturnAli FakeCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 161 of file FakeCaloAlignmentEP.cc.

References HcalGeometry::detIdFromEndcapAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and HcalGeometry::numberOfEndcapAlignments().

Referenced by FakeCaloAlignmentEP().

161  {
162  ReturnAli ali = std::make_unique<Alignments>();
163  std::vector<AlignTransform>& vtr(ali->m_align);
164  const unsigned int nA(HcalGeometry::numberOfEndcapAlignments());
165  vtr.reserve(nA);
166  for (unsigned int i(0); i != nA; ++i) {
168  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
169  }
170  return ali;
171  }
std::unique_ptr< Alignments > ReturnAli
static unsigned int numberOfEndcapAlignments()
Definition: HcalGeometry.h:69
AlignTransform::Translation Trl
static DetId detIdFromEndcapAlignmentIndex(unsigned int i)
AlignTransform::Rotation Rot

◆ produceHEAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorExtendedRcd )
inline

Definition at line 173 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

173  {
174  return std::make_unique<AlignmentErrors>();
175  }

◆ produceHFAli()

ReturnAli FakeCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 195 of file FakeCaloAlignmentEP.cc.

References HcalGeometry::detIdFromForwardAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and HcalGeometry::numberOfForwardAlignments().

Referenced by FakeCaloAlignmentEP().

195  {
196  ReturnAli ali = std::make_unique<Alignments>();
197  std::vector<AlignTransform>& vtr(ali->m_align);
198  const unsigned int nA(HcalGeometry::numberOfForwardAlignments());
199  vtr.reserve(nA);
200  for (unsigned int i(0); i != nA; ++i) {
202  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
203  }
204  return ali;
205  }
static DetId detIdFromForwardAlignmentIndex(unsigned int i)
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
static unsigned int numberOfForwardAlignments()
Definition: HcalGeometry.h:71
AlignTransform::Rotation Rot

◆ produceHFAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorExtendedRcd )
inline

Definition at line 207 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

207  {
208  return std::make_unique<AlignmentErrors>();
209  }

◆ produceHOAli()

ReturnAli FakeCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 178 of file FakeCaloAlignmentEP.cc.

References HcalGeometry::detIdFromOuterAlignmentIndex(), mps_fire::i, l1ctLayer2EG_cff::id, and HcalGeometry::numberOfOuterAlignments().

Referenced by FakeCaloAlignmentEP().

178  {
179  ReturnAli ali = std::make_unique<Alignments>();
180  std::vector<AlignTransform>& vtr(ali->m_align);
181  const unsigned int nA(HcalGeometry::numberOfOuterAlignments());
182  vtr.reserve(nA);
183  for (unsigned int i(0); i != nA; ++i) {
185  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
186  }
187  return ali;
188  }
static DetId detIdFromOuterAlignmentIndex(unsigned int i)
static unsigned int numberOfOuterAlignments()
Definition: HcalGeometry.h:73
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot

◆ produceHOAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorExtendedRcd )
inline

Definition at line 190 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

190  {
191  return std::make_unique<AlignmentErrors>();
192  }

◆ produceZdcAli()

ReturnAli FakeCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 212 of file FakeCaloAlignmentEP.cc.

References HcalZDCDetId::EM, mps_fire::i, l1ctLayer2EG_cff::id, and ZdcGeometry::numberOfAlignments().

Referenced by FakeCaloAlignmentEP().

212  {
213  ReturnAli ali = std::make_unique<Alignments>();
214  std::vector<AlignTransform>& vtr(ali->m_align);
215  const unsigned int nA(ZdcGeometry::numberOfAlignments());
216  vtr.reserve(nA);
217  for (unsigned int i(0); i != nA; ++i) {
218  const HcalZDCDetId id(HcalZDCDetId::EM, false, 1);
219  vtr.emplace_back(AlignTransform(Trl(0, 0, 0), Rot(), id));
220  }
221  return ali;
222  }
static unsigned int numberOfAlignments()
Definition: ZdcGeometry.h:46
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot

◆ produceZdcAliErr()

ReturnAliErr FakeCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorExtendedRcd )
inline

Definition at line 224 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

224  {
225  return std::make_unique<AlignmentErrors>();
226  }