CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
TestCaloAlignmentEP Class Reference
Inheritance diagram for TestCaloAlignmentEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

using ReturnAli = std::unique_ptr< Alignments >
 
using ReturnAliErr = std::unique_ptr< AlignmentErrors >
 
typedef AlignTransform::Rotation Rot
 
typedef AlignTransform::Translation Trl
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 

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 ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
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 TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- 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 eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Description: Producer of fake alignment data for calo geometries

Implementation: The alignment objects are filled with fixed alignments.

Definition at line 60 of file TestCaloAlignmentEP.cc.

Member Typedef Documentation

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

Definition at line 64 of file TestCaloAlignmentEP.cc.

Definition at line 65 of file TestCaloAlignmentEP.cc.

Definition at line 68 of file TestCaloAlignmentEP.cc.

Definition at line 67 of file TestCaloAlignmentEP.cc.

Constructor & Destructor Documentation

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

Definition at line 70 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().

71  {
90  }
ReturnAli produceHFAli(const HFAlignmentRcd &)
ReturnAliErr produceZdcAliErr(const ZDCAlignmentErrorExtendedRcd &)
ReturnAli produceHEAli(const HEAlignmentRcd &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
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 ( )
inlineoverride

Definition at line 92 of file TestCaloAlignmentEP.cc.

92 {}

Member Function Documentation

ReturnAli TestCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 275 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

276  {
277  ReturnAli ali = std::make_unique<Alignments>();
278  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
279  const unsigned int nA ( CastorGeometry::numberOfAlignments() ) ;
280  vtr.reserve( nA ) ;
281  for( unsigned int i ( 0 ) ; i != nA ; ++i )
282  {
283  const HcalCastorDetId id ( HcalCastorDetId::EM, false, 1, 1 ) ;
284  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
285  Rot(),
286  id ) ) ;
287  }
288  return ali ;
289  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorExtendedRcd )
inline

Definition at line 291 of file TestCaloAlignmentEP.cc.

References DEFINE_FWK_EVENTSETUP_MODULE.

Referenced by TestCaloAlignmentEP().

292  {
293  return std::make_unique<AlignmentErrors>();
294  }
ReturnAli TestCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 96 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

97  {
98  ReturnAli ali = std::make_unique<Alignments>();
99  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
100  const unsigned int nA ( EcalBarrelGeometry::numberOfAlignments() ) ;
101  vtr.reserve( nA ) ;
102  for( unsigned int i ( 0 ) ; i != nA ; ++i )
103  {
105  vtr.emplace_back( AlignTransform( ( 1==id.ism() ? Trl( 0, 0, 0 ) : //-0.3 ) :
106  Trl(0,0,0 ) ) ,
107  Rot(),
108  id ) ) ;
109  }
110  return ali ;
111  }
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:56
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorExtendedRcd )
inline

Definition at line 113 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

114  {
115  return std::make_unique<AlignmentErrors>();
116  }
ReturnAli TestCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd )
inline

Definition at line 119 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

120  {
121  ReturnAli ali = std::make_unique<Alignments>();
122  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
123  const unsigned int nA ( EcalEndcapGeometry::numberOfAlignments() ) ;
124  vtr.reserve( nA ) ;
125  for( unsigned int i ( 0 ) ; i != nA ; ++i )
126  {
128  vtr.emplace_back( AlignTransform( ( 2 > i ? Trl( -0.02, -0.81, -0.94 ) :
129  Trl( +0.52, -0.81, +0.81 ) ) ,
130  Rot(),
131  id ) ) ;
132  }
133  return ali ;
134  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 136 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

137  {
138  return std::make_unique<AlignmentErrors>();
139  }
ReturnAli TestCaloAlignmentEP::produceESAli ( const ESAlignmentRcd )
inline

Definition at line 142 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

143  {
144  ReturnAli ali = std::make_unique<Alignments>();
145  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
146  const unsigned int nA ( EcalPreshowerGeometry::numberOfAlignments() ) ;
147  vtr.reserve( nA ) ;
148  for( unsigned int i ( 0 ) ; i != nA ; ++i )
149  {
151  vtr.emplace_back( AlignTransform( ( 4 > i ? Trl( -0.02, -0.81, -0.94 ) :
152  Trl( +0.52, -0.81, +0.81 ) ) ,
153  Rot(),
154  id ) ) ;
155  }
156  return ali ;
157  }
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorExtendedRcd )
inline

