CMS 3D CMS Logo

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

 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 ()
 
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 FakeCaloAlignmentEP.cc.

Member Typedef Documentation

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

Definition at line 64 of file FakeCaloAlignmentEP.cc.

Definition at line 65 of file FakeCaloAlignmentEP.cc.

Definition at line 68 of file FakeCaloAlignmentEP.cc.

Definition at line 67 of file FakeCaloAlignmentEP.cc.

Constructor & Destructor Documentation

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

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

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

Definition at line 92 of file FakeCaloAlignmentEP.cc.

92 {}

Member Function Documentation

ReturnAli FakeCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 273 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 289 of file FakeCaloAlignmentEP.cc.

References DEFINE_FWK_EVENTSETUP_MODULE.

Referenced by FakeCaloAlignmentEP().

290  {
291  return std::make_unique<AlignmentErrors>();
292  }
ReturnAli FakeCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 96 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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::Translation Trl
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorExtendedRcd )
inline

Definition at line 113 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 119 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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( Trl( 0, 0, 0 ),
129  Rot(),
130  id ) ) ;
131  }
132  return ali ;
133  }
static unsigned int numberOfAlignments()
std::unique_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 135 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 141 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 157 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

158  {
159  return std::make_unique<AlignmentErrors>();
160  }
ReturnAli FakeCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 163 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 179 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

180  {
181  return std::make_unique<AlignmentErrors>();
182  }
ReturnAli FakeCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 185 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 201 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

202  {
203  return std::make_unique<AlignmentErrors>();
204  }
ReturnAli FakeCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 229 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 245 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

246  {
247  return std::make_unique<AlignmentErrors>();
248  }
ReturnAli FakeCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 207 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 223 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

224  {
225  return std::make_unique<AlignmentErrors>();
226  }
ReturnAli FakeCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 251 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 267 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

268  {
269  return std::make_unique<AlignmentErrors>();
270  }