CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BHMSD Class Reference

#include <BHMSD.h>

Inheritance diagram for BHMSD:
TimingSD SensitiveTkDetector Observer< const BeginOfEvent * > SensitiveDetector

Public Member Functions

 BHMSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
uint32_t setDetUnitId (const G4Step *) override
 
 ~BHMSD () override
 
- Public Member Functions inherited from TimingSD
void clearHits () override
 
void EndOfEvent (G4HCofThisEvent *eventHC) override
 
void fillHits (edm::PSimHitContainer &, const std::string &) override
 
void Initialize (G4HCofThisEvent *HCE) override
 
void PrintAll () override
 
bool ProcessHits (G4Step *, G4TouchableHistory *) override
 
 TimingSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
 
 ~TimingSD () override
 
- Public Member Functions inherited from SensitiveTkDetector
 SensitiveTkDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p)
 
- Public Member Functions inherited from SensitiveDetector
void EndOfEvent (G4HCofThisEvent *eventHC) override
 
const std::vector< std::string > & getNames () const
 
void Initialize (G4HCofThisEvent *eventHC) override
 
 SensitiveDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p)
 
 ~SensitiveDetector () override
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent * iT)
 
virtual ~Observer ()
 

Private Attributes

BHMNumberingSchemenumberingScheme
 

Additional Inherited Members

- Protected Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- Protected Member Functions inherited from TimingSD
virtual bool checkHit (const G4Step *, BscG4Hit *)
 
const G4ThreeVector & getGlobalEntryPoint () const
 
const G4ThreeVector & getLocalEntryPoint () const
 
void setCuts (double eCut, double historyCut)
 
void setTimeFactor (double)
 
void setToLocal (const G4StepPoint *stepPoint, const G4ThreeVector &globalPoint, G4ThreeVector &localPoint)
 
void update (const BeginOfEvent *) override
 This routine will be called when the appropriate signal arrives. More...
 
- Protected Member Functions inherited from SensitiveDetector
TrackInformationcmsTrackInformation (const G4Track *aTrack)
 
Local3DPoint ConvertToLocal3DPoint (const G4ThreeVector &point) const
 
Local3DPoint FinalStepPosition (const G4Step *step, coordinates) const
 
Local3DPoint InitialStepPosition (const G4Step *step, coordinates) const
 
Local3DPoint LocalPostStepPosition (const G4Step *step) const
 
Local3DPoint LocalPreStepPosition (const G4Step *step) const
 
void NaNTrap (const G4Step *step) const
 
void setNames (const std::vector< std::string > &)
 

Detailed Description

Definition at line 14 of file BHMSD.h.

Constructor & Destructor Documentation

BHMSD::BHMSD ( const std::string &  name,
const DDCompactView cpv,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 14 of file BHMSD.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and numberingScheme.

16  :
17  TimingSD(name, cpv, clg, p, manager), numberingScheme(nullptr) {
18 
19  //Parameters
20  edm::ParameterSet m_p = p.getParameter<edm::ParameterSet>("BHMSD");
21  int verbn = m_p.getUntrackedParameter<int>("Verbosity");
22 
23  SetVerboseLevel(verbn);
24 
25  if (verbn > 0) {
26  edm::LogInfo("BHMSim") << "name = " <<name <<" and new BHMNumberingScheme";
27  }
29 }
T getUntrackedParameter(std::string const &, T const &) const
BHMNumberingScheme * numberingScheme
Definition: BHMSD.h:28
TimingSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
Definition: TimingSD.cc:40
BHMSD::~BHMSD ( )
override

Definition at line 31 of file BHMSD.cc.

References numberingScheme.

31  {
32  delete numberingScheme;
33 }
BHMNumberingScheme * numberingScheme
Definition: BHMSD.h:28

Member Function Documentation

uint32_t BHMSD::setDetUnitId ( const G4Step *  aStep)
overridevirtual

Implements SensitiveDetector.

Definition at line 35 of file BHMSD.cc.

References BHMNumberingScheme::getUnitID(), and numberingScheme.

35  {
36  return (numberingScheme == nullptr ? 0 : numberingScheme->getUnitID(aStep));
37 }
BHMNumberingScheme * numberingScheme
Definition: BHMSD.h:28
unsigned int getUnitID(const G4Step *aStep) const

Member Data Documentation

BHMNumberingScheme* BHMSD::numberingScheme
private

Definition at line 28 of file BHMSD.h.

Referenced by BHMSD(), setDetUnitId(), and ~BHMSD().