CMS 3D CMS Logo

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

#include <TotemRPSD.h>

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

Public Member Functions

void clear () override
 
void DrawAll () override
 
void EndOfEvent (G4HCofThisEvent *eventHC) override
 
void fillHits (edm::PSimHitContainer &, const std::string &) override
 
void Initialize (G4HCofThisEvent *HCE) override
 
void PrintAll () override
 
void printHitInfo ()
 
 TotemRPSD (const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
 ~TotemRPSD () override
 
- Public Member Functions inherited from SensitiveTkDetector
 SensitiveTkDetector (const std::string &iname, const SensitiveDetectorCatalog &clg)
 
- 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 SensitiveDetectorCatalog &, bool calo)
 
 ~SensitiveDetector () override
 
- 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 ()
 

Static Public Attributes

static constexpr double rp_garage_position_ = 40.0
 

Private Member Functions

void clearHits () override
 
void createNewHit ()
 
G4bool hitExists ()
 
bool isPrimary (const G4Track *track)
 
bool ProcessHits (G4Step *step, G4TouchableHistory *tHistory) override
 
void resetForNewPrimary ()
 
uint32_t setDetUnitId (const G4Step *step) override
 
void setNumberingScheme (TotemRPVDetectorOrganization *scheme)
 
G4ThreeVector setToLocal (const G4ThreeVector &globalPoint)
 
void stepInfo (const G4Step *aStep)
 
void storeHit (TotemRPG4Hit *)
 
void summarize ()
 
void update (const ::EndOfEvent *) override
 
void update (const BeginOfEvent *) override
 This routine will be called when the appropriate signal arrives. More...
 
void updateHit ()
 

Private Attributes

TotemRPG4HitcurrentHit_
 
G4VPhysicalVolume * currentPV_
 
double Eloss_
 
G4ThreeVector entrancePoint_
 
int eventno_
 
G4ThreeVector exitPoint_
 
G4int hcID_
 
G4ThreeVector hitPoint_
 
double incidentEnergy_
 
G4String name_
 
std::unique_ptr< TotemRPVDetectorOrganizationnumberingScheme_
 
double Pabs_
 
int ParentId_
 
short ParticleType_
 
double PhiAtEntry_
 
G4StepPoint * postStepPoint_
 
G4StepPoint * preStepPoint_
 
G4int primaryID_
 
std::unique_ptr< TrackingSlaveSDslave_
 
TotemRPG4HitCollectiontheHC_
 
G4ThreeVector theLocalEntryPoint_
 
G4ThreeVector theLocalExitPoint_
 
double thePx_
 
double thePy_
 
double thePz_
 
double ThetaAtEntry_
 
G4Track * theTrack_
 
double Tof_
 
G4double tSlice_
 
G4int tSliceID_
 
unsigned int unitID_
 
int verbosity_
 
double Vx_
 
double Vy_
 
double Vz_
 

Static Private Attributes

static constexpr unsigned int maxTotemHits_ = 15000
 

Additional Inherited Members

- Protected Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- 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 > &)
 
- 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

Definition at line 30 of file TotemRPSD.h.

Constructor & Destructor Documentation

◆ TotemRPSD()