Definition at line 159 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

160  {
161  return std::make_unique<AlignmentErrors>();
162  }
ReturnAli TestCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 165 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

166  {
167  ReturnAli ali = std::make_unique<Alignments>();
168  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
169  const unsigned int nA ( HcalGeometry::numberOfBarrelAlignments() ) ;
170  vtr.reserve( nA ) ;
171  for( unsigned int i ( 0 ) ; i != nA ; ++i )
172  {
174  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
175  Rot(),
176  id ) ) ;
177  }
178  return ali ;
179  }
static unsigned int numberOfBarrelAlignments()
Definition: HcalGeometry.h:69
static DetId detIdFromBarrelAlignmentIndex(unsigned int i)
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorExtendedRcd )
inline

Definition at line 181 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

182  {
183  return std::make_unique<AlignmentErrors>();
184  }
ReturnAli TestCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 187 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

188  {
189  ReturnAli ali = std::make_unique<Alignments>();
190  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
191  const unsigned int nA ( HcalGeometry::numberOfEndcapAlignments() ) ;
192  vtr.reserve( nA ) ;
193  for( unsigned int i ( 0 ) ; i != nA ; ++i )
194  {
196  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
197  Rot(),
198  id ) ) ;
199  }
200  return ali ;
201  }
std::unique_ptr< Alignments > ReturnAli
static unsigned int numberOfEndcapAlignments()
Definition: HcalGeometry.h:71
AlignTransform::Rotation Rot
static DetId detIdFromEndcapAlignmentIndex(unsigned int i)
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorExtendedRcd )
inline

Definition at line 203 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

204  {
205  return std::make_unique<AlignmentErrors>();
206  }
ReturnAli TestCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 231 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

232  {
233  ReturnAli ali = std::make_unique<Alignments>();
234  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
235  const unsigned int nA ( HcalGeometry::numberOfForwardAlignments() ) ;
236  vtr.reserve( nA ) ;
237  for( unsigned int i ( 0 ) ; i != nA ; ++i )
238  {
240  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
241  Rot(),
242  id ) ) ;
243  }
244  return ali ;
245  }
static DetId detIdFromForwardAlignmentIndex(unsigned int i)
std::unique_ptr< Alignments > ReturnAli
static unsigned int numberOfForwardAlignments()
Definition: HcalGeometry.h:73
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorExtendedRcd )
inline

Definition at line 247 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

248  {
249  return std::make_unique<AlignmentErrors>();
250  }
ReturnAli TestCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 209 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

210  {
211  ReturnAli ali = std::make_unique<Alignments>();
212  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
213  const unsigned int nA ( HcalGeometry::numberOfOuterAlignments() ) ;
214  vtr.reserve( nA ) ;
215  for( unsigned int i ( 0 ) ; i != nA ; ++i )
216  {
218  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
219  Rot(),
220  id ) ) ;
221  }
222  return ali ;
223  }
static DetId detIdFromOuterAlignmentIndex(unsigned int i)
static unsigned int numberOfOuterAlignments()
Definition: HcalGeometry.h:75
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorExtendedRcd )
inline

Definition at line 225 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

226  {
227  return std::make_unique<AlignmentErrors>();
228  }
ReturnAli TestCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 253 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

254  {
255  ReturnAli ali = std::make_unique<Alignments>();
256  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
257  const unsigned int nA ( ZdcGeometry::numberOfAlignments() ) ;
258  vtr.reserve( nA ) ;
259  for( unsigned int i ( 0 ) ; i != nA ; ++i )
260  {
261  const HcalZDCDetId id ( HcalZDCDetId::EM, false, 1 ) ;
262  vtr.emplace_back( AlignTransform( Trl( 0, 0, 0 ),
263  Rot(),
264  id ) ) ;
265  }
266  return ali ;
267  }
static unsigned int numberOfAlignments()
Definition: ZdcGeometry.h:48
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorExtendedRcd )
inline

Definition at line 269 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

270  {
271  return std::make_unique<AlignmentErrors>();
272  }