CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TotemSD Class Reference

#include <SimG4CMS/Forward/interface/TotemSD.h>

Inheritance diagram for TotemSD:
SensitiveTkDetector Observer< const BeginOfEvent * > Observer< const EndOfEvent * > SensitiveDetector

Public Member Functions

virtual void clear ()
 
virtual void DrawAll ()
 
virtual void EndOfEvent (G4HCofThisEvent *eventHC)
 
void fillHits (edm::PSimHitContainer &, std::string use)
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual void PrintAll ()
 
virtual bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual uint32_t setDetUnitId (G4Step *)
 
 TotemSD (std::string, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
virtual ~TotemSD ()
 
- Public Member Functions inherited from SensitiveTkDetector
 SensitiveTkDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p)
 
- Public Member Functions inherited from SensitiveDetector
virtual void AssignSD (const std::string &vname)
 
Local3DPoint ConvertToLocal3DPoint (const G4ThreeVector &point)
 
Local3DPoint FinalStepPosition (G4Step *s, coordinates)
 
virtual std::vector< std::string > getNames ()
 
Local3DPoint InitialStepPosition (G4Step *s, coordinates)
 
std::string nameOfSD ()
 
void NaNTrap (G4Step *step)
 
void Register ()
 
 SensitiveDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p)
 
virtual ~SensitiveDetector ()
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfEvent * >
 Observer ()
 
void slotForUpdate (const EndOfEvent *iT)
 
virtual ~Observer ()
 

Private Member Functions

virtual void clearHits ()
 
void CreateNewHit ()
 
void CreateNewHitEvo ()
 
void GetStepInfo (G4Step *aStep)
 
bool HitExists ()
 
G4ThreeVector PosizioEvo (const G4ThreeVector &, double, double, double, double, int &)
 
void ResetForNewPrimary ()
 
G4ThreeVector SetToLocal (const G4ThreeVector &globalPoint)
 
void StoreHit (TotemG4Hit *)
 
void Summarize ()
 
void update (const BeginOfEvent *)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const ::EndOfEvent *)
 
void UpdateHit ()
 

Private Attributes

TotemG4HitcurrentHit
 
G4VPhysicalVolume * currentPV
 
float edeposit
 
float Eloss
 
G4ThreeVector entrancePoint
 
int eventno
 
G4int hcID
 
G4ThreeVector hitPoint
 
float incidentEnergy
 
std::string name
 
TotemVDetectorOrganizationnumberingScheme
 
float Pabs
 
int ParentId
 
short ParticleType
 
float PhiAtEntry
 
G4ThreeVector Posizio
 
G4StepPoint * postStepPoint
 
G4StepPoint * preStepPoint
 
uint32_t previousUnitID
 
int primaryID
 
G4int primID
 
TrackingSlaveSDslave
 
TotemG4HitCollectiontheHC
 
const SimTrackManagertheManager
 
float ThetaAtEntry
 
G4Track * theTrack
 
float Tof
 
int tsID
 
double tSlice
 
int tSliceID
 
uint32_t unitID
 
float Vx
 
float Vy
 
float Vz
 

Additional Inherited Members

- Public Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- Protected Member Functions inherited from Observer< const EndOfEvent * >
virtual void update (const EndOfEvent *)=0
 This routine will be called when the appropriate signal arrives. More...
 

Detailed Description

Description: Stores hits of Totem in appropriate container

Usage: Used in sensitive detector builder

Definition at line 42 of file TotemSD.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file TotemSD.cc.

TotemSD::~TotemSD ( )
virtual

Definition at line 99 of file TotemSD.cc.

Member Function Documentation

void TotemSD::clear ( void  )
virtual

Definition at line 168 of file TotemSD.cc.

void TotemSD::clearHits ( )
privatevirtual

Implements SensitiveDetector.

Definition at line 193 of file TotemSD.cc.

void TotemSD::CreateNewHit ( )
private

Definition at line 288 of file TotemSD.cc.

void TotemSD::CreateNewHitEvo ( )
private

Definition at line 341 of file TotemSD.cc.

void TotemSD::DrawAll ( )
virtual

Definition at line 171 of file TotemSD.cc.

void TotemSD::EndOfEvent ( G4HCofThisEvent *  eventHC)
virtual

Reimplemented from SensitiveDetector.

Definition at line 141 of file TotemSD.cc.

void TotemSD::fillHits ( edm::PSimHitContainer c,
std::string  use 
)
virtual

Implements SensitiveTkDetector.

Definition at line 179 of file TotemSD.cc.

void TotemSD::GetStepInfo ( G4Step *  aStep)
private

Definition at line 205 of file TotemSD.cc.

bool TotemSD::HitExists ( )
private

Definition at line 246 of file TotemSD.cc.

void TotemSD::Initialize ( G4HCofThisEvent *  HCE)
virtual

