Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ] 

001 /********************************************************************
002  
003  NAME:     EgammaSamp2Fex.h
004  PACKAGE:  Trigger/TrigAlgorithms/TrigT2CaloEgamma
005  
006  AUTHOR:   M.P. Casado
007  
008  PURPOSE:  Calculates energy weighted cluster position around
009            hottest cell in RoI. Also, calculates energy in
010            a 3x7 and in a 7x7 cluster (rCore = 3x7/7x7).
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 /** Feature extraction Tool for LVL2 Calo. Second EM Calorimeter sample. */
023 class EgammaSamp2Fex: public IAlgToolCalo {
024   public:
025     /** Constructor */
026     EgammaSamp2Fex(const std::string & type, const std::string & name, 
027                  const IInterface* parent);
028     /** Destructor */
029     virtual ~EgammaSamp2Fex();
030     /** @brief execute feature extraction for the EM Calorimeter
031     *   second layer 
032     *   @param[out] rtrigEmCluster is the output cluster.
033     *   @param[in] eta/phi-min/max = RoI definition.
034     */
035     StatusCode execute(TrigEMCluster &rtrigEmCluster,double etamin,
036                         double etamax, double phimin, double phimax);
037 
038     /** Special initialize for Samp2 to include eta as a
039         trigger timer item monitored parameter. Important
040         to compare time performance as a function of cluster
041         position.
042     */
043     StatusCode initialize() {
044                 // Very important to call base class initialize
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                 //std::string basename(name().substr(6,1)+name().substr(name().find("Fex",0)-5,5));
052                 //basename+=(name().substr(6,1)+name().substr(name().find("Fex",0)-5,5));
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

source navigation ] diff markup ] identifier search ] general search ]

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. Valid HTML 4.01!