CMS 3D CMS Logo

Public Types | Public Member Functions

TestCaloAlignmentEP Class Reference

Inheritance diagram for TestCaloAlignmentEP:
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

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)
 TestCaloAlignmentEP (const edm::ParameterSet &)
 ~TestCaloAlignmentEP ()

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

TestCaloAlignmentEP::~TestCaloAlignmentEP ( ) [inline]

Definition at line 92 of file TestCaloAlignmentEP.cc.

{}

Member Function Documentation

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

Definition at line 283 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceCastorAliErr ( const CastorAlignmentErrorRcd iRecord) [inline]

Definition at line 299 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 96 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceEBAliErr ( const EBAlignmentErrorRcd iRecord) [inline]

Definition at line 113 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 120 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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(  ( 2 > i ? Trl( -0.02, -0.81, -0.94 ) :
                                              Trl( +0.52, -0.81, +0.81 ) ) ,
                                           Rot(),
                                           id              ) ) ;
         }
         return ali ;
      }
ReturnAliErr TestCaloAlignmentEP::produceEEAliErr ( const EEAlignmentErrorRcd iRecord) [inline]

Definition at line 137 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 144 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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( ( 4 > i ? Trl( -0.02, -0.81, -0.94 ) :
                                             Trl( +0.52, -0.81, +0.81 ) ) ,  
                                           Rot(),
                                           id           ) ) ;
         }
         return ali ;
      }
ReturnAliErr TestCaloAlignmentEP::produceESAliErr ( const ESAlignmentErrorRcd iRecord) [inline]

Definition at line 161 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 168 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceHBAliErr ( const HBAlignmentErrorRcd iRecord) [inline]

Definition at line 184 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 191 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceHEAliErr ( const HEAlignmentErrorRcd iRecord) [inline]

Definition at line 207 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 237 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceHFAliErr ( const HFAlignmentErrorRcd iRecord) [inline]

Definition at line 253 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 214 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceHOAliErr ( const HOAlignmentErrorRcd iRecord) [inline]

Definition at line 230 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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

Definition at line 260 of file TestCaloAlignmentEP.cc.

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

Referenced by TestCaloAlignmentEP().

      {
         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 TestCaloAlignmentEP::produceZdcAliErr ( const ZDCAlignmentErrorRcd iRecord) [inline]

Definition at line 276 of file TestCaloAlignmentEP.cc.

Referenced by TestCaloAlignmentEP().

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