Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimDataFormats
Forward
src
TotemTestHistoClass.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Forward
4
// Class : TotemTestHistoClass
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author:
10
// Created: Tue May 16 10:14:34 CEST 2006
11
// $Id: TotemTestHistoClass.cc,v 1.1 2006/11/16 16:40:32 sunanda Exp $
12
//
13
14
// system include files
15
#include <iostream>
16
#include <cmath>
17
18
// user include files
19
#include "
SimDataFormats/Forward/interface/TotemTestHistoClass.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
22
//
23
// constructors and destructor
24
//
25
26
TotemTestHistoClass::TotemTestHistoClass
() : evt(0), hits(0) {}
27
28
TotemTestHistoClass::~TotemTestHistoClass
() {}
29
30
void
TotemTestHistoClass::fillHit
(
int
uID,
int
pType,
int
tID
,
int
pID,
31
float
eLoss,
float
pAbs,
float
vX,
float
vY,
32
float
vZ,
float
x
,
float
y
,
float
z
) {
33
34
TotemTestHistoClass::Hit
h
;
35
h.
UID
= uID;
36
h.
Ptype
= pType;
37
h.
TID
=
tID
;
38
h.
PID
= pID;
39
h.
ELoss
= eLoss;
40
h.
PABS
= pAbs;
41
h.
x
=
x
;
42
h.
y
=
y
;
43
h.
z
=
z
;
44
h.
vx
= vX;
45
h.
vy
= vY;
46
h.
vz
= vZ;
47
hit
.push_back(h);
48
hits
++;
49
LogDebug
(
"ForwardSim"
) <<
"TotemTestHistoClass : Hit "
<<
hits
<<
" "
<< uID
50
<<
", "
<< pType <<
", "
<< tID <<
", "
<< pID <<
", "
51
<< eLoss <<
", "
<< pAbs <<
", "
<< vX <<
", "
<< vY
52
<<
", "
<< vZ <<
", "
<< x <<
", "
<< y <<
", "
<<
z
;
53
}
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:501
TotemTestHistoClass::Hit::ELoss
float ELoss
Definition:
TotemTestHistoClass.h:41
MessageLogger.h
detailsBasic3DVector::z
float float float z
Definition:
extBasic3DVector.h:15
TotemTestHistoClass::Hit::Ptype
int Ptype
Definition:
TotemTestHistoClass.h:38
TotemTestHistoClass::Hit::z
float z
Definition:
TotemTestHistoClass.h:45
TotemTestHistoClass::Hit::y
float y
Definition:
TotemTestHistoClass.h:44
TopDecayID::tID
static const int tID
Definition:
TopGenEvent.h:13
TotemTestHistoClass::Hit::PID
int PID
Definition:
TotemTestHistoClass.h:40
TotemTestHistoClass::Hit::PABS
float PABS
Definition:
TotemTestHistoClass.h:42
TotemTestHistoClass::~TotemTestHistoClass
virtual ~TotemTestHistoClass()
Definition:
TotemTestHistoClass.cc:28
TotemTestHistoClass::Hit::TID
int TID
Definition:
TotemTestHistoClass.h:39
TotemTestHistoClass::Hit::x
float x
Definition:
TotemTestHistoClass.h:43
TotemTestHistoClass::TotemTestHistoClass
TotemTestHistoClass()
Definition:
TotemTestHistoClass.cc:26
TotemTestHistoClass::hits
int hits
Definition:
TotemTestHistoClass.h:63
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
detailsBasic3DVector::y
float float y
Definition:
extBasic3DVector.h:15
TotemTestHistoClass::fillHit
void fillHit(int uID, int pType, int tID, int pID, float eLoss, float pAbs, float vX, float vY, float vZ, float x, float y, float z)
Definition:
TotemTestHistoClass.cc:30
TotemTestHistoClass::Hit::vx
float vx
Definition:
TotemTestHistoClass.h:46
TotemTestHistoClass.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
TotemTestHistoClass::Hit::vz
float vz
Definition:
TotemTestHistoClass.h:48
TotemTestHistoClass::Hit
Definition:
TotemTestHistoClass.h:35
x
Definition:
DDAxes.h:10
TotemTestHistoClass::Hit::vy
float vy
Definition:
TotemTestHistoClass.h:47
TotemTestHistoClass::Hit::UID
int UID
Definition:
TotemTestHistoClass.h:37
Generated for CMSSW Reference Manual by
1.8.5