TotemRPSD::TotemRPSD ( const std::string &  name_,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 33 of file TotemRPSD.cc.

37  : SensitiveTkDetector(name_, clg),
38  numberingScheme_(nullptr),
39  hcID_(-1),
40  theHC_(nullptr),
41  currentHit_(nullptr),
42  theTrack_(nullptr),
43  currentPV_(nullptr),
44  unitID_(0),
45  preStepPoint_(nullptr),
46  postStepPoint_(nullptr),
47  eventno_(0) {
48  collectionName.insert(name_);
49 
50  edm::ParameterSet m_Anal = p.getParameter<edm::ParameterSet>("TotemRPSD");
51  verbosity_ = m_Anal.getParameter<int>("Verbosity");
52 
53  slave_ = std::make_unique<TrackingSlaveSD>(name_);
54 
55  if (name_ == "TotemHitsRP") {
56  numberingScheme_ = std::make_unique<PPSStripNumberingScheme>(3);
57  } else {
58  edm::LogWarning("TotemRP") << "TotemRPSD: ReadoutName not supported\n";
59  }
60 
61  edm::LogInfo("TotemRP") << "TotemRPSD: Instantiation completed";
62 }

References bysipixelclustmulteventfilter_cfi::collectionName, edm::ParameterSet::getParameter(), name_, numberingScheme_, AlCaHLTBitMon_ParallelJobs::p, slave_, and verbosity_.

◆ ~TotemRPSD()

TotemRPSD::~TotemRPSD ( )
override

Definition at line 64 of file TotemRPSD.cc.

64 {}

Member Function Documentation

◆ clear()

void TotemRPSD::clear ( void  )
override

Definition at line 259 of file TotemRPSD.cc.

259 {}

◆ clearHits()

void TotemRPSD::clearHits ( )
overrideprivatevirtual

Implements SensitiveDetector.

Definition at line 286 of file TotemRPSD.cc.

286 { slave_->Initialize(); }

References slave_.

Referenced by update().

◆ createNewHit()

void TotemRPSD::createNewHit ( )
private

Definition at line 189 of file TotemRPSD.cc.

189  {
190  // Protect against creating hits in detectors not inserted
191  double outrangeX = hitPoint_.x();
192  double outrangeY = hitPoint_.y();
193  if (fabs(outrangeX) > rp_garage_position_)
194  return;
195  if (fabs(outrangeY) > rp_garage_position_)
196  return;
197  // end protection
198 
204 
211 
216 
221 
225 
227 }

References currentHit_, Eloss_, exitPoint_, hitPoint_, incidentEnergy_, Pabs_, ParentId_, ParticleType_, PhiAtEntry_, primaryID_, rp_garage_position_, TotemRPG4Hit::setEnergyLoss(), TotemRPG4Hit::setEntry(), TotemRPG4Hit::setExit(), TotemRPG4Hit::setIncidentEnergy(), TotemRPG4Hit::setLocalEntry(), TotemRPG4Hit::setLocalExit(), TotemRPG4Hit::setP(), TotemRPG4Hit::setParentId(), TotemRPG4Hit::setParticleType(), TotemRPG4Hit::setPhiAtEntry(), TotemRPG4Hit::setPx(), TotemRPG4Hit::setPy(), TotemRPG4Hit::setPz(), TotemRPG4Hit::setThetaAtEntry(), TotemRPG4Hit::setTimeSlice(), TotemRPG4Hit::setTof(), TotemRPG4Hit::setTrackID(), TotemRPG4Hit::setUnitID(), TotemRPG4Hit::setVx(), TotemRPG4Hit::setVy(), TotemRPG4Hit::setVz(), storeHit(), theLocalEntryPoint_, theLocalExitPoint_, thePx_, thePy_, thePz_, ThetaAtEntry_, Tof_, tSlice_, unitID_, Vx_, Vy_, and Vz_.

Referenced by ProcessHits().

◆ DrawAll()

void TotemRPSD::DrawAll ( )
override

Definition at line 261 of file TotemRPSD.cc.

261 {}

◆ EndOfEvent()

void TotemRPSD::EndOfEvent ( G4HCofThisEvent *  eventHC)
override

Definition at line 236 of file TotemRPSD.cc.

236  {
237  // here we loop over transient hits and make them persistent
238  for (unsigned int j = 0; j < (unsigned int)theHC_->entries() && j < maxTotemHits_; j++) {
239  TotemRPG4Hit* aHit = (*theHC_)[j];
240 
241  Local3DPoint entry(aHit->localEntry().x(), aHit->localEntry().y(), aHit->localEntry().z());
242  Local3DPoint exit(aHit->localExit().x(), aHit->localExit().y(), aHit->localExit().z());
243  slave_->processHits(PSimHit(entry,
244  exit,
245  aHit->p(),
246  aHit->tof(),
247  aHit->energyLoss(),
248  aHit->particleType(),
249  aHit->unitID(),
250  aHit->trackID(),
251  aHit->thetaAtEntry(),
252  aHit->phiAtEntry()));
253  }
254  summarize();
255 }

References TotemRPG4Hit::energyLoss(), mps_splice::entry, beamvalidation::exit(), createfilelist::int, dqmiolumiharvest::j, TotemRPG4Hit::localEntry(), TotemRPG4Hit::localExit(), maxTotemHits_, TotemRPG4Hit::p(), TotemRPG4Hit::particleType(), TotemRPG4Hit::phiAtEntry(), slave_, summarize(), theHC_, TotemRPG4Hit::thetaAtEntry(), TotemRPG4Hit::tof(), TotemRPG4Hit::trackID(), and TotemRPG4Hit::unitID().

◆ fillHits()

void TotemRPSD::fillHits ( edm::PSimHitContainer c,
const std::string &  n 
)
overridevirtual

Implements SensitiveTkDetector.

Definition at line 268 of file TotemRPSD.cc.

268  {
269  if (slave_->name() == n) {
270  c = slave_->hits();
271  }
272 }

References c, dqmiodumpmetadata::n, and slave_.

◆ hitExists()

G4bool TotemRPSD::hitExists ( )
private

◆ Initialize()

void TotemRPSD::Initialize ( G4HCofThisEvent *  HCE)
override

Definition at line 66 of file TotemRPSD.cc.

66  {
67  LogDebug("TotemRP") << "TotemRPSD : Initialize called for " << name_;
68 
69  theHC_ = new TotemRPG4HitCollection(GetName(), collectionName[0]);
70  G4SDManager::GetSDMpointer()->AddNewCollection(name_, collectionName[0]);
71 
72  if (hcID_ < 0)
73  hcID_ = G4SDManager::GetSDMpointer()->GetCollectionID(collectionName[0]);
74  HCE->AddHitsCollection(hcID_, theHC_);
75 }

References bysipixelclustmulteventfilter_cfi::collectionName, hcID_, LogDebug, name_, and theHC_.

◆ isPrimary()

bool TotemRPSD::isPrimary ( const G4Track *  track)
private

Definition at line 288 of file TotemRPSD.cc.

288  {
289  TrackInformation* info = dynamic_cast<TrackInformation*>(track->GetUserInformation());
290  return info && info->isPrimary();
291 }

References info(), and HLT_FULL_cff::track.

Referenced by stepInfo().

◆ PrintAll()

void TotemRPSD::PrintAll ( )
override

Definition at line 263 of file TotemRPSD.cc.

263  {
264  LogDebug("TotemRP") << "TotemRPSD: Collection " << theHC_->GetName() << std::endl;
265  theHC_->PrintAllHits();
266 }

References LogDebug, and theHC_.

◆ printHitInfo()

void TotemRPSD::printHitInfo ( )

Definition at line 77 of file TotemRPSD.cc.

77  {
78  LogDebug("TotemRP") << theTrack_->GetDefinition()->GetParticleName() << " TotemRPSD CreateNewHit for"
79  << " PV " << currentPV_->GetName() << " PVid = " << currentPV_->GetCopyNo() << " Unit "
80  << unitID_;
81  LogDebug("TotemRP") << " primary " << primaryID_ << " time slice " << tSliceID_ << " of energy "
82  << theTrack_->GetTotalEnergy() << " Eloss_ " << Eloss_ << " positions ";
83  printf("(%10f,%10f,%10f)",
84  preStepPoint_->GetPosition().x(),
85  preStepPoint_->GetPosition().y(),
86  preStepPoint_->GetPosition().z());
87  printf("(%10f,%10f,%10f)",
88  postStepPoint_->GetPosition().x(),
89  postStepPoint_->GetPosition().y(),
90  postStepPoint_->GetPosition().z());
91  LogDebug("TotemRP") << " positions "
92  << "(" << postStepPoint_->GetPosition().x() << "," << postStepPoint_->GetPosition().y() << ","
93  << postStepPoint_->GetPosition().z() << ")"
94  << " For Track " << theTrack_->GetTrackID() << " which is a "
95  << theTrack_->GetDefinition()->GetParticleName();
96 
97  if (theTrack_->GetTrackID() == 1) {
98  LogDebug("TotemRP") << " primary particle ";
99  } else {
100  LogDebug("TotemRP") << " daughter of part. " << theTrack_->GetParentID();
101  }
102 
103  LogDebug("TotemRP") << " and created by ";
104 
105  if (theTrack_->GetCreatorProcess() != nullptr)
106  LogDebug("TotemRP") << theTrack_->GetCreatorProcess()->GetProcessName();
107  else
108  LogDebug("TotemRP") << "NO process";
109 
110  LogDebug("TotemRP") << std::endl;
111 }

References currentPV_, Eloss_, LogDebug, postStepPoint_, preStepPoint_, primaryID_, theTrack_, tSliceID_, and unitID_.

◆ ProcessHits()

bool TotemRPSD::ProcessHits ( G4Step *  step,
G4TouchableHistory *  tHistory 
)
overrideprivatevirtual

Implements SensitiveDetector.

Definition at line 113 of file TotemRPSD.cc.

113  {
114  if (aStep == nullptr) {
115  return true;
116  } else {
117  stepInfo(aStep);
118 
119  createNewHit();
120  return true;
121  }
122 }

References createNewHit(), and stepInfo().

◆ resetForNewPrimary()

void TotemRPSD::resetForNewPrimary ( )
private

◆ setDetUnitId()

uint32_t TotemRPSD::setDetUnitId ( const G4Step *  step)
overrideprivatevirtual

Implements SensitiveDetector.

Definition at line 176 of file TotemRPSD.cc.

176  {
177  return (numberingScheme_ == nullptr ? 0 : numberingScheme_->unitID(aStep));
178 }

References numberingScheme_.

Referenced by stepInfo().

◆ setNumberingScheme()

void TotemRPSD::setNumberingScheme ( TotemRPVDetectorOrganization scheme)
private

Definition at line 273 of file TotemRPSD.cc.

273  {
274  if (scheme) {
275  LogDebug("TotemRP") << "TotemRPSD: updates numbering scheme for " << GetName();
276  numberingScheme_.reset(scheme);
277  }
278 }

References LogDebug, numberingScheme_, and generator_cfi::scheme.

◆ setToLocal()

G4ThreeVector TotemRPSD::setToLocal ( const G4ThreeVector &  globalPoint)
private

Definition at line 229 of file TotemRPSD.cc.

229  {
230  G4ThreeVector localPoint;
231  const G4VTouchable* touch = preStepPoint_->GetTouchable();
232  localPoint = touch->GetHistory()->GetTopTransform().TransformPoint(global);
233  return localPoint;
234 }

References preStepPoint_.

Referenced by stepInfo().

◆ stepInfo()

void TotemRPSD::stepInfo ( const G4Step *  aStep)
private

Definition at line 124 of file TotemRPSD.cc.

124  {
125  preStepPoint_ = aStep->GetPreStepPoint();
126  postStepPoint_ = aStep->GetPostStepPoint();
127  theTrack_ = aStep->GetTrack();
128  hitPoint_ = preStepPoint_->GetPosition();
129  exitPoint_ = postStepPoint_->GetPosition();
130  currentPV_ = preStepPoint_->GetPhysicalVolume();
133 
134  G4String name_ = currentPV_->GetName();
135  name_.assign(name_, 0, 4);
136  G4String particleType = theTrack_->GetDefinition()->GetParticleName();
137  tSlice_ = (postStepPoint_->GetGlobalTime()) / nanosecond;
138  tSliceID_ = (int)tSlice_;
139  unitID_ = setDetUnitId(aStep);
140 
141  if (verbosity_)
142  LogDebug("TotemRP") << "UNIT " << unitID_ << std::endl;
143 
144  primaryID_ = theTrack_->GetTrackID();
145 
146  Pabs_ = (aStep->GetPreStepPoint()->GetMomentum().mag()) / GeV;
147  thePx_ = (aStep->GetPreStepPoint()->GetMomentum().x()) / GeV;
148  thePy_ = (aStep->GetPreStepPoint()->GetMomentum().y()) / GeV;
149  thePz_ = (aStep->GetPreStepPoint()->GetMomentum().z()) / GeV;
150 
151  Tof_ = aStep->GetPostStepPoint()->GetGlobalTime() / nanosecond;
152  Eloss_ = aStep->GetTotalEnergyDeposit() / GeV;
153  ParticleType_ = theTrack_->GetDefinition()->GetPDGEncoding();
154 
155  //corrected phi and theta treatment
156  G4ThreeVector gmd = aStep->GetPreStepPoint()->GetMomentumDirection();
157  // convert it to local frame
158  G4ThreeVector lmd = ((G4TouchableHistory*)(aStep->GetPreStepPoint()->GetTouchable()))
159  ->GetHistory()
160  ->GetTopTransform()
161  .TransformAxis(gmd);
163  ThetaAtEntry_ = lnmd.theta();
164  PhiAtEntry_ = lnmd.phi();
165 
166  if (isPrimary(theTrack_))
167  ParentId_ = 0;
168  else
169  ParentId_ = theTrack_->GetParentID();
170 
171  Vx_ = theTrack_->GetVertexPosition().x() / mm;
172  Vy_ = theTrack_->GetVertexPosition().y() / mm;
173  Vz_ = theTrack_->GetVertexPosition().z() / mm;
174 }

References SensitiveDetector::ConvertToLocal3DPoint(), currentPV_, Eloss_, exitPoint_, GeV, hitPoint_, createfilelist::int, isPrimary(), LogDebug, name_, Pabs_, ParentId_, PbPb_ZMuSkimMuonDPG_cff::particleType, ParticleType_, PV3DBase< T, PVType, FrameType >::phi(), PhiAtEntry_, postStepPoint_, preStepPoint_, primaryID_, setDetUnitId(), setToLocal(), theLocalEntryPoint_, theLocalExitPoint_, thePx_, thePy_, thePz_, PV3DBase< T, PVType, FrameType >::theta(), ThetaAtEntry_, theTrack_, Tof_, tSlice_, tSliceID_, unitID_, verbosity_, Vx_, Vy_, and Vz_.

Referenced by ProcessHits().

◆ storeHit()

void TotemRPSD::storeHit ( TotemRPG4Hit hit)
private

Definition at line 180 of file TotemRPSD.cc.

180  {
181  if (hit == nullptr) {
182  if (verbosity_)
183  LogDebug("TotemRP") << "TotemRPSD: hit to be stored is NULL !!" << std::endl;
184  return;
185  }
186  theHC_->insert(hit);
187 }

References LogDebug, theHC_, and verbosity_.

Referenced by createNewHit().

◆ summarize()

void TotemRPSD::summarize ( )
private

Definition at line 257 of file TotemRPSD.cc.

257 {}

Referenced by EndOfEvent().

◆ update() [1/2]

void TotemRPSD::update ( const ::EndOfEvent )
overrideprivate

◆ update() [2/2]

void TotemRPSD::update ( const BeginOfEvent )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 279 of file TotemRPSD.cc.

279  {
280  clearHits();
281  eventno_ = (*i)()->GetEventID();
282 }

References clearHits(), and eventno_.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ updateHit()

void TotemRPSD::updateHit ( )
private

Member Data Documentation

◆ currentHit_

TotemRPG4Hit* TotemRPSD::currentHit_
private

Definition at line 85 of file TotemRPSD.h.

Referenced by createNewHit().

◆ currentPV_

G4VPhysicalVolume* TotemRPSD::currentPV_
private

Definition at line 87 of file TotemRPSD.h.

Referenced by printHitInfo(), and stepInfo().

◆ Eloss_

double TotemRPSD::Eloss_
private

Definition at line 102 of file TotemRPSD.h.

Referenced by createNewHit(), printHitInfo(), and stepInfo().

◆ entrancePoint_

G4ThreeVector TotemRPSD::entrancePoint_
private

Definition at line 78 of file TotemRPSD.h.

◆ eventno_

int TotemRPSD::eventno_
private

Definition at line 113 of file TotemRPSD.h.

Referenced by update().

◆ exitPoint_

G4ThreeVector TotemRPSD::exitPoint_
private

Definition at line 95 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ hcID_

G4int TotemRPSD::hcID_
private

Definition at line 82 of file TotemRPSD.h.

Referenced by Initialize().

◆ hitPoint_

G4ThreeVector TotemRPSD::hitPoint_
private

Definition at line 94 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ incidentEnergy_

double TotemRPSD::incidentEnergy_
private

Definition at line 79 of file TotemRPSD.h.

Referenced by createNewHit().

◆ maxTotemHits_

constexpr unsigned int TotemRPSD::maxTotemHits_ = 15000
staticconstexprprivate

Definition at line 47 of file TotemRPSD.h.

Referenced by EndOfEvent().

◆ name_

G4String TotemRPSD::name_
private

Definition at line 81 of file TotemRPSD.h.

Referenced by Initialize(), stepInfo(), and TotemRPSD().

◆ numberingScheme_

std::unique_ptr<TotemRPVDetectorOrganization> TotemRPSD::numberingScheme_
private

Definition at line 57 of file TotemRPSD.h.

Referenced by setDetUnitId(), setNumberingScheme(), and TotemRPSD().

◆ Pabs_

double TotemRPSD::Pabs_
private

Definition at line 99 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ ParentId_

int TotemRPSD::ParentId_
private

Definition at line 108 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ ParticleType_

short TotemRPSD::ParticleType_
private

Definition at line 103 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ PhiAtEntry_

double TotemRPSD::PhiAtEntry_
private

Definition at line 106 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ postStepPoint_

G4StepPoint* TotemRPSD::postStepPoint_
private

Definition at line 93 of file TotemRPSD.h.

Referenced by printHitInfo(), and stepInfo().

◆ preStepPoint_

G4StepPoint* TotemRPSD::preStepPoint_
private

Definition at line 92 of file TotemRPSD.h.

Referenced by printHitInfo(), setToLocal(), and stepInfo().

◆ primaryID_

G4int TotemRPSD::primaryID_
private

Definition at line 89 of file TotemRPSD.h.

Referenced by createNewHit(), printHitInfo(), and stepInfo().

◆ rp_garage_position_

constexpr double TotemRPSD::rp_garage_position_ = 40.0
staticconstexpr

Definition at line 44 of file TotemRPSD.h.

Referenced by createNewHit().

◆ slave_

std::unique_ptr<TrackingSlaveSD> TotemRPSD::slave_
private

Definition at line 56 of file TotemRPSD.h.

Referenced by clearHits(), EndOfEvent(), fillHits(), and TotemRPSD().

◆ theHC_

TotemRPG4HitCollection* TotemRPSD::theHC_
private

Definition at line 83 of file TotemRPSD.h.

Referenced by EndOfEvent(), Initialize(), PrintAll(), and storeHit().

◆ theLocalEntryPoint_

G4ThreeVector TotemRPSD::theLocalEntryPoint_
private

Definition at line 96 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ theLocalExitPoint_

G4ThreeVector TotemRPSD::theLocalExitPoint_
private

Definition at line 97 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ thePx_

double TotemRPSD::thePx_
private

Definition at line 100 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ thePy_

double TotemRPSD::thePy_
private

Definition at line 100 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ thePz_

double TotemRPSD::thePz_
private

Definition at line 100 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ ThetaAtEntry_

double TotemRPSD::ThetaAtEntry_
private

Definition at line 105 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ theTrack_

G4Track* TotemRPSD::theTrack_
private

Definition at line 86 of file TotemRPSD.h.

Referenced by printHitInfo(), and stepInfo().

◆ Tof_

double TotemRPSD::Tof_
private

Definition at line 101 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ tSlice_

G4double TotemRPSD::tSlice_
private

Definition at line 90 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ tSliceID_

G4int TotemRPSD::tSliceID_
private

Definition at line 89 of file TotemRPSD.h.

Referenced by printHitInfo(), and stepInfo().

◆ unitID_

unsigned int TotemRPSD::unitID_
private

Definition at line 88 of file TotemRPSD.h.

Referenced by createNewHit(), printHitInfo(), and stepInfo().

◆ verbosity_

int TotemRPSD::verbosity_
private

Definition at line 60 of file TotemRPSD.h.

Referenced by stepInfo(), storeHit(), and TotemRPSD().

◆ Vx_

double TotemRPSD::Vx_
private

Definition at line 109 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ Vy_

double TotemRPSD::Vy_
private

Definition at line 109 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

◆ Vz_

double TotemRPSD::Vz_
private

Definition at line 109 of file TotemRPSD.h.

Referenced by createNewHit(), and stepInfo().

TotemRPG4Hit::setExit
void setExit(G4ThreeVector xyz)
Definition: TotemRPG4Hit.cc:79
TotemRPSD::theLocalEntryPoint_
G4ThreeVector theLocalEntryPoint_
Definition: TotemRPSD.h:96
TotemRPSD::hcID_
G4int hcID_
Definition: TotemRPSD.h:82
TotemRPG4Hit::setVy
void setVy(double p)
Definition: TotemRPG4Hit.cc:132
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
TotemRPG4Hit::setParticleType
void setParticleType(short i)
Definition: TotemRPG4Hit.cc:108
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
TotemRPSD::theTrack_
G4Track * theTrack_
Definition: TotemRPSD.h:86
TotemRPG4Hit::thetaAtEntry
double thetaAtEntry() const
Definition: TotemRPG4Hit.cc:110
TotemRPG4Hit::localExit
G4ThreeVector localExit() const
Definition: TotemRPG4Hit.cc:83
TotemRPSD::thePy_
double thePy_
Definition: TotemRPSD.h:100
TotemRPSD::theHC_
TotemRPG4HitCollection * theHC_
Definition: TotemRPSD.h:83
mps_splice.entry
entry
Definition: mps_splice.py:68
TotemRPSD::Vx_
double Vx_
Definition: TotemRPSD.h:109
PV3DBase::theta
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72
TotemRPG4Hit::localEntry
G4ThreeVector localEntry() const
Definition: TotemRPG4Hit.cc:81
TotemRPSD::tSlice_
G4double tSlice_
Definition: TotemRPSD.h:90
TotemRPG4Hit::setTrackID
void setTrackID(int i)
Definition: TotemRPG4Hit.cc:90
TotemRPG4Hit::setThetaAtEntry
void setThetaAtEntry(double t)
Definition: TotemRPG4Hit.cc:113
TotemRPG4Hit::setTof
void setTof(double e)
Definition: TotemRPG4Hit.cc:105
TotemRPSD::PhiAtEntry_
double PhiAtEntry_
Definition: TotemRPSD.h:106
TotemRPSD::storeHit
void storeHit(TotemRPG4Hit *)
Definition: TotemRPSD.cc:180
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
TotemRPSD::ThetaAtEntry_
double ThetaAtEntry_
Definition: TotemRPSD.h:105
TotemRPG4Hit::setLocalEntry
void setLocalEntry(const G4ThreeVector &theLocalEntryPoint)
Definition: TotemRPG4Hit.cc:82
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
TotemRPG4Hit::tof
double tof() const
Definition: TotemRPG4Hit.cc:100
TotemRPG4Hit::setVz
void setVz(double p)
Definition: TotemRPG4Hit.cc:135
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
TotemRPSD::ParentId_
int ParentId_
Definition: TotemRPSD.h:108
TotemRPSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *step) override
Definition: TotemRPSD.cc:176
TotemRPSD::ParticleType_
short ParticleType_
Definition: TotemRPSD.h:103
TotemRPG4Hit::setPhiAtEntry
void setPhiAtEntry(double f)
Definition: TotemRPG4Hit.cc:114
TotemRPSD::Pabs_
double Pabs_
Definition: TotemRPSD.h:99
TotemRPG4Hit
Definition: TotemRPG4Hit.h:30
TotemRPSD::clearHits
void clearHits() override
Definition: TotemRPSD.cc:286
TotemRPSD::currentHit_
TotemRPG4Hit * currentHit_
Definition: TotemRPSD.h:85
TotemRPG4Hit::setPx
void setPx(double p)
Definition: TotemRPG4Hit.cc:137
TotemRPG4Hit::unitID
int unitID() const
Definition: TotemRPG4Hit.cc:92
Point3DBase< float, LocalTag >
bysipixelclustmulteventfilter_cfi.collectionName
collectionName
Definition: bysipixelclustmulteventfilter_cfi.py:5
TotemRPSD::Vz_
double Vz_
Definition: TotemRPSD.h:109
TotemRPSD::thePx_
double thePx_
Definition: TotemRPSD.h:100
TotemRPG4Hit::setEntry
void setEntry(G4ThreeVector xyz)
Definition: TotemRPG4Hit.cc:76
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
TotemRPG4Hit::setEnergyLoss
void setEnergyLoss(double e)
Definition: TotemRPG4Hit.cc:106
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TotemRPG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: TotemRPG4Hit.cc:96
TotemRPSD::preStepPoint_
G4StepPoint * preStepPoint_
Definition: TotemRPSD.h:92
GeV
const double GeV
Definition: MathUtil.h:16
TotemRPG4HitCollection
G4THitsCollection< TotemRPG4Hit > TotemRPG4HitCollection
Definition: TotemRPG4HitCollection.h:13
SensitiveTkDetector::SensitiveTkDetector
SensitiveTkDetector(const std::string &iname, const SensitiveDetectorCatalog &clg)
Definition: SensitiveTkDetector.h:10
SensitiveDetector::ConvertToLocal3DPoint
Local3DPoint ConvertToLocal3DPoint(const G4ThreeVector &point) const
Definition: SensitiveDetector.h:46
TrackInformation
Definition: TrackInformation.h:12
createfilelist.int
int
Definition: createfilelist.py:10
TotemRPSD::isPrimary
bool isPrimary(const G4Track *track)
Definition: TotemRPSD.cc:288
TotemRPG4Hit::setPz
void setPz(double p)
Definition: TotemRPG4Hit.cc:139
TotemRPSD::stepInfo
void stepInfo(const G4Step *aStep)
Definition: TotemRPSD.cc:124
TotemRPG4Hit::setP
void setP(double e)
Definition: TotemRPG4Hit.cc:104
TotemRPG4Hit::setIncidentEnergy
void setIncidentEnergy(double e)
Definition: TotemRPG4Hit.cc:87
TotemRPSD::Eloss_
double Eloss_
Definition: TotemRPSD.h:102
TotemRPSD::Vy_
double Vy_
Definition: TotemRPSD.h:109
TotemRPSD::postStepPoint_
G4StepPoint * postStepPoint_
Definition: TotemRPSD.h:93
TotemRPSD::unitID_
unsigned int unitID_
Definition: TotemRPSD.h:88
TotemRPSD::createNewHit
void createNewHit()
Definition: TotemRPSD.cc:189
TotemRPG4Hit::particleType
int particleType() const
Definition: TotemRPG4Hit.cc:102
generator_cfi.scheme
scheme
Definition: generator_cfi.py:22
TotemRPSD::primaryID_
G4int primaryID_
Definition: TotemRPSD.h:89
TotemRPSD::tSliceID_
G4int tSliceID_
Definition: TotemRPSD.h:89
TotemRPG4Hit::setVx
void setVx(double p)
Definition: TotemRPG4Hit.cc:129
TotemRPSD::thePz_
double thePz_
Definition: TotemRPSD.h:100
TotemRPSD::maxTotemHits_
static constexpr unsigned int maxTotemHits_
Definition: TotemRPSD.h:47
TotemRPSD::numberingScheme_
std::unique_ptr< TotemRPVDetectorOrganization > numberingScheme_
Definition: TotemRPSD.h:57
TotemRPG4Hit::setLocalExit
void setLocalExit(const G4ThreeVector &theLocalExitPoint)
Definition: TotemRPG4Hit.cc:84
TotemRPSD::verbosity_
int verbosity_
Definition: TotemRPSD.h:60
TotemRPG4Hit::setPy
void setPy(double p)
Definition: TotemRPG4Hit.cc:138
TotemRPSD::incidentEnergy_
double incidentEnergy_
Definition: TotemRPSD.h:79
TotemRPSD::name_
G4String name_
Definition: TotemRPSD.h:81
TotemRPG4Hit::setUnitID
void setUnitID(unsigned int i)
Definition: TotemRPG4Hit.cc:93
TotemRPG4Hit::phiAtEntry
double phiAtEntry() const
Definition: TotemRPG4Hit.cc:111
TotemRPG4Hit::energyLoss
double energyLoss() const
Definition: TotemRPG4Hit.cc:101
TotemRPSD::summarize
void summarize()
Definition: TotemRPSD.cc:257
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TotemRPSD::theLocalExitPoint_
G4ThreeVector theLocalExitPoint_
Definition: TotemRPSD.h:97
TotemRPG4Hit::trackID
unsigned int trackID() const
Definition: TotemRPG4Hit.cc:89
TotemRPSD::Tof_
double Tof_
Definition: TotemRPSD.h:101
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:52
TotemRPG4Hit::p
double p() const
Definition: TotemRPG4Hit.cc:99
PSimHit
Definition: PSimHit.h:15
PbPb_ZMuSkimMuonDPG_cff.particleType
particleType
Definition: PbPb_ZMuSkimMuonDPG_cff.py:27
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
TotemRPSD::rp_garage_position_
static constexpr double rp_garage_position_
Definition: TotemRPSD.h:44
TotemRPSD::currentPV_
G4VPhysicalVolume * currentPV_
Definition: TotemRPSD.h:87
TotemRPSD::slave_
std::unique_ptr< TrackingSlaveSD > slave_
Definition: TotemRPSD.h:56
TotemRPSD::hitPoint_
G4ThreeVector hitPoint_
Definition: TotemRPSD.h:94
TotemRPG4Hit::setParentId
void setParentId(int p)
Definition: TotemRPG4Hit.cc:126
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
TotemRPSD::setToLocal
G4ThreeVector setToLocal(const G4ThreeVector &globalPoint)
Definition: TotemRPSD.cc:229
hit
Definition: SiStripHitEffFromCalibTree.cc:88
TotemRPSD::eventno_
int eventno_
Definition: TotemRPSD.h:113
TotemRPSD::exitPoint_
G4ThreeVector exitPoint_
Definition: TotemRPSD.h:95