diff --git a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfigMT_Ntuple.cxx b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfigMT_Ntuple.cxx index 0062f100314f961b4ac81c8bab6b751ffeb6f47d..ee7150200eba1e8eb1b99e69a441b4e8473ac6f0 100644 --- a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfigMT_Ntuple.cxx +++ b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfigMT_Ntuple.cxx @@ -235,78 +235,8 @@ void AnalysisConfigMT_Ntuple::loop() { if ( requireDecision() ) decisiontype_ = TrigDefs::requireDecision; -#if 0 - /// stupid TDT debug - { - std::cout << "SUTT status of all chains " << std::endl; - std::vector<std::string> configuredChains = (*m_tdt)->getListOfTriggers("L2_.*, EF_.*, HLT_.*"); - - m_provider->msg(MSG::INFO) << "[91;1m" << configuredChains.size() << " Configured Chains" << "[m" << endmsg; - - int npassed = 0; - - std::vector<std::string> passed; - - - - for ( unsigned i=0 ; i<configuredChains.size() ; i++ ) { - - std::string chainName = configuredChains[i]; - -#if 0 - std::cout << "[91;1m" << "Chain " << configuredChains[i] - << "\tpassed: " << (*m_tdt)->isPassed(configuredChains[i], decisiontype_ ) << " ( type " << decisiontype_ << ") : " - << "\trequiredec: " << (*m_tdt)->isPassed(configuredChains[i], TrigDefs::requireDecision) << " (ACN)[m" << std::endl; -#endif - if ( (*m_tdt)->isPassed(configuredChains[i], decisiontype_ ) ) { - npassed++; - passed.push_back(configuredChains[i]); - } - - - - if ( chainName.find("_split")!=std::string::npos ) { - - Trig::FeatureContainer f = (*m_tdt)->features( chainName ); - Trig::FeatureContainer::combination_const_iterator comb(f.getCombinations().begin()); - Trig::FeatureContainer::combination_const_iterator combEnd(f.getCombinations().end()); - - while ( comb!=combEnd ) { - - std::string vnames[2] = { "xPrimVx", "EFHistoPrmVtx" }; - - for ( unsigned iv=0 ; iv<2 ; iv++ ) { - std::vector< Trig::Feature<xAOD::VertexContainer> > fvtx = comb->get<xAOD::VertexContainer>( vnames[iv] ); - - for ( unsigned ivt=0 ; ivt<fvtx.size() ; ivt++ ) { - - const xAOD::VertexContainer* vert = fvtx[ivt].cptr(); - - xAOD::VertexContainer::const_iterator vit = vert->begin(); - - for ( ; vit != vert->end(); ++vit ) { - std::cout << "\t" << vnames[iv] - << "\tx " << (*vit)->x() << "\ty " << (*vit)->y() << "\tz " << (*vit)->z() - << "\tntracks " << (*vit)->nTrackParticles() - << std::endl; - } - } - } - - comb++; - } - } - } - - } -#endif - - - /// bomb out if no chains passed and not told to keep all events - - int passed_chains = 0; m_provider->msg(MSG::INFO) << "Checking " << m_chainNames.size() << " chains" << endmsg; @@ -632,7 +562,7 @@ void AnalysisConfigMT_Ntuple::loop() { // std::cout << "SUTT Nvertices " << vertices.size() << "\ttype 101 " << vertices_full.size() << std::endl; for ( unsigned i=0 ; i<vertices.size() ; i++ ) { - m_provider->msg(MSG::INFO) << "vertex " << i << " " << vertices[i] << endmsg; + m_provider->msg(MSG::DEBUG) << "vertex " << i << " " << vertices[i] << endmsg; m_event->addVertex(vertices[i]); } diff --git a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfig_Ntuple.cxx b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfig_Ntuple.cxx index 78e4c0989100e83197bfd1530cea343fc2778be7..5166445fc35ecc6662550df6a4dda6cc928bf6c6 100644 --- a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfig_Ntuple.cxx +++ b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/AnalysisConfig_Ntuple.cxx @@ -1764,8 +1764,6 @@ void AnalysisConfig_Ntuple::book() { m_provider->msg(MSG::INFO) << "[91;1m" << " booking ntuple" << "[m" << endmsg; m_provider->msg(MSG::INFO) << "[91;1m" << " trying to create new ntple file" << "[m" << endmsg; - gDirectory->pwd(); - /// save the current directory so we can return there after TDirectory* dir = gDirectory; @@ -1784,8 +1782,6 @@ void AnalysisConfig_Ntuple::book() { m_provider->msg(MSG::INFO) << "book() Writing to file " << outputFileName << endmsg; - gDirectory->pwd(); - if ( first_open || genericFlag() ) { /// create a brand new ntple mFile = new TFile( outputFileName.c_str(), "recreate"); diff --git a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/TrigTestMonToolAC.cxx b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/TrigTestMonToolAC.cxx index 5cd63ff43884d5a23f006164c674071ede6c1be5..562d9a1c142505681fc695be6e754b8446f41506 100644 --- a/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/TrigTestMonToolAC.cxx +++ b/Trigger/TrigAnalysis/TrigInDetAnalysisExample/src/TrigTestMonToolAC.cxx @@ -126,8 +126,6 @@ StatusCode TrigTestMonToolAC::init() { msg(MSG::INFO) << "TrigTestMonToolAC::init() " << gDirectory->GetName() << " " << __DATE__ << endmsg; - std::cout << "SUTT TrigTestMonToolAC::init() SUTT buildNtuple " << m_buildNtuple << " " << __DATE__ << std::endl; - // roi width information // m_roiInfo.etaHalfWidth(m_etaWidth); // m_roiInfo.phiHalfWidth(m_phiWidth); @@ -135,17 +133,11 @@ StatusCode TrigTestMonToolAC::init() { if ( m_buildNtuple ) { if ( m_tdt->getNavigationFormat() == "TriggerElement" ) { - - std::cout << "\n\nSUTT creating AnalysisConfig_Ntuple() COCK !!!\n\n" << std::endl; - m_sequences.push_back( new AnalysisConfig_Ntuple( &m_roiInfo, m_ntupleChainNames, m_outputFileName, m_tauEtCutOffline, m_selectTruthPdgId, m_keepAllEvents ) ); } else { - - std::cout << "\n\nSUTT creating AnalysisConfigMT_Ntuple()\n\n" << std::endl; - m_sequences.push_back( new AnalysisConfigMT_Ntuple( &m_roiInfo, m_ntupleChainNames, m_outputFileName, m_tauEtCutOffline, m_selectTruthPdgId, m_keepAllEvents ) ); @@ -184,7 +176,7 @@ StatusCode TrigTestMonToolAC::book(bool newEventsBlock, bool newLumiBlock, bool bool newRun = newRunFlag(); #endif - msg(MSG::DEBUG) << "TrigTestMonToolAC::book() SUTT buildNtuple " << m_buildNtuple + msg(MSG::DEBUG) << "TrigTestMonToolAC::book() buildNtuple " << m_buildNtuple << "\tNewEventBlock " << newEventsBlock << "\tNewLumiBlock " << newLumiBlock << "\tNewRun " << newRun << std::endl;