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

Atlfast::SGtester Class Reference

ClusterMaking is currently defined as a process which uses Cells from the TES and forms Clusters from them. More...

#include <SGtester.h>

Collaboration diagram for Atlfast::SGtester:

Collaboration graph
[legend]
List of all members.

Public Methods

 SGtester (const std::string &name, ISvcLocator *pSvcLocator)
 Standard Athena-Atlfast Constructor.

virtual ~SGtester ()
 Default Destructor.

StatusCode initialize ()
 Standard Athena-Algorithm method.

StatusCode execute ()
 Standard Athena-Algorithm method.

StatusCode finalize ()
 Standard Athena-Algorithm method.


Private Attributes

std::string m_outputLocation1
 TES output Cluster location.

std::string m_outputLocation2
TesIO * m_tesIO
 helper class to deal with TES I/O 1


Detailed Description

ClusterMaking is currently defined as a process which uses Cells from the TES and forms Clusters from them.

The strategy employed is to sum all Cells in a given R-cone around an initiator.
[Note: This might be more correctly called pre-jet formation as the R-cones are of jet size and therefore this algorithm does not really correspond to the normal notion of forming clusters from,say, adjacent energy deposits.]

Definition at line 39 of file SGtester.h.


Constructor & Destructor Documentation

Atlfast::SGtester::SGtester const std::string &    name,
ISvcLocator *    pSvcLocator
 

Standard Athena-Atlfast Constructor.

Definition at line 49 of file SGtester.cxx.

00050     : Algorithm( name, pSvcLocator ){
00051     
00052     m_outputLocation1      = "/Event/SGtesterLocation1";
00053     m_outputLocation2      = "/Event/SGtesterLocation2";
00054   }

Atlfast::SGtester::~SGtester   [virtual]
 

Default Destructor.

Definition at line 57 of file SGtester.cxx.

References m_tesIO.

00057                       {
00058     if(m_tesIO){ 
00059       delete m_tesIO;
00060     }
00061   } 

Member Function Documentation

StatusCode Atlfast::SGtester::initialize  
 

Standard Athena-Algorithm method.

Definition at line 68 of file SGtester.cxx.

References m_outputLocation1, m_outputLocation2, and m_tesIO.

00068                                  {
00069  
00070    MsgStream log( messageService(), name() ) ;
00071    log << MSG::DEBUG<< "Cluster Maker initialising " << endreq;
00072  
00073 
00074    //    m_tesIO = new TesIO( eventDataService() );
00075    m_tesIO = new TesIO();
00076 
00077     HeaderPrinter hp("Atlfast SGtester: ", log);
00078     hp.add("Output Location1             ", m_outputLocation1);    
00079     hp.add("Output Location2             ", m_outputLocation2);    
00080     hp.print();
00081 
00082     return StatusCode::SUCCESS ;
00083   }

StatusCode Atlfast::SGtester::execute  
 

Standard Athena-Algorithm method.

Definition at line 105 of file SGtester.cxx.

References m_outputLocation1, and m_tesIO.

00105                                {
00106     MsgStream log( messageService(), name() ) ;
00107     std::string message;
00108     //.........................................................
00109     // Extract the elements (cells, tracks..) from the TES 
00110     //
00111     //copy to vector -cannot use DataVector fo r type change!
00112     //    CellCollection* v1     = new CellCollection;
00113     //    CellCollection* v2     = new CellCollection;
00114     //    std::vector<ITwoCptCell*>* v2 = new std::vector<ITwoCptCell*>; // no ClassID
00115     DataVector<ITwoCptCell>* v1 = new DataVector<ITwoCptCell>;
00116     //    DataVector<MyBigClass>* v1 = new DataVector<MyBigClass>;
00117     for(int i =0; i!=10000; ++i){
00118       //      ITwoCptCell* c = new TwoCptCell;
00119       //      MyBigClass* c = new MyBigClass;
00120       ITwoCptCell* c = new TwoCptCell;
00121       v1->push_back(c);
00122     }
00123     //......................................
00124     // Set up for conversions of unused IKinematics back to concrete types
00125     //
00126 
00127     //Register the newly made clusters
00128     TesIoStat stat;
00129     stat = m_tesIO -> store(v1, m_outputLocation1);
00130     message = stat ?  "v1":"Failed to store v1 ";
00131     log<<MSG::DEBUG<<message<<endreq;
00132 
00133     //    stat = m_tesIO -> store(v2, m_outputLocation2);
00134     //    message = stat ?  "v2":"Failed to store v2 ";
00135     //    log<<MSG::DEBUG<<message<<endreq;
00136     return stat ;
00137     
00138   }

StatusCode Atlfast::SGtester::finalize  
 

Standard Athena-Algorithm method.

Definition at line 89 of file SGtester.cxx.

00089                                {
00090     return StatusCode::SUCCESS ;
00091   }

Member Data Documentation

std::string Atlfast::SGtester::m_outputLocation1 [private]
 

TES output Cluster location.

Definition at line 72 of file SGtester.h.

Referenced by execute(), and initialize().

std::string Atlfast::SGtester::m_outputLocation2 [private]
 

Definition at line 73 of file SGtester.h.

Referenced by initialize().

TesIO* Atlfast::SGtester::m_tesIO [private]
 

helper class to deal with TES I/O 1

Definition at line 76 of file SGtester.h.

Referenced by execute(), initialize(), and ~SGtester().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:18:59 2003 for AtlfastAlgs by doxygen1.3-rc1