ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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 }

◆ ~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 }

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:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
VP1TriggerDecisionSystem::Clockwork::m_trigDec
ToolHandle< Trig::TrigDecisionTool > m_trigDec
Definition: VP1TriggerDecisionSystem.cxx:26
LVL1CTP::Lvl1Item::isPassed
bool isPassed() const
Definition: Lvl1Item.h:53
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
LVL1CTP::Lvl1Item::isVeto
bool isVeto() const
Definition: Lvl1Item.h:56
VP1TriggerDecisionSystem::Clockwork::theclass
VP1TriggerDecisionSystem * theclass
Definition: VP1TriggerDecisionSystem.cxx:30
Trig::FeatureContainer
Definition: FeatureContainer.h:54
LVL1CTP::Lvl1Item
Definition: Lvl1Item.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
Trig::FeatureContainer::get
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.
Definition: FeatureContainer.h:151
RoiDescriptor::phi
virtual double phi() const override final
Methods to retrieve data members.
Definition: RoiDescriptor.h:100
RoiDescriptor::eta
virtual double eta() const override final
Definition: RoiDescriptor.h:101
merge.status
status
Definition: merge.py:17
LVL1CTP::Lvl1Item::prescaleFactor
float prescaleFactor() const
Definition: Lvl1Item.h:58
LVL1CTP::Lvl1Item::isPrescaled
bool isPrescaled() const
Definition: Lvl1Item.h:55
LVL1CTP::Lvl1Item::name
const std::string & name() const
Definition: Lvl1Item.h:46
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37