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
FakeCaloAlignmentEP Class Reference
Inheritance diagram for FakeCaloAlignmentEP:
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

 FakeCaloAlignmentEP (const edm::ParameterSet &)
 
ReturnAli produceCastorAli (const CastorAlignmentRcd &iRecord)
 
ReturnAliErr produceCastorAliErr (const CastorAlignmentErrorRcd &iRecord)
 
ReturnAli produceEBAli (const EBAlignmentRcd &iRecord)
 
ReturnAliErr produceEBAliErr (const EBAlignmentErrorRcd &iRecord)
 
ReturnAli produceEEAli (const EEAlignmentRcd &iRecord)
 
ReturnAliErr produceEEAliErr (const EEAlignmentErrorRcd &iRecord)
 
ReturnAli produceESAli (const ESAlignmentRcd &iRecord)
 
ReturnAliErr produceESAliErr (const ESAlignmentErrorRcd &iRecord)
 
ReturnAli produceHBAli (const HBAlignmentRcd &iRecord)
 
ReturnAliErr produceHBAliErr (const HBAlignmentErrorRcd &iRecord)
 
ReturnAli produceHEAli (const HEAlignmentRcd &iRecord)
 
ReturnAliErr produceHEAliErr (const HEAlignmentErrorRcd &iRecord)
 
ReturnAli produceHFAli (const HFAlignmentRcd &iRecord)
 
ReturnAliErr produceHFAliErr (const HFAlignmentErrorRcd &iRecord)
 
ReturnAli produceHOAli (const HOAlignmentRcd &iRecord)
 
ReturnAliErr produceHOAliErr (const HOAlignmentErrorRcd &iRecord)
 
ReturnAli produceZdcAli (const ZDCAlignmentRcd &iRecord)
 
ReturnAliErr produceZdcAliErr (const ZDCAlignmentErrorRcd &iRecord)
 
 ~FakeCaloAlignmentEP ()
 
- 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

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

Member Typedef Documentation

typedef boost::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 produceEBAli(const EBAlignmentRcd &iRecord)
ReturnAli produceHEAli(const HEAlignmentRcd &iRecord)
ReturnAliErr produceEBAliErr(const EBAlignmentErrorRcd &iRecord)
ReturnAli produceHBAli(const HBAlignmentRcd &iRecord)
ReturnAliErr produceCastorAliErr(const CastorAlignmentErrorRcd &iRecord)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnAli produceHOAli(const HOAlignmentRcd &iRecord)
ReturnAliErr produceZdcAliErr(const ZDCAlignmentErrorRcd &iRecord)
ReturnAliErr produceHOAliErr(const HOAlignmentErrorRcd &iRecord)
ReturnAli produceZdcAli(const ZDCAlignmentRcd &iRecord)
ReturnAli produceHFAli(const HFAlignmentRcd &iRecord)
ReturnAli produceESAli(const ESAlignmentRcd &iRecord)
ReturnAliErr produceHBAliErr(const HBAlignmentErrorRcd &iRecord)
ReturnAli produceCastorAli(const CastorAlignmentRcd &iRecord)
ReturnAliErr produceEEAliErr(const EEAlignmentErrorRcd &iRecord)
ReturnAliErr produceHEAliErr(const HEAlignmentErrorRcd &iRecord)
ReturnAli produceEEAli(const EEAlignmentRcd &iRecord)
ReturnAliErr produceESAliErr(const ESAlignmentErrorRcd &iRecord)
ReturnAliErr produceHFAliErr(const HFAlignmentErrorRcd &iRecord)
FakeCaloAlignmentEP::~FakeCaloAlignmentEP ( )
inline

Definition at line 92 of file FakeCaloAlignmentEP.cc.

92 {}

Member Function Documentation

ReturnAli FakeCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd iRecord)
inline

Definition at line 281 of file FakeCaloAlignmentEP.cc.

References HcalCastorDetId::EM, i, ExpressReco_HICollisions_FallBack::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  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorRcd iRecord)
inline

Definition at line 297 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 96 of file FakeCaloAlignmentEP.cc.

References EcalBarrelGeometry::detIdFromLocalAlignmentIndex(), i, ExpressReco_HICollisions_FallBack::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  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Translation Trl
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:47
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorRcd iRecord)
inline

Definition at line 113 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

114  {
115  ReturnAliErr aliErr ( new AlignmentErrors );
116  return aliErr ;
117  }
boost::shared_ptr< AlignmentErrors > ReturnAliErr
ReturnAli FakeCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd iRecord)
inline

Definition at line 120 of file FakeCaloAlignmentEP.cc.

References EcalEndcapGeometry::detIdFromLocalAlignmentIndex(), i, ExpressReco_HICollisions_FallBack::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  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
AlignTransform::Translation Trl
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorRcd iRecord)
inline

Definition at line 136 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 143 of file FakeCaloAlignmentEP.cc.

References EcalPreshowerGeometry::detIdFromLocalAlignmentIndex(), i, ExpressReco_HICollisions_FallBack::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  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
static unsigned int numberOfAlignments()
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorRcd iRecord)
inline

Definition at line 159 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 166 of file FakeCaloAlignmentEP.cc.

References HcalBarrel, i, ExpressReco_HICollisions_FallBack::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  {
174  const HcalDetId id ( HcalBarrel, 1, 1, 1 ) ;
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:50
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorRcd iRecord)
inline

Definition at line 182 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 189 of file FakeCaloAlignmentEP.cc.

References HcalEndcap, i, ExpressReco_HICollisions_FallBack::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  {
197  const HcalDetId id ( HcalEndcap, 21, 1, 1 ) ;
198  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
199  Rot(),
200  id ) ) ;
201  }
202  return ali ;
203  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfEndcapAlignments()
Definition: HcalGeometry.h:52
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorRcd iRecord)
inline

Definition at line 205 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 235 of file FakeCaloAlignmentEP.cc.

References HcalForward, i, ExpressReco_HICollisions_FallBack::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  {
243  const HcalDetId id ( HcalForward, 29, 1, 1 ) ;
244  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
245  Rot(),
246  id ) ) ;
247  }
248  return ali ;
249  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
AlignTransform::Translation Trl
static unsigned int numberOfForwardAlignments()
Definition: HcalGeometry.h:56
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorRcd iRecord)
inline

Definition at line 251 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 212 of file FakeCaloAlignmentEP.cc.

References HcalOuter, i, ExpressReco_HICollisions_FallBack::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  {
220  const HcalDetId id ( HcalOuter, 1, 1, 4 ) ;
221  vtr.push_back( AlignTransform( Trl( 0, 0, 0 ),
222  Rot(),
223  id ) ) ;
224  }
225  return ali ;
226  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfOuterAlignments()
Definition: HcalGeometry.h:54
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorRcd iRecord)
inline

Definition at line 228 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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

Definition at line 258 of file FakeCaloAlignmentEP.cc.

References HcalZDCDetId::EM, i, ExpressReco_HICollisions_FallBack::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  }
boost::shared_ptr< Alignments > ReturnAli
int i
Definition: DBlmapReader.cc:9
static unsigned int numberOfAlignments()
Definition: ZdcGeometry.h:44
AlignTransform::Translation Trl
AlignTransform::Rotation Rot
ReturnAliErr FakeCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorRcd iRecord)
inline

Definition at line 274 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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