Last change
on this file since 421 was
286,
checked in by campagne, 18 years ago
|
ELYSE sauvegarde provisoire (JEC)
|
File size:
920 bytes
|
Line | |
---|
1 | #include "ELYSE/TrackInformation.hh" |
---|
2 | #include "G4ios.hh" |
---|
3 | |
---|
4 | namespace ELYSE { |
---|
5 | G4Allocator<TrackInformation> aTrackInfoAllocator; |
---|
6 | } |
---|
7 | |
---|
8 | ELYSE::TrackInformation::TrackInformation(const G4Track*) { |
---|
9 | saveit = false; |
---|
10 | drawit = false; |
---|
11 | status = active; |
---|
12 | }//Ctor |
---|
13 | |
---|
14 | |
---|
15 | //------------------------------------------------------------------------ |
---|
16 | void ELYSE::TrackInformation::AddTrackStatusFlag(int s) { |
---|
17 | if(s&active) { //track is now active |
---|
18 | status&=~inactive; //remove any flags indicating it is inactive |
---|
19 | } else if(s&inactive) { //track is now inactive |
---|
20 | status&=~active; |
---|
21 | } else { //remove any flags indicating it is active |
---|
22 | status|=s; //add new flags |
---|
23 | } |
---|
24 | }//AddTrackStatusFlag |
---|
25 | |
---|
26 | //------------------------------------------------------------------------ |
---|
27 | void ELYSE::TrackInformation::Print() const { |
---|
28 | G4cout << "TrackInformation : [" << saveit |
---|
29 | << "]-[" << drawit |
---|
30 | << "]-[" << status << "]" |
---|
31 | << G4endl; |
---|
32 | }//Print |
---|
33 | |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.