CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/SimDataFormats/Forward/src/TotemTestHistoClass.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Forward
00004 // Class  :     TotemTestHistoClass
00005 //
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author: 
00010 //         Created:  Tue May 16 10:14:34 CEST 2006
00011 // $Id: TotemTestHistoClass.cc,v 1.1 2006/11/16 16:40:32 sunanda Exp $
00012 //
00013 
00014 // system include files
00015 #include <iostream>
00016 #include <cmath>
00017 
00018 // user include files
00019 #include "SimDataFormats/Forward/interface/TotemTestHistoClass.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 
00022 //
00023 // constructors and destructor
00024 //
00025 
00026 TotemTestHistoClass::TotemTestHistoClass() : evt(0), hits(0) {}
00027 
00028 TotemTestHistoClass::~TotemTestHistoClass() {}
00029 
00030 void TotemTestHistoClass::fillHit(int uID, int pType, int tID, int pID, 
00031                                   float eLoss, float pAbs, float vX, float vY,
00032                                   float vZ, float x, float y, float z) {
00033 
00034   TotemTestHistoClass::Hit h;
00035   h.UID   = uID;
00036   h.Ptype = pType;
00037   h.TID   = tID;
00038   h.PID   = pID;
00039   h.ELoss = eLoss;
00040   h.PABS  = pAbs;
00041   h.x     = x;
00042   h.y     = y;
00043   h.z     = z;
00044   h.vx    = vX;
00045   h.vy    = vY;
00046   h.vz    = vZ;
00047   hit.push_back(h);
00048   hits++;
00049   LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID
00050                          << ", " << pType << ", " << tID << ", " << pID << ", "
00051                          << eLoss << ", " << pAbs << ", " << vX << ", " << vY
00052                          << ", " << vZ << ", " << x << ", " << y << ", " << z;
00053 }