Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:15

0001 #include "FastSimulation/Event/interface/FSimTrack.h"
0002 #include "FastSimulation/Event/interface/FSimVertex.h"
0003 #include "FastSimDataFormats/NuclearInteractions/interface/FSimVertexType.h"
0004 
0005 inline FSimTrack& FBaseSimEvent::track(int i) const {
0006   if (i < 0 || i >= (int)nTracks()) {
0007     throw cms::Exception("FastSim") << "Index for FSimTracks out of range, please contact FastSim developers"
0008                                     << std::endl;
0009   }
0010   return (*theSimTracks)[i];
0011 }
0012 
0013 inline FSimVertex& FBaseSimEvent::vertex(int i) const {
0014   if (i < 0 || i >= (int)nVertices()) {
0015     throw cms::Exception("FastSim") << "Index for FSimVertex out of range, please contact FastSim developers"
0016                                     << std::endl;
0017   }
0018   return (*theSimVertices)[i];
0019 }
0020 
0021 inline FSimVertexType& FBaseSimEvent::vertexType(int i) const {
0022   if (i < 0 || i >= (int)nVertices()) {
0023     throw cms::Exception("FastSim") << "Index for FSimVertexType out of range, please contact FastSim developers"
0024                                     << std::endl;
0025   }
0026   return (*theFSimVerticesType)[i];
0027 }
0028 
0029 inline const SimTrack& FBaseSimEvent::embdTrack(int i) const { return (*theSimTracks)[i].simTrack(); }
0030 
0031 inline const SimVertex& FBaseSimEvent::embdVertex(int i) const { return (*theSimVertices)[i].simVertex(); }
0032 
0033 inline const FSimVertexType& FBaseSimEvent::embdVertexType(int i) const { return (*theFSimVerticesType)[i]; }