CMS 3D CMS Logo

ParticleFlux.h
Go to the documentation of this file.
1 #ifndef SimDataFormatsCaloTestParticleFlux_h
2 #define SimDataFormatsCaloTestParticleFlux_h
3 
4 #include <string>
5 #include <vector>
6 #include <memory>
7 
10 
11 class ParticleFlux {
12 public:
13  ParticleFlux(std::string name = "", int id = 0) : detName_(name), detId_(id) {}
14  virtual ~ParticleFlux() {}
15 
16  struct flux {
17  int pdgId, vxType;
18  float tof;
21  flux(int id = 0, int typ = 0, float t = 0) : pdgId(id), vxType(typ), tof(t) {}
22  };
23 
24  std::string const& getName() const { return detName_; }
25  int getId() const { return detId_; }
26  unsigned int getComponents() const { return fluxVector_.size(); }
27  std::vector<ParticleFlux::flux> getFlux() const& { return fluxVector_; }
28  void setName(const std::string nm) { detName_ = nm; }
29  void setId(const int id) { detId_ = id; }
30  void addFlux(const ParticleFlux::flux f);
31  void clear();
32 
33 private:
35  int detId_;
36  std::vector<flux> fluxVector_;
37 };
38 
39 #endif
ParticleFlux::setName
void setName(const std::string nm)
Definition: ParticleFlux.h:28
ParticleFlux::clear
void clear()
Definition: ParticleFlux.cc:5
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
ParticleFlux::getName
std::string const & getName() const
Definition: ParticleFlux.h:24
ParticleFlux::getFlux
std::vector< ParticleFlux::flux > getFlux() const &
Definition: ParticleFlux.h:27
watchdog.const
const
Definition: watchdog.py:83
ParticleFlux::flux::flux
flux(int id=0, int typ=0, float t=0)
Definition: ParticleFlux.h:21
ParticleFlux::ParticleFlux
ParticleFlux(std::string name="", int id=0)
Definition: ParticleFlux.h:13
ParticleFlux::detId_
int detId_
Definition: ParticleFlux.h:35
ParticleFlux::fluxVector_
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:36
ParticleFlux::flux::hitPoint
math::GlobalPoint hitPoint
Definition: ParticleFlux.h:19
ParticleFlux::flux::momentum
math::GlobalVector momentum
Definition: ParticleFlux.h:20
ParticleFlux::~ParticleFlux
virtual ~ParticleFlux()
Definition: ParticleFlux.h:14
ParticleFlux::addFlux
void addFlux(const ParticleFlux::flux f)
Definition: ParticleFlux.cc:3
ParticleFlux::flux::vxType
int vxType
Definition: ParticleFlux.h:17
math::GlobalVector
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
Definition: Vector3D.h:28
ParticleFlux::flux::pdgId
int pdgId
Definition: ParticleFlux.h:17
ParticleFlux
Definition: ParticleFlux.h:11
ParticleFlux::detName_
std::string detName_
Definition: ParticleFlux.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ParticleFlux::flux::tof
float tof
Definition: ParticleFlux.h:18
ParticleFlux::flux
Definition: ParticleFlux.h:16
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ParticleFlux::flux::vertex
math::GlobalPoint vertex
Definition: ParticleFlux.h:19
ParticleFlux::setId
void setId(const int id)
Definition: ParticleFlux.h:29
Point3D.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ParticleFlux::getId
int getId() const
Definition: ParticleFlux.h:25
math::GlobalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
ParticleFlux::getComponents
unsigned int getComponents() const
Definition: ParticleFlux.h:26
Vector3D.h
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644