#include <VisReco/VisTrigger/interface/VisL1MuDTChambThContainerTwig.h>
Public Member Functions | |
virtual void | onNewEvent (const edm::Event &event, const edm::EventSetup &eventSetup) |
virtual void | update (IgTextRep *rep) |
virtual void | update (Ig3DRep *rep) |
VisL1MuDTChambThContainerTwig (IgState *state, IgTwig *parent, const std::string &name, const std::string &friendlyName="", const std::string &moduleLabel="", const std::string &instanceName="", const std::string &processName="") | |
Private Attributes | |
QString | m_decision |
std::string | m_friendlyName |
std::string | m_instanceName |
std::string | m_moduleLabel |
edm::ESHandle< DTGeometry > | m_pDD |
std::vector< L1MuDTChambThDigi > * | m_phiContainer |
std::string | m_processName |
IgState * | m_state |
std::string | m_text |
Definition at line 20 of file VisL1MuDTChambThContainerTwig.h.
VisL1MuDTChambThContainerTwig::VisL1MuDTChambThContainerTwig | ( | IgState * | state, | |
IgTwig * | parent, | |||
const std::string & | name, | |||
const std::string & | friendlyName = "" , |
|||
const std::string & | moduleLabel = "" , |
|||
const std::string & | instanceName = "" , |
|||
const std::string & | processName = "" | |||
) |
Definition at line 49 of file VisL1MuDTChambThContainerTwig.cc.
References createThisTwig(), edm::TypeID::friendlyClassName(), DBSPlugin::get(), and VisTwigFactroyService::registerTwig().
00055 : VisQueuedTwig (state, parent, name), 00056 m_state (state), 00057 m_text ("no info"), 00058 m_friendlyName (friendlyName), 00059 m_moduleLabel (moduleLabel), 00060 m_instanceName (instanceName), 00061 m_processName (processName) 00062 { 00063 VisTwigFactroyService *tfService = VisTwigFactroyService::get (state); 00064 if (! tfService) 00065 { 00066 tfService = new VisTwigFactroyService (state); 00067 } 00068 edm::TypeID triggerID (typeid (L1MuDTChambThContainer)); 00069 tfService->registerTwig (triggerID.friendlyClassName (), &createThisTwig); 00070 }
void VisL1MuDTChambThContainerTwig::onNewEvent | ( | const edm::Event & | event, | |
const edm::EventSetup & | eventSetup | |||
) | [virtual] |
Reimplemented from VisQueuedTwig.
Definition at line 73 of file VisL1MuDTChambThContainerTwig.cc.
References arg, GenMuonPlsPt100GeV_cfg::cout, e, lat::endl(), exception, i, edm::Event::id(), edm::Handle< T >::isValid(), VisQueuedTwig::m_onCmsException, VisQueuedTwig::m_onError, VisQueuedTwig::m_onException, VisQueuedTwig::m_onUnhandledException, m_phiContainer, m_text, VisQueuedTwig::onBaseInvalidate(), VisQueuedTwig::onNewEvent(), and DetId::rawId().
00075 { 00076 // Get debugging dump. 00077 VisQueuedTwig::onNewEvent (event, eventSetup); 00078 00079 m_text = (QString ("Run # %1, event # %2") 00080 .arg (event.id ().run ()) 00081 .arg (event.id ().event ()).latin1 ()); 00082 00083 try 00084 { 00085 edm::Handle<L1MuDTChambThContainer> l1dtlocalphi; 00086 event.getByType (l1dtlocalphi); 00087 if (l1dtlocalphi.isValid ()) 00088 { 00089 m_phiContainer = l1dtlocalphi->getContainer(); 00090 std::cout << "ThiContainer: " << m_phiContainer->size () << std::endl; 00091 00092 for (std::vector<L1MuDTChambThDigi>::const_iterator i = m_phiContainer->begin (), iEnd = m_phiContainer->end (); i != iEnd; ++i) 00093 { 00094 int thwheel = i->whNum (); 00095 int thsec = i->scNum () + 1; // SM The track finder goes from 0 to 11. I need them from 1 to 12 !!!!! 00096 int thst = i->stNum (); 00097 int thbx = i->bxNum (); 00098 00099 DTChamberId dtChId (thwheel, thst, thsec); 00100 uint32_t indexCh = dtChId.rawId (); 00101 uint32_t indexScWh = 5 * (thsec - 1) + (thwheel + 3) ; // wheel + sector identifier 00102 00103 std::cout << "Wheel " << thwheel << "; Station " << thst << "; Sector " << thsec << std::endl; 00104 } 00105 } 00106 } 00107 catch (cms::Exception& e) 00108 { 00109 if (this->m_onCmsException) 00110 this->m_onCmsException (&e); 00111 } 00112 catch (lat::Error &e) 00113 { 00114 if (this->m_onError) 00115 this->m_onError (&e); 00116 } 00117 catch (std::exception &e) 00118 { 00119 if (this->m_onException) 00120 this->m_onException (&e); 00121 } 00122 catch (...) 00123 { 00124 if (this->m_onUnhandledException) 00125 this->m_onUnhandledException (); 00126 } 00127 00128 VisQueuedTwig::onBaseInvalidate (); 00129 }
Reimplemented from VisQueuedTwig.
Definition at line 141 of file VisL1MuDTChambThContainerTwig.cc.
References m_decision, m_text, IgTextRep::setText(), and VisQueuedTwig::update().
00142 { 00143 // Get debugging dump. 00144 VisQueuedTwig::update (rep); 00145 00146 // Prepare the property description. 00147 std::ostringstream text; 00148 00149 text << m_text; 00150 00151 text << setiosflags (std::ios::showpoint | std::ios::fixed); 00152 text.setf (std::ios::right, std::ios::adjustfield); 00153 text << "<table width='100%' border=1>" 00154 << "<TR align = center>" 00155 << "<TH>DetId</TH>" 00156 << "<TH>Wheel</TH>" 00157 << "<TH>Station</TH>" 00158 << "<TH>Sector</TH>" 00159 << "</TR>"; 00160 00161 text << "<TR><TH>" << m_decision.latin1 () << "</TH></TR>"; 00162 00163 text << "</table>"; 00164 00165 IgQtLock (); 00166 rep->setText (text.str ()); 00167 }
Reimplemented from VisQueuedTwig.
Definition at line 132 of file VisL1MuDTChambThContainerTwig.cc.
References VisQueuedTwig::update().
00133 { 00134 // Get debugging dump. 00135 VisQueuedTwig::update (rep); 00136 00137 IgQtLock (); 00138 }
QString VisL1MuDTChambThContainerTwig::m_decision [private] |
std::string VisL1MuDTChambThContainerTwig::m_friendlyName [private] |
Definition at line 41 of file VisL1MuDTChambThContainerTwig.h.
std::string VisL1MuDTChambThContainerTwig::m_instanceName [private] |
Definition at line 43 of file VisL1MuDTChambThContainerTwig.h.
std::string VisL1MuDTChambThContainerTwig::m_moduleLabel [private] |
Definition at line 42 of file VisL1MuDTChambThContainerTwig.h.
Definition at line 47 of file VisL1MuDTChambThContainerTwig.h.
std::vector<L1MuDTChambThDigi>* VisL1MuDTChambThContainerTwig::m_phiContainer [private] |
std::string VisL1MuDTChambThContainerTwig::m_processName [private] |
Definition at line 44 of file VisL1MuDTChambThContainerTwig.h.
IgState* VisL1MuDTChambThContainerTwig::m_state [private] |
std::string VisL1MuDTChambThContainerTwig::m_text [private] |
Definition at line 40 of file VisL1MuDTChambThContainerTwig.h.
Referenced by onNewEvent(), and update().