CMS 3D CMS Logo

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 174 of file CaloWindow.h.

Constructor & Destructor Documentation

pftools::TestCaloWindow::TestCaloWindow ( )
inline

Definition at line 176 of file CaloWindow.h.

176  {
177  }
virtual pftools::TestCaloWindow::~TestCaloWindow ( )
inlinevirtual

Definition at line 179 of file CaloWindow.h.

179  {
180  }

Member Function Documentation

void TestCaloWindow::doTest ( )

Definition at line 256 of file CaloWindow.cc.

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

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