001
002
003
004
005
006
007
008
009
010
011
012
013 #ifndef TRIGT2CALOEGAMMA_CALOSAMP2FEXEGAMMA_H
014 #define TRIGT2CALOEGAMMA_CALOSAMP2FEXEGAMMA_H
015
016
017 #include "TrigT2CaloCommon/IAlgToolCalo.h"
018 #include "GaudiKernel/AlgTool.h"
019 #include "CaloEvent/CaloSampling.h"
020 #include "TrigT2CaloCommon/Calo_Def.h"
021
022
023 class EgammaSamp2Fex: public IAlgToolCalo {
024 public:
025
026 EgammaSamp2Fex(const std::string & type, const std::string & name,
027 const IInterface* parent);
028
029 virtual ~EgammaSamp2Fex();
030
031
032
033
034
035 StatusCode execute(TrigEMCluster &rtrigEmCluster,double etamin,
036 double etamax, double phimin, double phimax);
037
038
039
040
041
042
043 StatusCode initialize() {
044
045 if ( IAlgToolCalo::initialize().isFailure() ) {
046 *(new MsgStream(AlgTool::msgSvc(), name()))
047 << MSG::FATAL
048 << "Could not init base class IAlgTooCalo" << endreq;
049 }
050 std::string basename(name().substr(25,5)+".");
051
052
053 if (m_timersvc) {
054 m_timer[0]->propName(basename+"Eta");
055 }
056 return StatusCode::SUCCESS;
057 }
058
059 private:
060 inline double etaSizeLArEMSamp2(const double eta, const int calo) const;
061 inline double phiSizeLArEMSamp2(const double eta, const int calo) const;
062 float m_maxHotCellDeta;
063 float m_maxHotCellDphi;
064
065 };
066
067 inline double EgammaSamp2Fex::etaSizeLArEMSamp2(double cellEta, int calo) const{
068 double sizeEta;
069 if( calo == Calorimeter::EMBAR ){
070 if ( fabs(cellEta) < 1.4 ){
071 sizeEta = 0.025;
072 }else{
073 sizeEta = 0.075;
074 }
075 } else {
076 if ( fabs(cellEta) < 2.5 ){
077 sizeEta = 0.025;
078 } else{
079 sizeEta = 0.1;
080 }
081 }
082 return sizeEta;
083 }
084
085 inline double EgammaSamp2Fex::phiSizeLArEMSamp2(double cellEta, int calo) const{
086 double sizePhi;
087 if( calo == Calorimeter::EMBAR ){
088 sizePhi = 0.025;
089 } else {
090 if ( fabs(cellEta) < 2.5 ){
091 sizePhi = 0.025;
092 } else {
093 sizePhi = 0.1;
094 }
095 }
096 return sizePhi;
097 }
098
099 #endif
Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
This page was automatically generated by the
LXR engine.
|
|