CMS 3D CMS Logo

CSCEfficiency.cc File Reference

#include "RecoLocalMuon/CSCEfficiency/interface/CSCEfficiency.h"

Go to the source code of this file.

Defines

#define LAYER_MAX   9.5
#define LAYER_MIN   -0.5
#define SQR(x)   ((x)*(x))
#define XMAX   70.
#define XMIN   -70.
#define YMAX   165.
#define YMIN   -165.

Functions

 DEFINE_FWK_MODULE (CSCEfficiency)
void Rotate (double Xinit, double Yinit, double angle, double &Xrot, double &Yrot)
template<class T>
std::string to_string (const T &t)


Define Documentation

#define LAYER_MAX   9.5

Definition at line 19 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency(), and CSCEfficiency::~CSCEfficiency().

#define LAYER_MIN   -0.5

Definition at line 18 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency(), and CSCEfficiency::~CSCEfficiency().

#define SQR (  )     ((x)*(x))

Definition at line 12 of file CSCEfficiency.cc.

#define XMAX   70.

Definition at line 15 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency().

#define XMIN   -70.

Definition at line 14 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency().

#define YMAX   165.

Definition at line 17 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency(), and CSCEfficiency::~CSCEfficiency().

#define YMIN   -165.

Definition at line 16 of file CSCEfficiency.cc.

Referenced by CSCEfficiency::CSCEfficiency(), and CSCEfficiency::~CSCEfficiency().


Function Documentation

DEFINE_FWK_MODULE ( CSCEfficiency   ) 

void Rotate ( double  Xinit,
double  Yinit,
double  angle,
double &  Xrot,
double &  Yrot 
)

Definition at line 2140 of file CSCEfficiency.cc.

References funct::cos(), and funct::sin().

Referenced by CSCEfficiency::analyze().

02140                                                                                    {
02141   // rotation is counterclockwise (if angle>0)
02142   Xrot = Xinit*cos(angle) - Yinit*sin(angle);
02143   Yrot = Xinit*sin(angle) + Yinit*cos(angle);
02144 }

template<class T>
std::string to_string ( const T &  t  )  [inline]

Definition at line 22 of file CSCEfficiency.cc.

References ss.

Referenced by CSCEfficiency::ChangeTitle(), and CSCEfficiency::CSCEfficiency().

00023 {
00024   std::stringstream ss; 
00025   ss << t;
00026   return ss.str();
00027 }


Generated on Tue Jun 9 17:55:18 2009 for CMSSW by  doxygen 1.5.4