Skip to content
Snippets Groups Projects
Commit a9a1a8aa authored by Mark Sutton's avatar Mark Sutton Committed by Adam Edward Barton
Browse files

Allow selection of CP recommendations but with additional selection

The CP recommendations for tight offline still allow a small number
of tracks with no pixel hits.

The selection allows an additional requirement for at least one
piixel hit to be included.
parent 52722fb6
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,11 @@ public: ...@@ -57,7 +57,11 @@ public:
while( !infile.fail() ) { while( !infile.fail() ) {
std::string file; std::string file;
infile >> file; infile >> file;
if ( !infile.fail() && file.find(".root")!=std::string::npos && file.find(".part")==std::string::npos ) push_back( s+"/"+file ); if ( !infile.fail() &&
file.find(".root")!=std::string::npos &&
file.find(".part")==std::string::npos &&
file.find(".bak")==std::string::npos &&
file.find(".skimmed")==std::string::npos ) push_back( s+"/"+file );
} }
// for ( unsigned i=size() ; i-- ; ) std::cout << at(i) << std::endl; // for ( unsigned i=size() ; i-- ; ) std::cout << at(i) << std::endl;
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
atlas_subdir( TrigInDetAnalysisUser ) atlas_subdir( TrigInDetAnalysisUser )
# External dependencies: # External dependencies:
find_package( ROOT COMPONENTS Core Hist MathCore Graf Gpad RIO Tree ) find_package( ROOT COMPONENTS Core Hist MathCore Graf Graf3d Gpad RIO Tree )
atlas_disable_as_needed()
# Libraries in the package: # Libraries in the package:
atlas_add_root_dictionary( Resplot atlas_add_root_dictionary( Resplot
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
} }
else if ( m_type=="tight" ) { else if ( m_type=="tight" || m_type=="vtight" ) {
if ( std::fabs(t->eta())>2.5 || std::fabs(t->pT())<m_pTMin ) selected = false; if ( std::fabs(t->eta())>2.5 || std::fabs(t->pT())<m_pTMin ) selected = false;
// Select track silicon hit content // Select track silicon hit content
...@@ -70,6 +70,8 @@ public: ...@@ -70,6 +70,8 @@ public:
/// require a blayer (ibl in run2) hit only if one is expected /// require a blayer (ibl in run2) hit only if one is expected
if ( ( t->expectBL() || t->hasTruth() ) && t->bLayerHits()<1 ) selected = false; if ( ( t->expectBL() || t->hasTruth() ) && t->bLayerHits()<1 ) selected = false;
if ( m_type=="vtight" && t->pixelHits()==0 ) selected = false;
} }
else if ( m_type=="tight-tau" ) { else if ( m_type=="tight-tau" ) {
if ( std::fabs(t->eta())>2.5 || std::fabs(t->pT())<m_pTMin ) selected = false; if ( std::fabs(t->eta())>2.5 || std::fabs(t->pT())<m_pTMin ) selected = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment