ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/plugins/HbbTreeMaker.cc
(Generate patch)

Comparing UserCode/HbbAnalysis/plugins/HbbTreeMaker.cc (file contents):
Revision 1.43 by amagnan, Mon Sep 5 17:15:15 2011 UTC vs.
Revision 1.44 by agilbert, Mon Oct 10 08:54:09 2011 UTC

# Line 668 | Line 668 | void HbbTreeMaker::HbbElectrons(const ed
668            lReco.vy = (*iter).vy();
669            lReco.vz = (*iter).vz();
670            lReco.hltMatch = (*iter).triggerObjectMatches().size();
671 <          
672 <          HbbAnalysis::SCVars lSC;
671 >    
672 >    //TESTING CODE
673 >    /*
674 >    std::cout << "-----------------------------------------------" << std::endl;
675 >    std::cout << "Electron: " << iEle << std::endl;
676 >    std::cout << "--Found " << (*iter).triggerObjectMatches().size() << " matched trigger objects" << std::endl;
677 >    for (unsigned i = 0; i < (*iter).triggerObjectMatches().size(); ++i){
678 >      std::vector<std::string> HLTpathNames = (*iter).triggerObjectMatches().at(i).pathNames(1);
679 >      std::cout << "---HLT Path Names:" << std::endl;
680 >      for (unsigned j = 0; j < HLTpathNames.size(); ++j){
681 >        std::cout << "----" << HLTpathNames.at(j) << std::endl;
682 >      }
683 >      std::vector<std::string> HLTfilterLabels = (*iter).triggerObjectMatches().at(i).filterLabels();
684 >      std::cout << "---HLT FilterLabels:" << std::endl;
685 >      for (unsigned j = 0; j < HLTfilterLabels.size(); ++j){
686 >        std::cout << "----" << HLTfilterLabels.at(j) << std::endl;
687 >      }
688 >    }
689 >    */
690 >    
691 >    
692 >    HbbAnalysis::SCVars lSC;
693            if ( (*iter).superCluster().isAvailable() && (*iter).superCluster().isNonnull() )
694              lSC.eta = (*iter).superCluster()->eta();
695            else lSC.eta = lReco.eta;
# Line 774 | Line 794 | void HbbTreeMaker::HbbMuons(const edm::H
794            lReco.vz = (*iter).vz();
795      lReco.hltMatch = (*iter).triggerObjectMatches().size();
796  
797 <          HbbAnalysis::MuTrkVars lTrk;
797 >    //TESTING CODE
798 >    /*
799 >    std::cout << "-----------------------------------------------" << std::endl;
800 >    std::cout << "Muon: " << iEle << std::endl;
801 >    std::cout << "--Found " << (*iter).triggerObjectMatches().size() << " matched trigger objects" << std::endl;
802 >    for (unsigned i = 0; i < (*iter).triggerObjectMatches().size(); ++i){
803 >      std::vector<std::string> HLTpathNames = (*iter).triggerObjectMatches().at(i).pathNames(1);
804 >      std::cout << "---HLT Path Names:" << std::endl;
805 >      for (unsigned j = 0; j < HLTpathNames.size(); ++j){
806 >        std::cout << "----" << HLTpathNames.at(j) << std::endl;
807 >      }
808 >      std::vector<std::string> HLTfilterLabels = (*iter).triggerObjectMatches().at(i).filterLabels();
809 >      std::cout << "---HLT FilterLabels:" << std::endl;
810 >      for (unsigned j = 0; j < HLTfilterLabels.size(); ++j){
811 >        std::cout << "----" << HLTfilterLabels.at(j) << std::endl;
812 >      }
813 >    }
814 >    */
815 >          
816 >      
817 >    HbbAnalysis::MuTrkVars lTrk;
818            reco::TrackRef glmuon = recoMuon->globalTrack();
819            reco::TrackRef tkmuon = recoMuon->innerTrack();
820  
# Line 1637 | Line 1677 | void HbbTreeMaker::HbbTrigger(const edm:
1677  
1678      //for (unsigned int j=0; j<hltPaths_.size(); j++) {
1679      //bool valid=false;
1680 +    /*TESTING
1681 +    std::cout << "-Event Trigger List" << std::endl;
1682      for (unsigned int i=0; i<aCol->size(); ++i){
1683        std::string trueName = aNames.triggerName(i);//.at(i);
1684 <
1684 >      //if (aCol->accept(i)){
1685 >        std::cout << "--" << trueName << "(" << aCol->accept(i) << ")" << std::endl;
1686 >      //}
1687 >     */
1688        HbbAnalysis::TriggerVars lTrigVars;
1689        lTrigVars.name = trueName;
1690        lTrigVars.index = i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines