Inheritance diagram for GcrSelectValsTool:


Public Member Functions | |
| GcrSelectValsTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual | ~GcrSelectValsTool () |
| StatusCode | initialize () |
| StatusCode | calculate () |
Private Attributes | |
| double | m_GcrSelect [NTOW *NLAY *NCOL] |
| float | m_inferedZ |
Static Private Attributes | |
| const int | NTOW = 16 |
| const int | NLAY = 8 |
| const int | NCOL = 12 |
Definition at line 62 of file GcrSelectValsTool.cxx.
|
||||||||||||||||
|
Definition at line 91 of file GcrSelectValsTool.cxx.
00094 : ValBase( type, name, parent ) 00095 { 00096 // Declare additional interface 00097 declareInterface<IValsTool>(this); 00098 } |
|
|
Definition at line 69 of file GcrSelectValsTool.cxx.
00069 { }
|
|
|
std::printf("%10.4f \n", p_gcrSelectedXtal->getPathLength()); fflush(stdout); FOR DEBUG: DISPLAY m_GcrSelect int i; for(int itow=0; itow<NTOW;itow++) for (int ilay=0;ilay<NLAY;ilay++) for(int icol=0;icol<NCOL;icol++) { i=(itow*NLAY+ilay)*NCOL+icol; if(m_GcrSelect[i]>0) log << MSG::INFO << "m_GcrSelect["<<itow<<","<<icol<<","<<ilay <<"]= "<< m_GcrSelect[i] << endreq; } Reimplemented from ValBase. Definition at line 119 of file GcrSelectValsTool.cxx. References m_GcrSelect, m_inferedZ, ValBase::m_pEventSvc, NCOL, NLAY, and NTOW.
00120 {
00121 StatusCode sc = StatusCode::SUCCESS;
00122
00123 // Retrieve the calMipTrack collection
00124
00125 MsgStream log(msgSvc(), name());
00126 //log << MSG::INFO << "BEGIN calculate in GcrSelectValsTool" << endreq;
00127
00128 //INITIALISATION OF m_GcrSelect
00129 int j;
00130 for(int itow=0; itow<NTOW;itow++)
00131 for (int ilay=0;ilay<NLAY;ilay++)
00132 for(int icol=0;icol<NCOL;icol++)
00133 {
00134 j=(itow*NLAY+ilay)*NCOL+icol;
00135 m_GcrSelect[j]=-1000;
00136
00137 }
00138
00139
00140 SmartDataPtr<Event::GcrXtalCol> p_gcrXtalCol(m_pEventSvc, EventModel::CalRecon::GcrXtalCol);
00141 m_inferedZ=-1000;
00142 if(p_gcrXtalCol){
00143 int i=0;
00144 int itow,ilay,icol;
00145 for(Event::GcrXtalCol::const_iterator gcrXtalIter=p_gcrXtalCol->begin(); gcrXtalIter != p_gcrXtalCol->end(); gcrXtalIter++)
00146 {
00147 Event::GcrXtal* p_gcrXtal = *gcrXtalIter;
00148
00149 //Event::CalXtalRecData* xtalData = p_gcrSelectedXtal->getXtal();
00150 idents::CalXtalId xtalId = p_gcrXtal->getXtalId();
00151 itow = xtalId.getTower();
00152 ilay = xtalId.getLayer();
00153 icol = xtalId.getColumn();
00154
00155 i=(itow*NLAY+ilay)*NCOL+icol;
00156 //log << MSG::INFO << "GcrSelValsTool::calculate p_gcrSelectedXtal->getInferedZ()=" << p_gcrSelectedXtal->getInferedZ()<< endreq;
00157
00161 m_GcrSelect[i] = p_gcrXtal->getPathLength();
00162
00163 }
00164
00165 }
00166 else{
00167 log << MSG::INFO << "no gcrXtalCol found " << endreq;
00168
00169 }
00182 //log << MSG::INFO << "END calculate in GcrSelectValsTool End " << endreq;
00183 return sc;
00184 }
|
|
|
Reimplemented from ValBase. Definition at line 100 of file GcrSelectValsTool.cxx. References ValBase::addItem(), ValBase::initialize(), and m_GcrSelect.
00101 {
00102
00103
00104 //std::cout << "BEGIN initialize in GcrSelectValsTool" << std::endl;
00105 StatusCode sc = StatusCode::SUCCESS;
00106
00107 MsgStream log(msgSvc(), name());
00108
00109 if( ValBase::initialize().isFailure()) return StatusCode::FAILURE;
00110
00111
00112
00113 addItem("GcrSelect[1536]", m_GcrSelect);
00114 //std::cout << "END initialize in GcrSelectValsTool" << std::endl;
00115
00116 return sc;
00117 }
|
|
|
Definition at line 81 of file GcrSelectValsTool.cxx. Referenced by calculate(), and initialize(). |
|
|
Definition at line 82 of file GcrSelectValsTool.cxx. Referenced by calculate(). |
|
|
Definition at line 79 of file GcrSelectValsTool.cxx. Referenced by calculate(). |
|
|
Definition at line 78 of file GcrSelectValsTool.cxx. Referenced by calculate(). |
|
|
Definition at line 77 of file GcrSelectValsTool.cxx. Referenced by calculate(). |
1.3.3