File indexing completed on 2024-04-06 12:29:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <iostream>
0015 #include <cmath>
0016
0017
0018 #include "SimDataFormats/Forward/interface/TotemTestHistoClass.h"
0019 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0020
0021
0022
0023
0024
0025 TotemTestHistoClass::TotemTestHistoClass() : evt(0), hits(0) {}
0026
0027 TotemTestHistoClass::~TotemTestHistoClass() {}
0028
0029 void TotemTestHistoClass::fillHit(int uID,
0030 int pType,
0031 int tID,
0032 int pID,
0033 float eLoss,
0034 float pAbs,
0035 float vX,
0036 float vY,
0037 float vZ,
0038 float x,
0039 float y,
0040 float z) {
0041 TotemTestHistoClass::Hit h;
0042 h.UID = uID;
0043 h.Ptype = pType;
0044 h.TID = tID;
0045 h.PID = pID;
0046 h.ELoss = eLoss;
0047 h.PABS = pAbs;
0048 h.x = x;
0049 h.y = y;
0050 h.z = z;
0051 h.vx = vX;
0052 h.vy = vY;
0053 h.vz = vZ;
0054 hit.push_back(h);
0055 hits++;
0056 LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID << ", " << pType << ", " << tID << ", "
0057 << pID << ", " << eLoss << ", " << pAbs << ", " << vX << ", " << vY << ", " << vZ << ", " << x
0058 << ", " << y << ", " << z;
0059 }