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

typedef std::shared_ptr< AlignmentsReturnAli
 
typedef std::shared_ptr< AlignmentErrorsReturnAliErr
 
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 ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- 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
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- 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())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 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

typedef std::shared_ptr<Alignments> FakeCaloAlignmentEP::ReturnAli

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  }
ReturnAli produceEEAli(const EEAlignmentRcd &)
ReturnAli produceHFAli(const HFAlignmentRcd &)
ReturnAli produceCastorAli(const CastorAlignmentRcd &)
ReturnAliErr produceHEAliErr(const HEAlignmentErrorExtendedRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
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 ( )
inline

Definition at line 92 of file FakeCaloAlignmentEP.cc.

92 {}

Member Function Documentation

ReturnAli FakeCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 281 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

282  {
283  ReturnAli ali ( new Alignments ) ;
284  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
285  const unsigned int nA ( CastorGeometry::numberOfAlignments() ) ;
286  vtr.reserve( nA ) ;
287  for( unsigned int i ( 0 ) ; i != nA ; ++i )
288  {
289  const HcalCastorDetId id ( HcalCastorDetId::EM, false, 1, 1 ) ;
290  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
291  Rot(),
292  id ) ) ;
293  }
294  return ali ;
295  }
static unsigned int numberOfAlignments()
std::shared_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorExtendedRcd )
inline

Definition at line 297 of file FakeCaloAlignmentEP.cc.

References DEFINE_FWK_EVENTSETUP_MODULE.

Referenced by FakeCaloAlignmentEP().

298  {
299  ReturnAliErr aliErr ( new AlignmentErrors );
300  return aliErr ;
301  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 96 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

97  {
98  ReturnAli ali ( new 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.push_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::shared_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  ReturnAliErr aliErr ( new AlignmentErrors );
116  return aliErr ;
117  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd )
inline

Definition at line 120 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

121  {
122  ReturnAli ali ( new Alignments ) ;
123  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
124  const unsigned int nA ( EcalEndcapGeometry::numberOfAlignments() ) ;
125  vtr.reserve( nA ) ;
126  for( unsigned int i ( 0 ) ; i != nA ; ++i )
127  {
129  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
130  Rot(),
131  id ) ) ;
132  }
133  return ali ;
134  }
static unsigned int numberOfAlignments()
std::shared_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 136 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

137  {
138  ReturnAliErr aliErr ( new AlignmentErrors );
139  return aliErr ;
140  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceESAli ( const ESAlignmentRcd )
inline

Definition at line 143 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 159 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

160  {
161  ReturnAliErr aliErr ( new AlignmentErrors );
162  return aliErr ;
163  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 166 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

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

Definition at line 182 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

183  {
184  ReturnAliErr aliErr ( new AlignmentErrors );
185  return aliErr ;
186  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 189 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

190  {
191  ReturnAli ali ( new Alignments ) ;
192  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
193  const unsigned int nA ( HcalGeometry::numberOfEndcapAlignments() ) ;
194  vtr.reserve( nA ) ;
195  for( unsigned int i ( 0 ) ; i != nA ; ++i )
196  {
198  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
199  Rot(),
200  id ) ) ;
201  }
202  return ali ;
203  }
std::shared_ptr< Alignments > ReturnAli
static unsigned int numberOfEndcapAlignments()
Definition: HcalGeometry.h:67
AlignTransform::Translation Trl
static DetId detIdFromEndcapAlignmentIndex(unsigned int i)
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorExtendedRcd )
inline

Definition at line 205 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

206  {
207  ReturnAliErr aliErr ( new AlignmentErrors );
208  return aliErr ;
209  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 235 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

236  {
237  ReturnAli ali ( new Alignments ) ;
238  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
239  const unsigned int nA ( HcalGeometry::numberOfForwardAlignments() ) ;
240  vtr.reserve( nA ) ;
241  for( unsigned int i ( 0 ) ; i != nA ; ++i )
242  {
244  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
245  Rot(),
246  id ) ) ;
247  }
248  return ali ;
249  }
static DetId detIdFromForwardAlignmentIndex(unsigned int i)
std::shared_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
static unsigned int numberOfForwardAlignments()
Definition: HcalGeometry.h:69
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorExtendedRcd )
inline

Definition at line 251 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

252  {
253  ReturnAliErr aliErr ( new AlignmentErrors );
254  return aliErr ;
255  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 212 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

213  {
214  ReturnAli ali ( new Alignments ) ;
215  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
216  const unsigned int nA ( HcalGeometry::numberOfOuterAlignments() ) ;
217  vtr.reserve( nA ) ;
218  for( unsigned int i ( 0 ) ; i != nA ; ++i )
219  {
221  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
222  Rot(),
223  id ) ) ;
224  }
225  return ali ;
226  }
static DetId detIdFromOuterAlignmentIndex(unsigned int i)
static unsigned int numberOfOuterAlignments()
Definition: HcalGeometry.h:71
std::shared_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorExtendedRcd )
inline

Definition at line 228 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

229  {
230  ReturnAliErr aliErr ( new AlignmentErrors );
231  return aliErr ;
232  }
std::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 258 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

259  {
260  ReturnAli ali ( new Alignments ) ;
261  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
262  const unsigned int nA ( ZdcGeometry::numberOfAlignments() ) ;
263  vtr.reserve( nA ) ;
264  for( unsigned int i ( 0 ) ; i != nA ; ++i )
265  {
266  const HcalZDCDetId id ( HcalZDCDetId::EM, false, 1 ) ;
267  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
268  Rot(),
269  id ) ) ;
270  }
271  return ali ;
272  }
static unsigned int numberOfAlignments()
Definition: ZdcGeometry.h:48
std::shared_ptr< Alignments > ReturnAli
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorExtendedRcd )
inline

Definition at line 274 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

275  {
276  ReturnAliErr aliErr ( new AlignmentErrors );
277  return aliErr ;
278  }
std::shared_ptr< AlignmentErrors > ReturnAliErr