Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ACDthrottle Class Reference

This is Steve Ritz's userAlg code, which develops a preliminary algoritm for throttling the ACD. More...

Inheritance diagram for ACDthrottle:

Algorithm List of all members.

Public Methods

 ACDthrottle (const std::string& name, ISvcLocator* pSvcLocator)
 ctor. More...

StatusCode initialize ()
 set parameters and attach to various perhaps useful services. More...

StatusCode execute ()
 process an event. More...

StatusCode finalize ()
 clean up, summarize. More...


Private Methods

void getParameters ()
 routine to extract parameters from the instrument.xml file. More...

StatusCode fillNtuple ()
 setup our ntuple. More...

float calcTotEnergy (const IVetoData* acdDigiData)
 a little routine to sum the energy deposited in the ACD tiles. More...

bool threeInARow (const SiData* tkrDigiData, unsigned int towerId)
 find three in a row for a given tower. More...

unsigned long TKRtowerbitpattern (const SiData* tkrDigiData, unsigned int towerId)
 calculate the bit pattern in a TKR tower for XY layer coincidences. More...


Private Attributes

IGlastDetSvc* m_detSvc
 the GlastDetSvc used for access to detector info. More...

xml::IFile* m_ini
 constants from the "instrument.xml" file. More...

int m_numTowers
 parameters that can be retrieved from the instrument.xml file. More...

int m_xNumTowers
int m_yNumTowers
int m_xNumTopTiles
int m_yNumTopTiles
int m_nplanes
double m_veto_threshold
double m_mod_width
float m_nhitface0
float m_nhitface1
float m_nhitface2
float m_nhitface3
float m_nhitface4
float m_nhitsiderow0
float m_nhitsiderow1
float m_nhitsiderow2
float m_nhitsiderow3
float m_vetoword
unsigned int assoctile [16][4]
unsigned int assoctileside [16][4]
INTupleWriterSvc* m_ntupleWriteSvc
 access the ntupleWriter service to write out to ROOT ntuples. More...

std::string m_tupleName
 parameter to store the logical name of the ROOT file to write to. More...


Detailed Description

This is Steve Ritz's userAlg code, which develops a preliminary algoritm for throttling the ACD.

Note that there is some redundancy with level1: it should be integrated.
-TB

Definition at line 39 of file ACDthrottle.cxx.


Constructor & Destructor Documentation

ACDthrottle::ACDthrottle ( const std::string & name,
ISvcLocator * pSvcLocator )
 

ctor.

Definition at line 90 of file ACDthrottle.cxx.


Member Function Documentation

unsigned long ACDthrottle::TKRtowerbitpattern ( const SiData * tkrDigiData,
unsigned int towerId ) [private]
 

calculate the bit pattern in a TKR tower for XY layer coincidences.

Definition at line 453 of file ACDthrottle.cxx.

Referenced by threeInARow().

float ACDthrottle::calcTotEnergy ( const IVetoData * acdDigiData ) [private]
 

a little routine to sum the energy deposited in the ACD tiles.

Definition at line 432 of file ACDthrottle.cxx.

StatusCode ACDthrottle::execute ( )
 

process an event.

Definition at line 212 of file ACDthrottle.cxx.

StatusCode ACDthrottle::fillNtuple ( ) [private]
 

setup our ntuple.

Definition at line 408 of file ACDthrottle.cxx.

StatusCode ACDthrottle::finalize ( )
 

clean up, summarize.

Causes the TDS to be searched, if the data is unavailable, the appropriate converter is called to retrieve the data from some persistent store, in this case from an IRF. This call asks for the TdGlastData pointer to be given the variable name glastData. We are asking the event data service, eventSvc(), to provide the data located at "/Event/TdGlastData" which denotes the location of the glast detector data in our Gaudi Event Model.

Definition at line 375 of file ACDthrottle.cxx.

void ACDthrottle::getParameters ( ) [private]
 

routine to extract parameters from the instrument.xml file.

Definition at line 384 of file ACDthrottle.cxx.

StatusCode ACDthrottle::initialize ( )
 

set parameters and attach to various perhaps useful services.

Definition at line 100 of file ACDthrottle.cxx.

bool ACDthrottle::threeInARow ( const SiData * tkrDigiData,
unsigned int towerId ) [private]
 

find three in a row for a given tower.

Definition at line 442 of file ACDthrottle.cxx.


Member Data Documentation

unsigned int ACDthrottle::assoctile[16][4] [private]
 

Definition at line 71 of file ACDthrottle.cxx.

unsigned int ACDthrottle::assoctileside[16][4] [private]
 

Definition at line 72 of file ACDthrottle.cxx.

IGlastDetSvc * ACDthrottle::m_detSvc [private]
 

the GlastDetSvc used for access to detector info.

Definition at line 58 of file ACDthrottle.cxx.

xml::IFile * ACDthrottle::m_ini [private]
 

constants from the "instrument.xml" file.

Definition at line 60 of file ACDthrottle.cxx.

double ACDthrottle::m_mod_width [private]
 

Definition at line 64 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitface0 [private]
 

Definition at line 67 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitface1 [private]
 

Definition at line 67 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitface2 [private]
 

Definition at line 67 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitface3 [private]
 

Definition at line 67 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitface4 [private]
 

Definition at line 67 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitsiderow0 [private]
 

Definition at line 68 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitsiderow1 [private]
 

Definition at line 68 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitsiderow2 [private]
 

Definition at line 68 of file ACDthrottle.cxx.

float ACDthrottle::m_nhitsiderow3 [private]
 

Definition at line 68 of file ACDthrottle.cxx.

int ACDthrottle::m_nplanes [private]
 

Definition at line 62 of file ACDthrottle.cxx.

INTupleWriterSvc * ACDthrottle::m_ntupleWriteSvc [private]
 

access the ntupleWriter service to write out to ROOT ntuples.

Definition at line 75 of file ACDthrottle.cxx.

int ACDthrottle::m_numTowers [private]
 

parameters that can be retrieved from the instrument.xml file.

Definition at line 62 of file ACDthrottle.cxx.

std::string ACDthrottle::m_tupleName [private]
 

parameter to store the logical name of the ROOT file to write to.

Definition at line 77 of file ACDthrottle.cxx.

double ACDthrottle::m_veto_threshold [private]
 

Definition at line 63 of file ACDthrottle.cxx.

float ACDthrottle::m_vetoword [private]
 

Definition at line 69 of file ACDthrottle.cxx.

int ACDthrottle::m_xNumTopTiles [private]
 

Definition at line 62 of file ACDthrottle.cxx.

int ACDthrottle::m_xNumTowers [private]
 

Definition at line 62 of file ACDthrottle.cxx.

int ACDthrottle::m_yNumTopTiles [private]
 

Definition at line 62 of file ACDthrottle.cxx.

int ACDthrottle::m_yNumTowers [private]
 

Definition at line 62 of file ACDthrottle.cxx.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:27 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000