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.
typedef boost::shared_ptr<Alignments> TestCaloAlignmentEP::ReturnAli |
Definition at line 64 of file TestCaloAlignmentEP.cc.
typedef boost::shared_ptr<AlignmentErrors> TestCaloAlignmentEP::ReturnAliErr |
Definition at line 65 of file TestCaloAlignmentEP.cc.
Definition at line 68 of file TestCaloAlignmentEP.cc.
Definition at line 67 of file TestCaloAlignmentEP.cc.
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().
{ setWhatProduced( this, &TestCaloAlignmentEP::produceEBAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceEBAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceEEAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceEEAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceESAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceESAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHBAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHBAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHEAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHEAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHOAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHOAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHFAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceHFAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceZdcAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceZdcAliErr ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceCastorAli ) ; setWhatProduced( this, &TestCaloAlignmentEP::produceCastorAliErr ) ; }
TestCaloAlignmentEP::~TestCaloAlignmentEP | ( | ) | [inline] |
Definition at line 92 of file TestCaloAlignmentEP.cc.
{}
ReturnAli TestCaloAlignmentEP::produceCastorAli | ( | const CastorAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 299 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
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().
{ 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 & | ) | [inline] |
Definition at line 113 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceEEAli | ( | const EEAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 137 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceESAli | ( | const ESAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 161 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceHBAli | ( | const HBAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 184 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceHEAli | ( | const HEAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 207 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceHFAli | ( | const HFAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 253 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceHOAli | ( | const HOAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 230 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }
ReturnAli TestCaloAlignmentEP::produceZdcAli | ( | const ZDCAlignmentRcd & | ) | [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 & | ) | [inline] |
Definition at line 276 of file TestCaloAlignmentEP.cc.
Referenced by TestCaloAlignmentEP().
{ ReturnAliErr aliErr ( new AlignmentErrors ); return aliErr ; }