Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CylinderGeom_Spacalv3::scint_id_coder Class Reference

compact ID of each fiber in 32bit PHG4Hit::set_scint_id(). Buffer the result for repeated use. More...

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4CylinderGeom_Spacalv3.h>

Public Member Functions

 scint_id_coder (int scint_id)
 
 scint_id_coder (int sector_id, int tower_id, int fiber_id)
 
virtual ~scint_id_coder ()
 
virtual void identify (std::ostream &os=std::cout) const
 

Public Attributes

int scint_ID
 
int sector_ID
 
int tower_ID
 
int fiber_ID
 

Static Public Attributes

static const int kfiber_bit = 13
 
static const int ktower_bit = 11
 
static const int ksector_bit = 8
 

Detailed Description

compact ID of each fiber in 32bit PHG4Hit::set_scint_id(). Buffer the result for repeated use.

Definition at line 221 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 221 of file PHG4CylinderGeom_Spacalv3.h

Constructor & Destructor Documentation

PHG4CylinderGeom_Spacalv3::scint_id_coder::scint_id_coder ( int  scint_id)
explicit

Definition at line 305 of file PHG4CylinderGeom_Spacalv3.cc.

View newest version in sPHENIX GitHub at line 305 of file PHG4CylinderGeom_Spacalv3.cc

References fiber_ID, kfiber_bit, ksector_bit, ktower_bit, scint_ID, sector_ID, and tower_ID.

PHG4CylinderGeom_Spacalv3::scint_id_coder::scint_id_coder ( int  sector_id,
int  tower_id,
int  fiber_id 
)

Definition at line 313 of file PHG4CylinderGeom_Spacalv3.cc.

View newest version in sPHENIX GitHub at line 313 of file PHG4CylinderGeom_Spacalv3.cc

References assert, fiber_ID, kfiber_bit, ksector_bit, ktower_bit, scint_ID, sector_ID, and tower_ID.

virtual PHG4CylinderGeom_Spacalv3::scint_id_coder::~scint_id_coder ( )
inlinevirtual

Definition at line 226 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 226 of file PHG4CylinderGeom_Spacalv3.h

Member Function Documentation

virtual void PHG4CylinderGeom_Spacalv3::scint_id_coder::identify ( std::ostream &  os = std::cout) const
inlinevirtual

Definition at line 231 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 231 of file PHG4CylinderGeom_Spacalv3.h

References fiber_ID, os, scint_ID, sector_ID, and tower_ID.

Referenced by PHG4SpacalSteppingAction::NoHitSteppingAction(), and PHG4FullProjSpacalCellReco::process_event().

+ Here is the caller graph for this function:

Member Data Documentation

const int PHG4CylinderGeom_Spacalv3::scint_id_coder::kfiber_bit = 13
static

Definition at line 246 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 246 of file PHG4CylinderGeom_Spacalv3.h

Referenced by scint_id_coder(), and PHG4SpacalSteppingAction::UserSteppingAction().

const int PHG4CylinderGeom_Spacalv3::scint_id_coder::ksector_bit = 8
static

Definition at line 248 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 248 of file PHG4CylinderGeom_Spacalv3.h

Referenced by scint_id_coder().

const int PHG4CylinderGeom_Spacalv3::scint_id_coder::ktower_bit = 11
static

Definition at line 247 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 247 of file PHG4CylinderGeom_Spacalv3.h

Referenced by scint_id_coder().


The documentation for this class was generated from the following files: