Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:04:22

0001 #ifndef SimG4Core_CheckSecondary_TreatSecondary_H
0002 #define SimG4Core_CheckSecondary_TreatSecondary_H
0003 
0004 #include "DataFormats/Math/interface/LorentzVector.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 
0007 #include <iostream>
0008 #include <memory>
0009 #include <string>
0010 #include <vector>
0011 
0012 class G4Step;
0013 class G4Track;
0014 class G4ProcessTypeEnumerator;
0015 
0016 class TreatSecondary {
0017 public:
0018   TreatSecondary(const edm::ParameterSet &p);
0019   TreatSecondary(const TreatSecondary &) = delete;  // stop default
0020   const TreatSecondary &operator=(const TreatSecondary &) = delete;
0021   virtual ~TreatSecondary();
0022 
0023   void initTrack(const G4Track *trk);
0024   std::vector<math::XYZTLorentzVector> tracks(
0025       const G4Step *step, std::string &procName, int &procID, bool &intr, double &deltaE, std::vector<int> &charges);
0026 
0027 private:
0028   int verbosity, minSec, killAfter;
0029   double minDeltaE, eTrack;
0030   G4ProcessTypeEnumerator *typeEnumerator;
0031   int step, nHad, nsecL;
0032 };
0033 
0034 #endif