8 map<string, double> dgtz;
9 vector<identifier> identity = aHit->
GetId();
22 int slayer = identity[0].id;
23 int stype = identity[1].id;
24 int segment = identity[2].id;
25 int module = identity[3].id;
26 int strip = identity[4].id;
32 cout <<
log_msg <<
" layer: " << slayer <<
" type: " << stype <<
" segment: " << segment <<
" module: "<< module
33 <<
" Strip: " << strip <<
" x=" << tInfos.
x <<
" y=" << tInfos.
y <<
" z=" << tInfos.
z << endl;
36 dgtz[
"slayer"] = slayer;
37 dgtz[
"stype"] = stype;
38 dgtz[
"segment"] = segment;
39 dgtz[
"module"] = module;
40 dgtz[
"strip"] = strip;
45 #define ABS_(x) (x < 0 ? -x : x) 49 vector<identifier> yid = id;
51 enum STR_identifiers {layer=0,type=1,segment=2,module=3,strip=4};
61 double active_width = 38.34;
62 double active_height = 98.33;
63 double readout_pitch = 0.06;
65 G4ThreeVector xyz = aStep->GetPostStepPoint()->GetPosition();
66 G4ThreeVector Lxyz = aStep->GetPreStepPoint()->GetTouchableHandle()->GetHistory()->GetTopTransform().TransformPoint(xyz);
71 if( x < -active_width/2) yid[strip].id = -10;
72 else if ( x > active_width/2) yid[strip].id = -9;
73 else if( y < -active_height/2)yid[strip].id = -8;
74 else if( y > active_height/2) yid[strip].id = -7;
77 int nstrip = (int)((x + active_width/2 )/readout_pitch);
78 yid[strip].id = nstrip;
80 yid[
id.size()-1].id_sharing = 1;
88 map< string, vector <int> > MH;
vector< identifier > GetId()
vector< identifier > processID(vector< identifier >, G4Step *, detector)
map< string, vector< int > > multiDgt(MHit *, int)
map< string, double > integrateDgt(MHit *, int)