ATLAS Offline Software
Loading...
Searching...
No Matches
VP1TriggerDecisionSystem::Clockwork Class Reference
Collaboration diagram for VP1TriggerDecisionSystem::Clockwork:

Public Member Functions

 Clockwork ()
 ~Clockwork ()
void getInfo (const std::string &key, const std::string &, std::ostringstream &os)

Public Attributes

ToolHandle< Trig::TrigDecisionToolm_trigDec
VP1TriggerDecisionSystemtheclass

Detailed Description

Definition at line 20 of file VP1TriggerDecisionSystem.cxx.

Constructor & Destructor Documentation

◆ Clockwork()

VP1TriggerDecisionSystem::Clockwork::Clockwork ( )

Definition at line 33 of file VP1TriggerDecisionSystem.cxx.

34 : m_trigDec("TrigDec::TrigDecisionTool",0), theclass{}
35{
36}
ToolHandle< Trig::TrigDecisionTool > m_trigDec

◆ ~Clockwork()

VP1TriggerDecisionSystem::Clockwork::~Clockwork ( )

Member Function Documentation

◆ getInfo()

void VP1TriggerDecisionSystem::Clockwork::getInfo ( const std::string & key,
const std::string & ,
std::ostringstream & os )

Definition at line 140 of file VP1TriggerDecisionSystem.cxx.

141{
143 os << " Trigger Information: " << std::endl;
144
145 // For LV1 ROI informations
146 if(key.find("L1",0)!= std::string::npos) {
147 os << " LV1: " << key << std::endl;
148 const LVL1CTP::Lvl1Item* l1iterm = m_trigDec->ExperimentalAndExpertMethods().getItemDetails(key);
149 if(l1iterm) {
150 os << " LV1 " << l1iterm->name() << " isPassed: " << l1iterm->isPassed() << std::endl;
151 os << " LV1 " << l1iterm->name() << " isPrescaled: " << l1iterm->isPrescaled()
152 << " : " << l1iterm->prescaleFactor() << std::endl;
153 os << " LV1 " << l1iterm->name() << " isVeto: " << l1iterm->isVeto() << std::endl;
154 }
155 }
156
157 if(key.find("L2",0)!= std::string::npos) {
158 Trig::FeatureContainer fc = m_trigDec->features(key);
159 std::vector<Trig::Feature<TrigRoiDescriptor> > roif = fc.get<TrigRoiDescriptor>();
160 if(!roif.empty()) {
161 os << " LV2: " << key << " VecSize: " << roif.size() << std::endl;
162 std::vector<Trig::Feature<TrigRoiDescriptor> >::iterator roiIt = roif.begin();
163 for ( ;roiIt != roif.end(); ++roiIt ) {
164 const TrigRoiDescriptor* roi = *roiIt;
165 if (!roi) {
166 theclass->message("ERROR: get roi failed");
167 continue;
168 }
169 os << " "<< roiIt->label() << " ROI: "
170 << "(" << roi->eta() << ", " << roi->phi() << ") " << std::endl;
171 }
172 }
173
174 }
175
176 // For EF ROI informations
177 if(key.find("EF",0)!= std::string::npos) {
178 Trig::FeatureContainer fc = m_trigDec->features(key);
179 std::vector<Trig::Feature<TrigRoiDescriptor> > roif = fc.get<TrigRoiDescriptor>();
180 if(!roif.empty()) {
181 os << " EF: " << key << " VecSize: " << roif.size() << std::endl;
182
183 std::vector<Trig::Feature<TrigRoiDescriptor> >::iterator roiIt = roif.begin();
184 for ( ;roiIt != roif.end(); ++roiIt ) {
185 const TrigRoiDescriptor* roi = *roiIt;
186 if (!roi) {
187 theclass->message("ERROR: get roi failed");
188 continue;
189 }
190
191 os << " "<< roiIt->label() << " ROI: "
192 << "(" << roi->eta() << ", " << roi->phi() << ") " << std::endl;
193 }
194 }
195 }
196
197}
Athena::TPCnvVers::Current TrigRoiDescriptor
bool isPassed() const
Definition Lvl1Item.h:53
float prescaleFactor() const
Definition Lvl1Item.h:58
const std::string & name() const
Definition Lvl1Item.h:46
bool isPrescaled() const
Definition Lvl1Item.h:55
bool isVeto() const
Definition Lvl1Item.h:56
virtual double phi() const override final
Methods to retrieve data members.
virtual double eta() const override final
const std::vector< Trig::Feature< T > > get(const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const
returns flattened vector of Features of given type This method is in fact sullied by 3 arguments.
::StatusCode StatusCode
StatusCode definition for legacy code.
status
Definition merge.py:16

Member Data Documentation

◆ m_trigDec

ToolHandle<Trig::TrigDecisionTool> VP1TriggerDecisionSystem::Clockwork::m_trigDec

Definition at line 26 of file VP1TriggerDecisionSystem.cxx.

◆ theclass

VP1TriggerDecisionSystem* VP1TriggerDecisionSystem::Clockwork::theclass

Definition at line 30 of file VP1TriggerDecisionSystem.cxx.


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