forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#159 from makortel/cmsswIntegration
Developments needed for interfacing with CMSSW
- Loading branch information
Showing
103 changed files
with
677 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include "ConfigWrapper.h" | ||
#include "Config.h" | ||
#include "MaterialEffects.h" | ||
#include "TrackerInfo.h" | ||
|
||
namespace mkfit { | ||
namespace ConfigWrapper { | ||
void initializeForCMSSW(SeedCleaningOpts seedClean, BackwardFit backfit, bool silent) { | ||
Config::seedInput = cmsswSeeds; | ||
Config::geomPlugin = "CMS-2017"; | ||
Config::silent = silent; | ||
Config::cmssw_export = true; | ||
|
||
if(seedClean == SeedCleaningOpts::cleanSeedsN2) { | ||
Config::seedCleaning = cleanSeedsN2; | ||
} | ||
|
||
switch(backfit) { | ||
case BackwardFit::noFit: | ||
Config::backwardFit = false; | ||
break; | ||
case BackwardFit::toFirstLayer: | ||
Config::backwardFit = true; | ||
Config::backwardFitPCA = false; | ||
break; | ||
case BackwardFit::toPCA: | ||
Config::backwardFit = true; | ||
Config::backwardFitPCA = true; | ||
break; | ||
} | ||
|
||
TrackerInfo::ExecTrackerInfoCreatorPlugin(Config::geomPlugin, Config::TrkInfo); | ||
|
||
fillZRgridME(); | ||
} | ||
|
||
void setNTotalLayers(int nTotalLayers) { | ||
Config::nTotalLayers = nTotalLayers; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef ConfigWrapper_h | ||
#define ConfigWrapper_h | ||
|
||
namespace mkfit { | ||
/** | ||
* The purpose of this namespace is to hide the header of Config.h | ||
* from CMSSW. This header contain uses of the build-time | ||
* configuration macros, that should remain as internal details of | ||
* MkFit package. | ||
*/ | ||
namespace ConfigWrapper { | ||
enum class SeedCleaningOpts { | ||
noCleaning, | ||
cleanSeedsN2 | ||
}; | ||
enum class BackwardFit { | ||
noFit, | ||
toFirstLayer, | ||
toPCA | ||
}; | ||
|
||
void initializeForCMSSW(SeedCleaningOpts seedClean, BackwardFit backfit, bool silent); | ||
|
||
void setNTotalLayers(int nTotalLayers); | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
|
||
#include <cmath> | ||
|
||
using namespace mkfit; | ||
|
||
namespace | ||
{ | ||
float getTheta(float r, float z) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.