forked from rjones30/HDGeant4
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from JeffersonLab/new_dirc_functionality_rtj
New dirc functionality rtj
- Loading branch information
Showing
14 changed files
with
508 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// GlueXHitDIRCWob - class implementation | ||
// | ||
// created on: 05.04.2017 | ||
// original author: r.dzhygadlo at gsi.de | ||
|
||
#include "GlueXHitDIRCWob.hh" | ||
|
||
G4ThreadLocal G4Allocator<GlueXHitDIRCWob>* GlueXHitDIRCWobAllocator = 0; | ||
|
||
GlueXHitDIRCWob::GlueXHitDIRCWob():G4VHit() | ||
{ | ||
} | ||
|
||
void GlueXHitDIRCWob::Draw() const | ||
{ | ||
// not yet implemented | ||
} | ||
|
||
void GlueXHitDIRCWob::Print() const | ||
{ | ||
G4cout << "GlueXHitDIRCWob:" << G4endl | ||
<< " track = " << track << G4endl | ||
<< " normalId = " << normalId << " " << G4endl | ||
<< G4endl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// GlueXHitDIRCWob - class implementation | ||
// | ||
// created on: 05.04.2017 | ||
// original author: r.dzhygadlo at gsi.de | ||
|
||
#ifndef GlueXHitDIRCWob_h | ||
#define GlueXHitDIRCWob_h 1 | ||
|
||
#include "G4VHit.hh" | ||
#include "G4THitsMap.hh" | ||
#include "G4Allocator.hh" | ||
|
||
class GlueXHitDIRCWob : public G4VHit | ||
{ | ||
public: | ||
GlueXHitDIRCWob(); | ||
|
||
void *operator new(size_t); | ||
void operator delete(void *aHit); | ||
|
||
void Draw() const; | ||
void Print() const; | ||
|
||
G4double normalId; // uniq identifier of the normal | ||
G4int track; // index of the MC track | ||
}; | ||
|
||
typedef G4THitsMap<GlueXHitDIRCWob> GlueXHitsMapDIRCWob; | ||
|
||
extern G4ThreadLocal G4Allocator<GlueXHitDIRCWob>* GlueXHitDIRCWobAllocator; | ||
|
||
inline void* GlueXHitDIRCWob::operator new(size_t) | ||
{ | ||
if (!GlueXHitDIRCWobAllocator) | ||
GlueXHitDIRCWobAllocator = new G4Allocator<GlueXHitDIRCWob>; | ||
return (void *) GlueXHitDIRCWobAllocator->MallocSingle(); | ||
} | ||
|
||
inline void GlueXHitDIRCWob::operator delete(void *aHit) | ||
{ | ||
GlueXHitDIRCWobAllocator->FreeSingle((GlueXHitDIRCWob*) aHit); | ||
} | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.