Analyses/src/EMFCSimpleDumper_module.cc
VDHit(const ProtonBeamDump& dump, const StepPointMC& hit)
        : pmag(hit.momentum().mag())
        , px(), py(), pz(), x(), y(), z()
        , time(hit.time())
        , charge(getCharge(hit.simParticle()->pdgId()))
        , pdgId(hit.simParticle()->pdgId())
        , particleId(hit.simParticle()->id().asUint())
      {
        const CLHEP::Hep3Vector p = dump.mu2eToBeamDump_momentum(hit.momentum());
        px = p.x();
        py = p.y();
        pz = p.z();

        const CLHEP::Hep3Vector v = dump.mu2eToBeamDump_position(hit.position());
        x = v.x();
        y = v.y();
        z = v.z();
      }
//----------------------------------------------------------------
// Constructor converting to the beam dump system
Constructor converting to the beam dump system
Constructor converting to the beam dump system
VDHit(const ProtonBeamDump& dump, const StepPointMC& hit)
        : pmag(hit.momentum().mag())
        , px(), py(), pz(), x(), y(), z()
        , time(hit.time())
        , charge(getCharge(hit.simParticle()->pdgId()))
        , pdgId(hit.simParticle()->pdgId())
        , particleId(hit.simParticle()->id().asUint())
      {
        const CLHEP::Hep3Vector p = dump.mu2eToBeamDump_momentum(hit.momentum());
        px = p.x();
        py = p.y();
        pz = p.z();
        const CLHEP::Hep3Vector v = dump.mu2eToBeamDump_position(hit.position());
        x = v.x();
        y = v.y();
        z = v.z();
      }
VDHit ( const ProtonBeamDump & dump , const StepPointMC & hit ) : pmag ( hit . momentum ( ) . mag ( ) ) , px ( ) , py ( ) , pz ( ) , x ( ) , y ( ) , z ( ) , time ( hit . time ( ) ) , charge ( getCharge ( hit . simParticle ( ) -> pdgId ( ) ) ) , pdgId ( hit . simParticle ( ) -> pdgId ( ) ) , particleId ( hit . simParticle ( ) -> id ( ) . asUint ( ) ) { const CLHEP :: Hep3Vector p = dump . mu2eToBeamDump_momentum ( hit . momentum ( ) ) ; px = p . x ( ) ; py = p . y ( ) ; pz = p . z ( ) ; const CLHEP :: Hep3Vector v = dump . mu2eToBeamDump_position ( hit . position ( ) ) ; x = v . x ( ) ; y = v . y ( ) ; z = v . z ( ) ; }
Constructor converting to the beam dump system
Constructor converting to the beam dump system