test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
pftools::TestCaloWindow Class Reference

#include <CaloWindow.h>

Public Member Functions

void doTest ()
 
 TestCaloWindow ()
 
virtual ~TestCaloWindow ()
 

Detailed Description

Definition at line 171 of file CaloWindow.h.

Constructor & Destructor Documentation

pftools::TestCaloWindow::TestCaloWindow ( )
inline

Definition at line 173 of file CaloWindow.h.

173  {
174  }
virtual pftools::TestCaloWindow::~TestCaloWindow ( )
inlinevirtual

Definition at line 176 of file CaloWindow.h.

176  {
177  }

Member Function Documentation

void TestCaloWindow::doTest ( )

Definition at line 257 of file CaloWindow.cc.

References pftools::CaloWindow::addHit(), and gather_cfg::cout.

257  {
258 
259  CaloWindow cw(0.0, 0.0, 3, 0.1, 4);
260  std::cout << cw << std::endl;
261  cw.addHit(0, 0.05, 1.0);
262  cw.addHit(0.22, 0.05, 2.0);
263  cw.addHit(0, 0.8, 4.0);
264  cw.addHit(0.2, 0, 1.0);
265  cw.addHit(0.15, 0.15, 2.0);
266  cw.addHit(0.0, 0.2, 3.0);
267  cw.addHit(-0.15, 0.15, 4.0);
268  cw.addHit(-0.2, 0, 5.0);
269  cw.addHit(-0.15, -0.15, 6.0);
270  cw.addHit(-0.0, -0.2, 7.0);
271  cw.addHit(0.15, -0.15, 8.0);
272 
273  std::cout << cw << std::endl;
274  std::cout << "bye bye" << std::endl;
275 
276 }
tuple cout
Definition: gather_cfg.py:121