CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/Fireworks/Calo/plugins/FWCaloTowerProxyBuilder.cc File Reference

#include <math.h>
#include "TEveCaloData.h"
#include "TEveCalo.h"
#include "TH2F.h"
#include "Fireworks/Core/interface/Context.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "Fireworks/Core/interface/FWModelChangeManager.h"
#include "Fireworks/Core/interface/fw3dlego_xbins.h"
#include "Fireworks/Calo/plugins/FWCaloTowerProxyBuilder.h"
#include "Fireworks/Calo/plugins/FWCaloTowerSliceSelector.h"
#include "DataFormats/CaloTowers/interface/CaloTower.h"

Go to the source code of this file.

Functions

 REGISTER_FWPROXYBUILDER (FWECalCaloTowerProxyBuilder, CaloTowerCollection,"ECal", FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits)
 REGISTER_FWPROXYBUILDER (FWHOCaloTowerProxyBuilder, CaloTowerCollection,"HCal Outer", FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits)
 REGISTER_FWPROXYBUILDER (FWHCalCaloTowerProxyBuilder, CaloTowerCollection,"HCal", FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits)
double wrapPi (double val)

Function Documentation

REGISTER_FWPROXYBUILDER ( FWECalCaloTowerProxyBuilder  ,
CaloTowerCollection  ,
"ECal"  ,
FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits   
)
REGISTER_FWPROXYBUILDER ( FWHOCaloTowerProxyBuilder  ,
CaloTowerCollection  ,
"HCal Outer"  ,
FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits   
)
REGISTER_FWPROXYBUILDER ( FWHCalCaloTowerProxyBuilder  ,
CaloTowerCollection  ,
"HCal"  ,
FWViewType::k3DBit|FWViewType::kAllRPZBits|FWViewType::kAllLegoBits   
)
double wrapPi ( double  val)

Definition at line 81 of file FWCaloTowerProxyBuilder.cc.

References Pi, and TwoPi.

Referenced by FWCaloTowerProxyBuilderBase::fillCaloData().

{
   using namespace TMath;

   if (val< -Pi())
   {
      return val += TwoPi();
   }
   if (val> Pi())
   {
      return val -= TwoPi();
   }
   return val;
}