EIC 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 <fun4all_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 220 of file PHG4CylinderGeom_Spacalv3.h.

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

Constructor & Destructor Documentation

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

Definition at line 309 of file PHG4CylinderGeom_Spacalv3.cc.

View newest version in sPHENIX GitHub at line 309 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 318 of file PHG4CylinderGeom_Spacalv3.cc.

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

References 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 225 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 225 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 230 of file PHG4CylinderGeom_Spacalv3.h.

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

References fiber_ID, scint_ID, sector_ID, and tower_ID.

Referenced by PHG4FullProjSpacalCellReco::process_event().

+ Here is the caller graph for this function:

Member Data Documentation

int PHG4CylinderGeom_Spacalv3::scint_id_coder::fiber_ID

Definition at line 243 of file PHG4CylinderGeom_Spacalv3.h.

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

Referenced by identify(), PHG4FullProjSpacalCellReco::process_event(), and scint_id_coder().

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

Definition at line 245 of file PHG4CylinderGeom_Spacalv3.h.

View newest version in sPHENIX GitHub at line 245 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 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().

const int PHG4CylinderGeom_Spacalv3::scint_id_coder::ktower_bit = 11
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().

int PHG4CylinderGeom_Spacalv3::scint_id_coder::scint_ID

Definition at line 240 of file PHG4CylinderGeom_Spacalv3.h.

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

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

int PHG4CylinderGeom_Spacalv3::scint_id_coder::sector_ID

Definition at line 241 of file PHG4CylinderGeom_Spacalv3.h.

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

Referenced by identify(), PHG4FullProjSpacalCellReco::process_event(), and scint_id_coder().

int PHG4CylinderGeom_Spacalv3::scint_id_coder::tower_ID

Definition at line 242 of file PHG4CylinderGeom_Spacalv3.h.

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

Referenced by identify(), PHG4FullProjSpacalCellReco::process_event(), and scint_id_coder().


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