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

Definition at line 297 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceEBAli ( const EBAlignmentRcd ) [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 ) [inline]

Definition at line 113 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceEEAli ( const EEAlignmentRcd ) [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 ) [inline]

Definition at line 136 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceESAli ( const ESAlignmentRcd ) [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 ) [inline]

Definition at line 159 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHBAli ( const HBAlignmentRcd ) [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 ) [inline]

Definition at line 182 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHEAli ( const HEAlignmentRcd ) [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 ) [inline]

Definition at line 205 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHFAli ( const HFAlignmentRcd ) [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 ) [inline]

Definition at line 251 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceHOAli ( const HOAlignmentRcd ) [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 ) [inline]

Definition at line 228 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

      { 
         ReturnAliErr aliErr ( new AlignmentErrors ); 
         return aliErr ;
      }
ReturnAli FakeCaloAlignmentEP::produceZdcAli ( const ZDCAlignmentRcd ) [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 ) [inline]

Definition at line 274 of file FakeCaloAlignmentEP.cc.

Referenced by FakeCaloAlignmentEP().

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