-
Notifications
You must be signed in to change notification settings - Fork 68
Integrate geant4star with mainline #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 213 commits
Commits
Show all changes
214 commits
Select commit
Hold shift + click to select a range
ba187a4
Update StPicoDstMaker.cxx
klendathu2k a397637
Update StRoot/StPicoDstMaker/StPicoDstMaker.cxx
nigmatkulov c3ccb18
Merge branch 'star-bnl:main' into main
klendathu2k e161802
Merge branch 'star-bnl:main' into main
klendathu2k 20c3175
Merge branch 'star-bnl:main' into main
klendathu2k 05f3ea7
Star6 StTofHitMaker
perevbnlgov a1d3f34
Merge branch 'star-bnl:main' into main
klendathu2k 1cbe68f
Merge branch 'star-bnl:main' into main
klendathu2k b6622a6
Merge branch 'star-bnl:main' into main
klendathu2k b94d0ab
Merge branch 'star-bnl:main' into main
klendathu2k c459e2f
Merge pull request #3 from perevbnlgov/Star6
klendathu2k 790527e
Fix typo
perevbnlgov 3c50c29
Merge branch 'star-bnl:main' into star-root6.16.00
klendathu2k edd1754
Merge branch 'star-bnl:main' into main
klendathu2k 8d88f0b
Add missing EPD nhits and hit pointer
klendathu2k d4efff5
Add EPD hit information to the track.
klendathu2k 2ff2ee7
Add map of GEANT3 paramaters and cuts associated to volumes.
klendathu2k e23720a
AgMLExtension inherits from TGeoExtension, which allows user and/or
klendathu2k c0bfa44
Cleanup memory.
klendathu2k c19b6ba
General cleanup, and moving mixture component to protected.
klendathu2k 582e8cf
AgMath provides math functions used by AgML codes. A few of these
klendathu2k bac7771
Attach AgMLExtensions to the modules
klendathu2k 22592e6
Cleanup and replace ROOT types with basic types
klendathu2k 29a52ae
WARN: Temp disable misalignment under ROOT6
klendathu2k 35c76ac
We don't even need a classdef here...
klendathu2k 458b32f
We don't need to access most of this interactively... so comment out …
klendathu2k 41f2fe2
Responsible for setting up the AgMLExtensions in the TGeoVolumes,
klendathu2k 85690cf
Dummy handler for the UserHit command
klendathu2k 3cc2578
- Process the <UserHit ...> syntax and make relevant calls into the s…
klendathu2k 42c853a
UserHit syntax
klendathu2k 762d2d8
Back to standard StMessMgr... ENDL-->endm
klendathu2k d250ec7
Back to standard StMessMgr... ENDL-->endm
klendathu2k 70516d6
Merge branch 'star-root6.16.00' into star-geant4maker-dev
klendathu2k 6a5bfa2
Merge remote-tracking branch 'origin/star-g2t-event' into star-geant4…
klendathu2k 0e7c238
Merge remote-tracking branch 'origin/star-agml-dev' into star-geant4m…
klendathu2k ff8bf3a
Merge branch 'star-bnl:main' into star-root6.16.00
klendathu2k fede61b
Add map of GEANT3 paramaters and cuts associated to volumes.
klendathu2k 3b2cf8d
AgMLExtension inherits from TGeoExtension, which allows user and/or
klendathu2k 60158a4
Cleanup memory.
klendathu2k f4968d4
General cleanup, and moving mixture component to protected.
klendathu2k 43331b5
AgMath provides math functions used by AgML codes. A few of these
klendathu2k c6cd5ac
Attach AgMLExtensions to the modules
klendathu2k e44b8a7
Cleanup and replace ROOT types with basic types
klendathu2k f2c7531
WARN: Temp disable misalignment under ROOT6
klendathu2k 500c643
We don't even need a classdef here...
klendathu2k f85bcc8
We don't need to access most of this interactively... so comment out …
klendathu2k 7a1d9ef
Responsible for setting up the AgMLExtensions in the TGeoVolumes,
klendathu2k 694388b
Dummy handler for the UserHit command
klendathu2k 0cb4aa1
- Process the <UserHit ...> syntax and make relevant calls into the s…
klendathu2k c848963
UserHit syntax
klendathu2k 2b17bc3
Back to standard StMessMgr... ENDL-->endm
klendathu2k aeea72e
Simple test script for geometries. Compares local build of the
klendathu2k 6c546aa
Initial commit setup contradictory tests. This commit fixes that issue.
klendathu2k 8143f2e
This macro is required for the testGeometry.csh script
klendathu2k 314fac8
Disable dead code
klendathu2k c763f94
The sanity check on the main branch is newer than the geant4star vers…
klendathu2k a6dc64d
St.h St.cxx St::call(...)
perevbnlgov d5ad249
ReadMe file of StarEtc directory. Containss different auxiliary files…
perevbnlgov 3a99ab6
Merge branch 'star-bnl:main' into star-root6.16.00
klendathu2k 52cb9c0
Pull in strstrstream fix.
klendathu2k f09e712
Merge pull request #4 from perevbnlgov/Star6
klendathu2k edabc84
Merge branch 'star-root6.16.00' into star-geant4maker-dev
klendathu2k 21aadf9
G4star requires direct stack access
klendathu2k 227ee2a
Add entries for geant4, geant4vmc and geant4star maker (plus agml w/ …
klendathu2k 71921c9
Expose pi to geoemtry modules
klendathu2k 7dcbd58
Merge branch 'star-agml-dev' into star-geant4maker-dev
klendathu2k bac36f6
Remove the TGiant3/St_geant_Maker dependence from StarGenerator
klendathu2k 9efe43f
Particle data and the particle stack should be set as ".const" rather
klendathu2k b02c987
Particle data and particle stack should be persistent for duration of
klendathu2k 6dbf404
Merge remote-tracking branch 'origin/star-stargen-fix' into star-star…
klendathu2k 0521fc3
Merge branch 'star-stargenerator-dev' into star-geant4maker-dev
klendathu2k caf21a1
Initial commit
klendathu2k 9cb4e24
Initialize common block pointer to zero, and assert that it exists
klendathu2k 856a87b
Break out each generator library as its own option
klendathu2k eb0befc
geant4star script
klendathu2k 89222ab
Issue #45 notes an issue with building the geometry codes. This is c…
klendathu2k ab82186
Merge branch 'star-bnl:main' into star-buildgeom-fix
klendathu2k 594b765
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 1a79e4a
Forward declaration of ostrstream is incompatible w/ the aliasing to …
klendathu2k cba9a12
cons requires the full path in order to infer the dependency
klendathu2k 6310df2
Fix issue with dependency discovery in cons (#include's must have the
klendathu2k 34e5616
Until we have time to separate the geometry build area from the code …
klendathu2k e5bd74a
Explicitly disable multi-threaded run to avoid hitting an exception (…
klendathu2k d2b7e24
Let's be pendantic
klendathu2k 349269f
Annoyingly, the _ wasn't appended by the cpp macro.
klendathu2k 798cb24
Temp remove the alpha from unit test
klendathu2k 113e2bf
Move particle DB out of common scope / throw assert if requested part…
klendathu2k a26a07c
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k e859274
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 0c305ea
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 4249361
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 69685d9
Update for eval installation
klendathu2k 354eacd
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k c2b4b0d
Hide hardcoded geometry parameters in namespace
klendathu2k ef955a8
Ensure mysql is preloaded before BFC
klendathu2k 957f136
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k a5a1b7a
Add ROOT include path, and export include files needed by cling.
klendathu2k c7485f5
Enable pythia6 option
klendathu2k 64beaf7
Resolve conflicts w/ star repo
klendathu2k e0a66fb
Merge branch 'star-geant4maker-merge-pull' into star-geant4maker-dev
klendathu2k 4c5edb1
Bring in codes which were sitting on the G4star/eval branch, but
klendathu2k b54fe70
Add variables missing from previous commit
klendathu2k 95923fe
Explicitly disable multi-threaded run.
klendathu2k e50a895
Merge branch 'main' into star-geant4maker-dev
klendathu2k 14ca139
Merge branch 'main' into star-geant4maker-g4star-patch
klendathu2k b9a433e
Merge branch 'star-geant4maker-g4star-patch' into star-geant4maker-dev
klendathu2k 9bca3d8
Delete .StMCParticleHistory.h.swp
klendathu2k c8bedc6
__geometry_tag is now defined in the macro / no need to process line
klendathu2k 440134f
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k 3962afc
The chain option is geantout, not geant4out
klendathu2k 38cfb7a
geant4out chain option should trigger geant4maker datasets being adde…
klendathu2k ec75279
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k f33990f
Commit pythia6 and pythia8 generator macros.
klendathu2k 5e0659e
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k 72c17f6
Add code which allows user to attach event generator filters via comm…
klendathu2k e830dc9
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k 8346a8c
Truncate precision of floats (aka real*4) passed through command line…
klendathu2k a2baef4
Something is not quite right with the accepted event list, leading to…
klendathu2k 989c4d4
Convert string to float before truncation...
klendathu2k 9a457bf
Add hit summary to the geant4 maker at chain finish
klendathu2k b49f855
Updating to latest star-bnl main & resolve xgeometry conflict
klendathu2k 273ea81
Merge branch 'star-bnl-main' into star-geant4maker-dev
klendathu2k 3ec9550
Make sure include path is available for rootcint
klendathu2k 0e73220
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 01ecad0
Refactor AgML volume extensions to utilize a map (global, static, ugly)
klendathu2k abe44c1
Refactor AgML volume extensions to utilize a map (global, static, ugly)
klendathu2k c11dcd0
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k bd081f1
Setup code to enable standalone simulation with GEANT3, Geant 4 or
klendathu2k d413910
Reduce verbosity during SD construction
klendathu2k bb55827
AgMLExtension extends the 'class' of volumes that share a name
klendathu2k d8a5ac1
Several code cleanups, removing debug printouts.
klendathu2k 8c9c39c
Cleanup / reduce verbosity
klendathu2k 98402f0
Address compiler warnings
klendathu2k 4ea6e2f
abs-->TMath::Abs b/c ...
klendathu2k fad168f
Obtain current engine in multi-engine run
klendathu2k cbcd262
Forward track through the TMCManager, if it has been created
klendathu2k f50ab9e
Set stack in multi-engine run.
klendathu2k a2be008
Removed unused dependency
klendathu2k 41c6837
User stack is set on single-engine mode only
klendathu2k 976cc66
When using multi-engine mode, the stack is managed by the TMCManager.
klendathu2k 3d2b98c
Support for per-volume MC engine selection in multi-engine runs.
klendathu2k f6e54a6
MC engine is obtained from the MC manager in MC runs.
klendathu2k e6e901d
Add support for per-module MC engine selection
klendathu2k 818ae1a
Add method to change the engine-volume assignment during the run.
klendathu2k e7f93e8
Reduce verbosity
klendathu2k 0975fe4
Test G3/G4 consistency in multi-engine mode
klendathu2k 9c52905
nevents should be ntracks
klendathu2k bbdcad5
Add linked hit list to STGC
klendathu2k 5ac93ba
Fill linked hit list on tracks
klendathu2k 4bab5bf
Sampling fraction histograms
klendathu2k e0fc239
Throw over range in pt, eta to create sampling fraction plots
klendathu2k 28497cb
Test ID truth for single engine mode (or for that matter, multi engine
klendathu2k 8da1ae2
Minor comment added
klendathu2k 64da5e2
Minor debug output
klendathu2k 13d9013
Deference to MC particle to get energy, and minor debug output added
klendathu2k 2fbf66a
Use an array of StarMCParticle s, parallel to the TParticle array, to
klendathu2k 2f216df
StarMCParticle knows its idTruth. StackDump can select out track (an…
klendathu2k cd5d19d
Expose stack through a getter
klendathu2k 32c3038
StackDump to be called by testing macros rather than internally
klendathu2k 7d028b0
Throw over a narrower range in eta, and StackDump for testing.
klendathu2k 5f8379f
--whitespace
klendathu2k 1ed326f
Call to FindNode invalidates the navigator state, making StackDump un…
klendathu2k 8d46869
Setup method for user code to be added / executed at the conclusion
klendathu2k 127b8c2
Restore loop over all sectors.
klendathu2k 7168128
Update application and volume engine defaults
klendathu2k 1749523
Minor cleanups
klendathu2k 92950d0
Cleanup and improve comments
klendathu2k 472f360
Multi-engine fix: initialize track propagation cuts / parameters on all
klendathu2k 68f0494
Fix const-ness on vertex
klendathu2k 13dff6b
Merge pull request #12 from klendathu2k/star-geant4maker-persistent-t…
klendathu2k e818540
Merge from upstream
klendathu2k 16324b9
Merge this
klendathu2k 180d276
Merge branch 'main' into star-geant4maker-dev
klendathu2k 6f8130d
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k 7e11381
Add linked hit list to STGC
klendathu2k ab4f615
Simple test script for geometries. Compares local build of the
klendathu2k 7fad3d1
Initial commit setup contradictory tests. This commit fixes that issue.
klendathu2k c06e35b
This macro is required for the testGeometry.csh script
klendathu2k 1b23d86
Add map of GEANT3 paramaters and cuts associated to volumes.
klendathu2k 0c778fe
AgMLExtension inherits from TGeoExtension, which allows user and/or
klendathu2k b328dfd
Cleanup memory.
klendathu2k 34f44a5
General cleanup, and moving mixture component to protected.
klendathu2k 2026902
AgMath provides math functions used by AgML codes. A few of these
klendathu2k d069ddf
Attach AgMLExtensions to the modules
klendathu2k f21ccd7
Cleanup and replace ROOT types with basic types
klendathu2k a84c7ef
WARN: Disables misalignment when run under ROOT6. Still
klendathu2k b3e86f1
We don't even need a classdef here...
klendathu2k 090f09a
We don't need to access most of this interactively... so comment out …
klendathu2k 082f319
Responsible for setting up the AgMLExtensions in the TGeoVolumes,
klendathu2k 7c4ba37
Back to standard StMessMgr... ENDL-->endm
klendathu2k 9cd8f8b
Back to standard StMessMgr... ENDL-->endm
klendathu2k c458751
The sanity check on the main branch is newer than the geant4star vers…
klendathu2k 866bde4
Expose pi to geoemtry modules
klendathu2k 5bcabb6
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k de7f264
Print default command options
klendathu2k 1e2468e
Merge branch 'star-geant4maker-dev' of https://github.com/klendathu2k…
klendathu2k 37dcb01
Merge branch 'star-bnl:main' into star-geant4maker-dev
klendathu2k e964105
Merge pull request #15 from klendathu2k/star-geant4maker-starvmc-geom…
klendathu2k dbd1118
Merge pull request #16 from klendathu2k/star-geant4star-starvmc-stara…
klendathu2k ee4c393
Merge branch 'star-main-geant4star' into star-geant4maker-dev
klendathu2k 7dea302
Merge pull request #17 from klendathu2k/star-geant4maker-dev
klendathu2k 715a4f3
Merge pull request #14 from klendathu2k/star-geant4maker-pams
klendathu2k 2926ee8
Restore working version of StGeant4Maker
klendathu2k 87b09f8
Merge branch 'star-main-geant4star' of https://github.com/klendathu2k…
klendathu2k 937aa3f
Merge branch 'star-bnl:main' into star-main-geant4star
klendathu2k 425635b
Scripts to setup the environment and build the code
klendathu2k 82d59be
SD construction is called during initialization, through the
klendathu2k a0b6303
Fixes an initializtion error in geant4star. As previously
klendathu2k d510515
The user-stepping routine is responsible for scoring hits, recording
klendathu2k ffdd98d
Additional debugging output
klendathu2k c053385
Functions to select cells for debugging / whitespace changes
klendathu2k 509d310
Merge from upstream / resolve conflicting .gitignore
klendathu2k c8fd5ea
Merge branch 'star-bnl-main' into star-main-geant4star
klendathu2k 74091e1
Merge branch 'star-bnl:main' into star-main-geant4star
klendathu2k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Empty file.
This file contains hidden or 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,38 @@ | ||
| #ifndef __AgMLBtofVolumeId_h__ | ||
| #define __AgMLBtofVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLBtofVolumeId : public AgMLVolumeId { | ||
| public: | ||
|
|
||
| AgMLBtofVolumeId(){} | ||
| // Applies to btog.version = 8 with btog.choice =13 (run 13 onwards) | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
| int rileft = numbv[0]; | ||
| int sector = numbv[1]; | ||
| int module = numbv[2]; | ||
| int layer = numbv[3]; | ||
|
|
||
| // Adjust for GMT modules | ||
| if ( rileft==1 ) { | ||
| if ( sector== 8 ) module += 4; | ||
| if ( sector==23 ) module += 4; | ||
| } | ||
| else if ( rileft==2 ) { | ||
| if ( sector == 33 ) module += 4; | ||
| if ( sector == 48 ) module += 4; | ||
| } | ||
|
|
||
| int _id = layer + 10 * (module + 100 * (sector+100*rileft) ); | ||
|
|
||
| return _id; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
This file contains hidden or 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,70 @@ | ||
| #ifndef __AgMLEEmcVolumeId_h__ | ||
| #define __AgMLEEmcVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <TGeoNavigator.h> | ||
| #include <StMessMgr.h> | ||
| #include <TLorentzVector.h> | ||
| #include <TVirtualMC.h> | ||
| #include <TMath.h> | ||
|
|
||
| #include <TString.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLEEmcVolumeId : public AgMLVolumeId { | ||
|
|
||
| const int onoff = 1; | ||
| const int fillmode = 3; | ||
| const int sectormap[2][6] = { | ||
| { 4, 5, 6, 7, 8, 9}, | ||
| {10,11,12, 1, 2, 3} | ||
| }; | ||
|
|
||
|
|
||
| public: | ||
|
|
||
| AgMLEEmcVolumeId() : AgMLVolumeId() { /* nada */ }; | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
| // cd == ESCI | ||
| int rileft = onoff; | ||
| int shift = 0; | ||
|
|
||
| int wheel = numbv[0]; | ||
| int section = numbv[1]; | ||
| int idx = numbv[2]; | ||
| int phi30d = sectormap[wheel-1][idx-1]; // sector number | ||
| int subsec = numbv[3]; // subsection (i.e. layer) within each section | ||
| int sublay = numbv[4]; // ??? | ||
| int phi = numbv[5]; // phibin in sector | ||
| int eta = numbv[6]; | ||
|
|
||
| int depth = subsec + 3 * ( section - 1 ); | ||
|
|
||
| // int volumeid = 100000*rileft + 1000*(5*(phi30d-1)+phi) + 10*eta + depth; | ||
|
|
||
| int volumeid = 100000 * rileft | ||
| + 1000 * ( 5 * ( phi30d-1 ) + phi ) | ||
| + 10 * eta | ||
| + depth; | ||
|
|
||
| // LOG_INFO << Form("AgML EEmc VolumdId = wheel=%i section=%i idx=%i phi30d=%i subsection=%i %i %i %i %i", | ||
| // numbv[0], | ||
| // numbv[1], | ||
| // numbv[2], | ||
| // phi30d, | ||
| // numbv[3], | ||
| // numbv[4], | ||
| // numbv[5], | ||
| // numbv[6], | ||
| // volumeid ) << endm; | ||
|
|
||
|
|
||
| return volumeid; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
This file contains hidden or 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,66 @@ | ||
| #ifndef __AgMLEmcVolumeId_h__ | ||
| #define __AgMLEmcVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <TGeoNavigator.h> | ||
| #include <StMessMgr.h> | ||
| #include <TLorentzVector.h> | ||
| #include <TVirtualMC.h> | ||
| #include <TMath.h> | ||
|
|
||
| #include <TString.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLEmcVolumeId : public AgMLVolumeId { | ||
|
|
||
| const int numberOfEtaRings = 20; | ||
|
|
||
| public: | ||
|
|
||
| AgMLEmcVolumeId() : AgMLVolumeId() { /* nada */ }; | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
|
|
||
| int rileft = numbv[0]; // east barrel vs west barrel | ||
| int phi = numbv[1]; // module | ||
| int superl = numbv[2]; // before / after SMD layer | ||
|
|
||
| TLorentzVector _direction(0,0,0,0); | ||
| TVirtualMC::GetMC()->TrackPosition( _direction ); | ||
|
|
||
| double xg[4], xl[4]; | ||
| _direction.GetXYZT( xg ); | ||
| double pseudoRapidity = TMath::Abs(_direction.Eta()); | ||
|
|
||
| // Obtain local coordinates from global coordinates | ||
| TVirtualMC::GetMC()->Gmtod( xg, xl, 1 ); | ||
|
|
||
| // Calculate the eta ring and submodule | ||
| int eta_tow = ( pseudoRapidity * double(numberOfEtaRings) ) + 1.0; | ||
| int phi_sub = ( xl[1]>= 0 )? 1 : 0; // (-13,0)=0, (0,13)=1 | ||
|
|
||
| // LOG_INFO << Form("eta=%f xlocal=%f %f %f | phi_sub=%i eta_tow=%i", pseudoRapidity, xl[0], xl[1], xl[2],phi_sub,eta_tow) << endm; | ||
|
|
||
| int volumeid = -999; | ||
|
|
||
| if ( rileft==1 ) { | ||
| phi = 60 - phi + 1; | ||
| if ( phi_sub==0 ) { | ||
| phi_sub=2; | ||
| } | ||
| } | ||
| else { | ||
| phi = 60+phi; | ||
| phi_sub = phi_sub + 1; | ||
| } | ||
|
|
||
| volumeid=10000000*rileft+100000*eta_tow+100*phi+10*phi_sub+superl; | ||
|
|
||
| return volumeid; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
This file contains hidden or 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,40 @@ | ||
| #ifndef __AgMLEpdVolumeId_h__ | ||
| #define __AgMLEpdVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLEpdVolumeId : public AgMLVolumeId { | ||
| public: | ||
|
|
||
| AgMLEpdVolumeId(){} | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
| int epdm = numbv[0]; // 1=east, 2=west | ||
| int epss = numbv[1]; // 1 for PP1, 2 for PP2, PP-postion 1'o,2'o clock etc | ||
| int epdt = numbv[2]; // 1:T1 trap, 2:T1 Triangular, 3:T2 Thin, 4:T3 Thick | ||
|
|
||
| /* | ||
|
|
||
| " EPD volume_id " | ||
| " 100,000 : east or west " | ||
| " 1,000 : Position clock wise, 1 to 12 " | ||
| " 10 : Tile number 1 to 31, refer EPD Drupal page" | ||
| " 1 : 1 T1 trap or T2 thin; 0 T1 triangular or T2 thick | ||
|
|
||
| */ | ||
|
|
||
| int _id = 0; | ||
| _id += 100000 * epdm; | ||
| _id += 1000 * epss; | ||
| _id += 10 * ( epdt%2 + epdt/2 ); | ||
| _id += 1 * ( epdt%2 ); | ||
|
|
||
| return _id; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
This file contains hidden or 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,28 @@ | ||
| #ifndef __AgMLFstVolumeId_h__ | ||
| #define __AgMLFstVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLFstVolumeId : public AgMLVolumeId { | ||
| public: | ||
|
|
||
| AgMLFstVolumeId(){} | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
| static const int mapping[] = { 2, 3, 1 }; | ||
|
|
||
| int disk = numbv[0]; | ||
| int wedge = numbv[1]; | ||
| assert( numbv[2]>0 && numbv[2]<=3 ); | ||
| int sensor = mapping[ numbv[2]-1 ]; | ||
|
|
||
|
|
||
| return 1000*disk + 10*wedge + sensor; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
This file contains hidden or 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,23 @@ | ||
| #ifndef __AgMLHcaVolumeId_h__ | ||
| #define __AgMLHcaVolumeId_h__ | ||
|
|
||
| #include <StarVMC/StarAgmlLib/AgMLExtension.h> | ||
| #include <StMessMgr.h> | ||
|
|
||
| class AgMLHcaVolumeId : public AgMLVolumeId { | ||
| public: | ||
|
|
||
| AgMLHcaVolumeId(){} | ||
|
|
||
| virtual int id( int* numbv ) const { | ||
|
|
||
| int mod = numbv[0]; // module | ||
| int tow = numbv[1]; // tower | ||
|
|
||
| return 1000*mod + tow; | ||
|
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
| #endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why fst chain options have disappeared.