test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimTracker
Common
interface
SimHitInfoForLinks.h
Go to the documentation of this file.
1
#ifndef SimTracker_Common_SimHitInfoForLinks
2
#define SimTracker_Common_SimHitInfoForLinks
3
4
#include <vector>
5
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
6
7
// A stripped down version of PSimHit used to save memory.
8
// Contains only the information needed to be make DigiSimLinks.
9
// Include the simHit's index in the source collection, collection name suffix index.
10
11
struct
SimHitInfoForLinks
{
12
explicit
SimHitInfoForLinks
(
PSimHit
const
* hitp,
size_t
hitindex,
unsigned
int
tofbin) :
13
eventId_
(hitp->eventId()),
trackIds_
(1, hitp->trackId()),
hitIndex_
(hitindex),
tofBin_
(tofbin) {
14
}
15
EncodedEventId
eventId_
;
16
std::vector<unsigned int>
trackIds_
;
17
size_t
hitIndex_
;
18
unsigned
int
tofBin_
;
19
};
20
#endif
SimHitInfoForLinks::tofBin_
unsigned int tofBin_
Definition:
SimHitInfoForLinks.h:18
SimHitInfoForLinks::hitIndex_
size_t hitIndex_
Definition:
SimHitInfoForLinks.h:17
SimHitInfoForLinks::trackIds_
std::vector< unsigned int > trackIds_
Definition:
SimHitInfoForLinks.h:16
SimHitInfoForLinks::eventId_
EncodedEventId eventId_
Definition:
SimHitInfoForLinks.h:15
PSimHit.h
SimHitInfoForLinks
Definition:
SimHitInfoForLinks.h:11
SimHitInfoForLinks::SimHitInfoForLinks
SimHitInfoForLinks(PSimHit const *hitp, size_t hitindex, unsigned int tofbin)
Definition:
SimHitInfoForLinks.h:12
EncodedEventId
Definition:
EncodedEventId.h:11
PSimHit
Definition:
PSimHit.h:15
Generated for CMSSW Reference Manual by
1.8.5