-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preparing to include Method 3 result into HBHERecHit #11213
Conversation
A new Pull Request was created by @igv4321 (Igor Volobouev) for CMSSW_7_6_X. Preparing to include Method 3 result into HBHERecHit It involves the following packages: DataFormats/HcalRecHit @cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1
|
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
Somewhat more compact version is the following. template<typename T> struct AHelper {
template<typename B> static int test(decltype(B().a()) );
template<typename B> static char test(...);
static bool constexpr hasIt = std::is_same<decltype(AHelper::test<T>(0)), int>::value;
};
template<typename T, bool> struct AGetter {
inline static float get_a(T const& a, float xx) {return xx;}
};
template<typename T> struct AGetter<T, true> {
inline static float get_a(T const& a, float xx) {return a.a();}
};
template<typename T>
float get_a(T const& a, float xx = -1e21) {return AGetter<T, AHelper<T>::hasIt >::get_a(a,xx); } |
May we get it merged for Igor to proceed with making Method 3 permanently running (as Method 0 does) ? |
+1 |
Preparing to include Method 3 result into HBHERecHit
Making space for storing "method 3" energy in HBHERecHit,
at the request of "Early 2015 Physics Commissioning" group.