CMS 3D CMS Logo

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

#include <BscSD.h>

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

Public Member Functions

 BscSD (const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
uint32_t setDetUnitId (const G4Step *) override
 
 ~BscSD () 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 edm::EventSetup &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
 
 ~TimingSD () override
 
- Public Member Functions inherited from SensitiveTkDetector
 SensitiveTkDetector (const std::string &iname, const edm::EventSetup &es, 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
 
bool isCaloSD () const
 
 SensitiveDetector (const std::string &iname, const edm::EventSetup &es, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, bool calo)
 
 ~SensitiveDetector () override
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent * iT)
 
virtual ~Observer ()
 

Private Attributes

BscNumberingSchemenumberingScheme
 

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 13 of file BscSD.h.

Constructor & Destructor Documentation

◆ BscSD()

BscSD::BscSD ( const std::string &  name,
const edm::EventSetup es,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 23 of file BscSD.cc.

28  : TimingSD(name, es, clg, p, manager), numberingScheme(nullptr) {
29  //Parameters
30  edm::ParameterSet m_p = p.getParameter<edm::ParameterSet>("BscSD");
31  int verbn = m_p.getUntrackedParameter<int>("Verbosity");
32 
33  SetVerboseLevel(verbn);
34 
35  if (name == "BSCHits") {
36  if (verbn > 0) {
37  edm::LogInfo("BscSim") << "name = BSCHits and new BscNumberingSchem";
38  }
40  } else {
41  edm::LogWarning("BscSim") << "BscSD: ReadoutName " << name << " not supported";
42  }
43 }

References edm::ParameterSet::getUntrackedParameter(), Skims_PA_cff::name, numberingScheme, and AlCaHLTBitMon_ParallelJobs::p.

◆ ~BscSD()

BscSD::~BscSD ( )
override

Definition at line 45 of file BscSD.cc.

45 { delete numberingScheme; }

References numberingScheme.

Member Function Documentation

◆ setDetUnitId()

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

Implements SensitiveDetector.

Definition at line 47 of file BscSD.cc.

47  {
48  return (numberingScheme == nullptr ? 0 : numberingScheme->getUnitID(aStep));
49 }

References BscNumberingScheme::getUnitID(), and numberingScheme.

Member Data Documentation

◆ numberingScheme

BscNumberingScheme* BscSD::numberingScheme
private

Definition at line 26 of file BscSD.h.

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

BscNumberingScheme
Definition: BscNumberingScheme.h:13
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TimingSD::TimingSD
TimingSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
Definition: TimingSD.cc:40
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
edm::ParameterSet
Definition: ParameterSet.h:47
BscNumberingScheme::getUnitID
unsigned int getUnitID(const G4Step *aStep) const
Definition: BscNumberingScheme.cc:33
BscSD::numberingScheme
BscNumberingScheme * numberingScheme
Definition: BscSD.h:26
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17