Reimplemented from SensitiveDetector.

Definition at line 128 of file TotemSD.cc.

G4ThreeVector TotemSD::PosizioEvo ( const G4ThreeVector &  Pos,
double  vx,
double  vy,
double  vz,
double  pabs,
int &  accettanza 
)
private

Definition at line 380 of file TotemSD.cc.

void TotemSD::PrintAll ( )
virtual

Definition at line 174 of file TotemSD.cc.

bool TotemSD::ProcessHits ( G4Step *  aStep,
G4TouchableHistory *   
)
virtual

Implements SensitiveDetector.

Definition at line 104 of file TotemSD.cc.

void TotemSD::ResetForNewPrimary ( )
private

Definition at line 519 of file TotemSD.cc.

uint32_t TotemSD::setDetUnitId ( G4Step *  aStep)
virtual

Implements SensitiveDetector.

Definition at line 123 of file TotemSD.cc.

G4ThreeVector TotemSD::SetToLocal ( const G4ThreeVector &  globalPoint)
private

Definition at line 197 of file TotemSD.cc.

void TotemSD::StoreHit ( TotemG4Hit hit)
private

Definition at line 508 of file TotemSD.cc.

void TotemSD::Summarize ( )
private

Definition at line 525 of file TotemSD.cc.

void TotemSD::update ( const BeginOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 183 of file TotemSD.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void TotemSD::update ( const ::EndOfEvent )
private

Definition at line 190 of file TotemSD.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void TotemSD::UpdateHit ( )
private

Definition at line 476 of file TotemSD.cc.

Member Data Documentation

TotemG4Hit* TotemSD::currentHit
private

Definition at line 102 of file TotemSD.h.

G4VPhysicalVolume* TotemSD::currentPV
private

Definition at line 104 of file TotemSD.h.

float TotemSD::edeposit
private

Definition at line 111 of file TotemSD.h.

float TotemSD::Eloss
private

Definition at line 117 of file TotemSD.h.

G4ThreeVector TotemSD::entrancePoint
private

Definition at line 92 of file TotemSD.h.

int TotemSD::eventno
private

Definition at line 126 of file TotemSD.h.

G4int TotemSD::hcID
private

Definition at line 97 of file TotemSD.h.

G4ThreeVector TotemSD::hitPoint
private

Definition at line 112 of file TotemSD.h.

float TotemSD::incidentEnergy
private

Definition at line 93 of file TotemSD.h.

std::string TotemSD::name
private

Definition at line 96 of file TotemSD.h.

Referenced by VIDSelectorBase.VIDSelectorBase::initialize().

TotemVDetectorOrganization* TotemSD::numberingScheme
private

Definition at line 85 of file TotemSD.h.

float TotemSD::Pabs
private

Definition at line 115 of file TotemSD.h.

int TotemSD::ParentId
private

Definition at line 123 of file TotemSD.h.

short TotemSD::ParticleType
private

Definition at line 118 of file TotemSD.h.

float TotemSD::PhiAtEntry
private

Definition at line 121 of file TotemSD.h.

G4ThreeVector TotemSD::Posizio
private

Definition at line 114 of file TotemSD.h.

G4StepPoint* TotemSD::postStepPoint
private

Definition at line 110 of file TotemSD.h.

G4StepPoint* TotemSD::preStepPoint
private

Definition at line 109 of file TotemSD.h.

uint32_t TotemSD::previousUnitID
private

Definition at line 105 of file TotemSD.h.

int TotemSD::primaryID
private

Definition at line 106 of file TotemSD.h.

G4int TotemSD::primID
private

Definition at line 94 of file TotemSD.h.

TrackingSlaveSD* TotemSD::slave
private

Definition at line 84 of file TotemSD.h.

TotemG4HitCollection* TotemSD::theHC
private

Definition at line 98 of file TotemSD.h.

const SimTrackManager* TotemSD::theManager
private

Definition at line 99 of file TotemSD.h.

float TotemSD::ThetaAtEntry
private

Definition at line 120 of file TotemSD.h.

G4Track* TotemSD::theTrack
private

Definition at line 103 of file TotemSD.h.

float TotemSD::Tof
private

Definition at line 116 of file TotemSD.h.

int TotemSD::tsID
private

Definition at line 101 of file TotemSD.h.

double TotemSD::tSlice
private

Definition at line 107 of file TotemSD.h.

int TotemSD::tSliceID
private

Definition at line 106 of file TotemSD.h.

uint32_t TotemSD::unitID
private

Definition at line 105 of file TotemSD.h.

float TotemSD::Vx
private

Definition at line 124 of file TotemSD.h.

float TotemSD::Vy
private

Definition at line 124 of file TotemSD.h.

float TotemSD::Vz
private

Definition at line 124 of file TotemSD.h.