CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

typedef boost::shared_ptr
< Alignments
ReturnAli
 
typedef boost::shared_ptr
< AlignmentErrors
ReturnAliErr
 
typedef AlignTransform::Rotation Rot
 
typedef AlignTransform::Translation Trl
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

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 ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 

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::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_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 TestCaloAlignmentEP.cc.

Member Typedef Documentation

typedef boost::shared_ptr<Alignments> TestCaloAlignmentEP::ReturnAli

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 &)
ReturnAli produceESAli(const ESAlignmentRcd &)
ReturnAliErr produceEEAliErr(const EEAlignmentErrorExtendedRcd &)
ReturnAliErr produceHEAliErr(const HEAlignmentErrorExtendedRcd &)
ReturnAliErr produceHFAliErr(const HFAlignmentErrorExtendedRcd &)
ReturnAli produceCastorAli(const CastorAlignmentRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
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 ( )
inline

Definition at line 92 of file TestCaloAlignmentEP.cc.

92 {}

Member Function Documentation

ReturnAli TestCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd )
inline

Definition at line 283 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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

Definition at line 299 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

300  {
301  ReturnAliErr aliErr ( new AlignmentErrors );
302  return aliErr ;
303  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd )
inline

Definition at line 96 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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  }
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
boost::shared_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  ReturnAliErr aliErr ( new AlignmentErrors );
116  return aliErr ;
117  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd )
inline

Definition at line 120 of file TestCaloAlignmentEP.cc.

References EcalEndcapGeometry::detIdFromLocalAlignmentIndex(), i, and EcalEndcapGeometry::numberOfAlignments().

Referenced by TestCaloAlignmentEP().

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( ( 2 > i ? Trl( -0.02, -0.81, -0.94 ) :
130  Trl( +0.52, -0.81, +0.81 ) ) ,
131  Rot(),
132  id ) ) ;
133  }
134  return ali ;
135  }
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
boost::shared_ptr< Alignments > ReturnAli
AlignTransform::Rotation Rot
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorExtendedRcd )
inline

Definition at line 137 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

138  {
139  ReturnAliErr aliErr ( new AlignmentErrors );
140  return aliErr ;
141  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceESAli ( const ESAlignmentRcd )
inline

Definition at line 144 of file TestCaloAlignmentEP.cc.

References EcalPreshowerGeometry::detIdFromLocalAlignmentIndex(), i, and EcalPreshowerGeometry::numberOfAlignments().

Referenced by TestCaloAlignmentEP().

145  {
146  ReturnAli ali ( new Alignments ) ;
147  std::vector<AlignTransform>& vtr ( ali->m_align ) ;
148  const unsigned int nA ( EcalPreshowerGeometry::numberOfAlignments() ) ;
149  vtr.reserve( nA ) ;
150  for( unsigned int i ( 0 ) ; i != nA ; ++i )
151  {
153  vtr.push_back( AlignTransform( ( 4 > i ? Trl( -0.02, -0.81, -0.94 ) :
154  Trl( +0.52, -0.81, +0.81 ) ) ,
155  Rot(),
156  id ) ) ;
157  }
158  return ali ;
159  }
int i
Definition: DBlmapReader.cc:9
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
boost::shared_ptr< Alignments > ReturnAli
static unsigned int numberOfAlignments()
AlignTransform::Rotation Rot
AlignTransform::Translation Trl
ReturnAliErr TestCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorExtendedRcd )
inline

Definition at line 161 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

162  {
163  ReturnAliErr aliErr ( new AlignmentErrors );
164  return aliErr ;
165  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd )
inline

Definition at line 168 of file TestCaloAlignmentEP.cc.

References HcalGeometry::detIdFromBarrelAlignmentIndex(), i, and HcalGeometry::numberOfBarrelAlignments().

Referenced by TestCaloAlignmentEP().

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

Definition at line 184 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

185  {
186  ReturnAliErr aliErr ( new AlignmentErrors );
187  return aliErr ;
188  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd )
inline

Definition at line 191 of file TestCaloAlignmentEP.cc.

References HcalGeometry::detIdFromEndcapAlignmentIndex(), i, and HcalGeometry::numberOfEndcapAlignments().

Referenced by TestCaloAlignmentEP().

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

Definition at line 207 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

208  {
209  ReturnAliErr aliErr ( new AlignmentErrors );
210  return aliErr ;
211  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd )
inline

Definition at line 237 of file TestCaloAlignmentEP.cc.

References HcalGeometry::detIdFromForwardAlignmentIndex(), i, and HcalGeometry::numberOfForwardAlignments().

Referenced by TestCaloAlignmentEP().

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

Definition at line 253 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

254  {
255  ReturnAliErr aliErr ( new AlignmentErrors );
256  return aliErr ;
257  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd )
inline

Definition at line 214 of file TestCaloAlignmentEP.cc.

References HcalGeometry::detIdFromOuterAlignmentIndex(), i, and HcalGeometry::numberOfOuterAlignments().

Referenced by TestCaloAlignmentEP().

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

Definition at line 230 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

231  {
232  ReturnAliErr aliErr ( new AlignmentErrors );
233  return aliErr ;
234  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli TestCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd )
inline

Definition at line 260 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

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

Definition at line 276 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

277  {
278  ReturnAliErr aliErr ( new AlignmentErrors );
279  return aliErr ;
280  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr