CMS 3D CMS Logo

Public Types | Public Member Functions

FakeCaloAlignmentEP Class Reference

Inheritance diagram for FakeCaloAlignmentEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef boost::shared_ptr
< Alignments
ReturnAli
typedef boost::shared_ptr
< AlignmentErrors
ReturnAliErr
typedef AlignTransform::Rotation Rot
typedef AlignTransform::Translation Trl

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 ()

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

FakeCaloAlignmentEP::~FakeCaloAlignmentEP ( ) [inline]

Definition at line 92 of file FakeCaloAlignmentEP.cc.

{}

Member Function Documentation

ReturnAli FakeCaloAlignmentEP::produceCastorAli ( const CastorAlignmentRcd iRecord) [inline]

Definition at line 281 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( CastorGeometry::numberOfAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalCastorDetId id ( HcalCastorDetId::EM, false, 1, 1 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorRcd iRecord) [inline]

Definition at line 297 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd iRecord) [inline]

Definition at line 96 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( EcalBarrelGeometry::numberOfAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const EBDetId id ( EcalBarrelGeometry::detIdFromLocalAlignmentIndex( i ) ) ;
            vtr.push_back( AlignTransform( ( 1==id.ism() ? Trl( 0, 0, 0 ) : //-0.3 ) :
                                             Trl(0,0,0) ) , 
                                           Rot(),
                                           id              ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorRcd iRecord) [inline]

Definition at line 113 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd iRecord) [inline]

Definition at line 120 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( EcalEndcapGeometry::numberOfAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const EEDetId id (  EcalEndcapGeometry::detIdFromLocalAlignmentIndex( i ) ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id              ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorRcd iRecord) [inline]

Definition at line 136 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceESAli ( const ESAlignmentRcd iRecord) [inline]

Definition at line 143 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( EcalPreshowerGeometry::numberOfAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const ESDetId id ( EcalPreshowerGeometry::detIdFromLocalAlignmentIndex( i ) ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorRcd iRecord) [inline]

Definition at line 159 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd iRecord) [inline]

Definition at line 166 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( HcalGeometry::numberOfBarrelAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalDetId id ( HcalBarrel, 1, 1, 1 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorRcd iRecord) [inline]

Definition at line 182 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd iRecord) [inline]

Definition at line 189 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( HcalGeometry::numberOfEndcapAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalDetId id ( HcalEndcap, 21, 1, 1 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorRcd iRecord) [inline]

Definition at line 205 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd iRecord) [inline]

Definition at line 235 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( HcalGeometry::numberOfForwardAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalDetId id ( HcalForward, 29, 1, 1 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorRcd iRecord) [inline]

Definition at line 251 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd iRecord) [inline]

Definition at line 212 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( HcalGeometry::numberOfOuterAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalDetId id ( HcalOuter, 1, 1, 4 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorRcd iRecord) [inline]

Definition at line 228 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd iRecord) [inline]

Definition at line 258 of file FakeCaloAlignmentEP.cc.

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

Referenced by FakeCaloAlignmentEP().

      {
         ReturnAli ali ( new Alignments ) ;
         std::vector<AlignTransform>& vtr ( ali->m_align ) ;
         const unsigned int nA ( ZdcGeometry::numberOfAlignments() ) ; 
         vtr.reserve( nA ) ;
         for( unsigned int i ( 0 ) ; i != nA ; ++i )
         {
            const HcalZDCDetId id ( HcalZDCDetId::EM, false, 1 ) ;
            vtr.push_back( AlignTransform( Trl( 0, 0, 0 ), 
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr FakeCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorRcd iRecord) [inline]

Definition at line 274 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }