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.
typedef boost::shared_ptr<Alignments> FakeCaloAlignmentEP::ReturnAli |
Definition at line 64 of file FakeCaloAlignmentEP.cc.
typedef boost::shared_ptr<AlignmentErrors> FakeCaloAlignmentEP::ReturnAliErr |
Definition at line 65 of file FakeCaloAlignmentEP.cc.
Definition at line 68 of file FakeCaloAlignmentEP.cc.
Definition at line 67 of file FakeCaloAlignmentEP.cc.
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().
{ setWhatProduced( this, &FakeCaloAlignmentEP::produceEBAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceEBAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceEEAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceEEAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceESAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceESAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHBAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHBAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHEAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHEAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHOAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHOAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHFAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceHFAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceZdcAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceZdcAliErr ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceCastorAli ) ; setWhatProduced( this, &FakeCaloAlignmentEP::produceCastorAliErr ) ; }
FakeCaloAlignmentEP::~FakeCaloAlignmentEP | ( | ) | [inline] |
Definition at line 92 of file FakeCaloAlignmentEP.cc.
{}
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 ; }