ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/src/AnaMenu.cc
(Generate patch)

Comparing UserCode/L1RpcTriggerAnalysis/src/AnaMenu.cc (file contents):
Revision 1.4 by konec, Tue Dec 11 12:49:33 2012 UTC vs.
Revision 1.5 by konec, Sun Dec 16 22:56:15 2012 UTC

# Line 34 | Line 34 | bool AnaMenu::filter( const EventObj* ev
34  
35  
36    bool okL1 = false;
37 <  std::vector<std::string> acceptL1_Names = theConfig.getParameter<std::vector<std::string> >("acceptL1_Names");
37 >  std::vector<std::string> acceptL1_Names = theConfig.exists("acceptL1_Names") ?  theConfig.getParameter<std::vector<std::string> >("acceptL1_Names") : std::vector<std::string>();
38    for (CIT it=algosL1.begin(); it != algosL1.end(); ++it) {
39      std::string nameAlgo = theMenuL1[*it];
40      if (theAlgosL1.find(nameAlgo) == theAlgosL1.end()) theAlgosL1[nameAlgo]=0;    
# Line 48 | Line 48 | bool AnaMenu::filter( const EventObj* ev
48    for (CIT it=algosHLT.begin(); it != algosHLT.end(); ++it) {
49      std::string nameAlgo = theMenuHLT[*it];
50      if (theAlgosHLT.find(nameAlgo) == theAlgosHLT.end()) theAlgosHLT[nameAlgo]=0;    
51 <    bool isMu = (  ((nameAlgo.find("Mu") != std::string::npos) && (nameAlgo.find("Multi") == std::string::npos)) || (nameAlgo.find("muon") != std::string::npos) );
51 >    bool isMu = (    (    (nameAlgo.find("Mu") != std::string::npos   )
52 >                       && (nameAlgo.find("Multi") == std::string::npos) )
53 >                  || (     nameAlgo.find("muon") != std::string::npos   )  );
54 >    if ( theConfig.getParameter<bool>("acceptHLT_OtherThanMuPhysicsAlCa")
55 >         && !isMu
56 >         && (nameAlgo.find("Physics") == std::string::npos)
57 >         && (nameAlgo.find("AlCa") == std::string::npos) ) okHLT = true;
58      if (theConfig.getParameter<bool>("acceptHLT_Mu") && isMu) okHLT = true;
59 <    if (theConfig.getParameter<bool>("acceptHLT_Physics") && (nameAlgo.find("Physics") != std::string::npos) ) okHLT = true;
60 <    if (theConfig.getParameter<bool>("acceptHLT_OtherThanMuAndPhysics") && !isMu && (nameAlgo.find("Physics") == std::string::npos) ) okHLT = true;
59 >    if (theConfig.getParameter<bool>("acceptHLT_L1")       && (nameAlgo.find("HLT_L1")   != std::string::npos) ) okHLT = true;
60 >    if (theConfig.getParameter<bool>("acceptHLT_Physics")  && (nameAlgo.find("Physics")  != std::string::npos) ) okHLT = true;
61      if (theConfig.getParameter<bool>("acceptHLT_ZeroBias") && (nameAlgo.find("ZeroBias") != std::string::npos) ) okHLT = true;
62    }
63  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines