CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
TestCaloAlignmentEP Class Reference
Inheritance diagram for TestCaloAlignmentEP:
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

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 &)
 
 TestCaloAlignmentEP (const edm::ParameterSet &)
 
 ~TestCaloAlignmentEP () 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 TestCaloAlignmentEP.cc.

Member Typedef Documentation

◆ ReturnAli

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

Definition at line 59 of file TestCaloAlignmentEP.cc.

◆ ReturnAliErr

Definition at line 60 of file TestCaloAlignmentEP.cc.

◆ Rot

Definition at line 63 of file TestCaloAlignmentEP.cc.

◆ Trl

Definition at line 62 of file TestCaloAlignmentEP.cc.

Constructor & Destructor Documentation

◆ TestCaloAlignmentEP()

TestCaloAlignmentEP::TestCaloAlignmentEP ( const edm::ParameterSet )
inline

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

◆ ~TestCaloAlignmentEP()

TestCaloAlignmentEP::~TestCaloAlignmentEP ( )
inlineoverride

Definition at line 86 of file TestCaloAlignmentEP.cc.

86 {}

Member Function Documentation

◆ produceCastorAli()

ReturnAli TestCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 229 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
AlignTransform::Translation Trl

◆ produceCastorAliErr()

ReturnAliErr TestCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorExtendedRcd )
inline

Definition at line 241 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceEBAli()

ReturnAli TestCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 90 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:49
AlignTransform::Translation Trl

◆ produceEBAliErr()

ReturnAliErr TestCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorExtendedRcd )
inline

Definition at line 105 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceEEAli()

ReturnAli TestCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd )
inline

Definition at line 110 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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((2 > i ? Trl(-0.02, -0.81, -0.94) : Trl(+0.52, -0.81, +0.81)), Rot(), id));
118  }
119  return ali;
120  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Translation Trl

◆ produceEEAliErr()

ReturnAliErr TestCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 122 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceESAli()

ReturnAli TestCaloAlignmentEP::produceESAli ( const ESAlignmentRcd )
inline

Definition at line 127 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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((4 > i ? Trl(-0.02, -0.81, -0.94) : Trl(+0.52, -0.81, +0.81)), Rot(), id));
135  }
136  return ali;
137  }
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl

◆ produceESAliErr()

ReturnAliErr TestCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorExtendedRcd )
inline

Definition at line 139 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceHBAli()

ReturnAli TestCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 144 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
AlignTransform::Translation Trl

◆ produceHBAliErr()

ReturnAliErr TestCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorExtendedRcd )
inline

Definition at line 156 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceHEAli()

ReturnAli TestCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 161 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
static DetId detIdFromEndcapAlignmentIndex(unsigned int i)
AlignTransform::Translation Trl

◆ produceHEAliErr()

ReturnAliErr TestCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorExtendedRcd )
inline

Definition at line 173 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceHFAli()

ReturnAli TestCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 195 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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
static unsigned int numberOfForwardAlignments()
Definition: HcalGeometry.h:71
AlignTransform::Rotation Rot
AlignTransform::Translation Trl

◆ produceHFAliErr()

ReturnAliErr TestCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorExtendedRcd )
inline

Definition at line 207 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceHOAli()

ReturnAli TestCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 178 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
AlignTransform::Translation Trl

◆ produceHOAliErr()

ReturnAliErr TestCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorExtendedRcd )
inline

Definition at line 190 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

◆ produceZdcAli()

ReturnAli TestCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 212 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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::Rotation Rot
AlignTransform::Translation Trl

◆ produceZdcAliErr()

ReturnAliErr TestCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorExtendedRcd )
inline

Definition at line 224 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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