24 #include "PhysicsTools/MVAComputer/interface/ProcessRegistry.icc" 56 if (ctx != config.
ctx) {
61 if (config.
loop && !ctx)
62 config.
loop =
nullptr;
63 else if (!config.
loop && ctx)
68 for (std::vector<Variable::Flags>::const_iterator iter = flags.begin(); iter != flags.end(); ++iter)
86 std::unique_ptr<PhysicsTools::VarProcessor::Dummy>
tmp{
95 <<
"Caught exception when building processor: " << name <<
" message: " << std::endl
96 << e.
what() << std::endl;
112 std::vector<double> &
deriv)
const {
119 unsigned int size = 0;
121 size += (iter++).
size();
122 bool empty = matrix.empty();
123 assert(size != 0 || empty);
124 unsigned int out = empty ? 0 : (matrix.size() /
size);
126 if (matrix.size() != out * size || (out > 1 && (
int)out != outConf[out_] - outConf[0]))
128 <<
"Derivative matrix implausible size in " <<
typeid(*this).name() <<
"." << std::endl;
131 if (!matrix.empty()) {
135 for (
unsigned int i = 0;
i <
out;
i++) {
136 for (
unsigned int j = 0;
j <
size;
j++)
140 std::cout <<
"----------------" << std::endl;
143 std::cout <<
"======= in = " << in <<
", size = " << size <<
", out = " << out <<
", matrix = " << matrix.size()
147 unsigned int sz = (outConf[out_] -
in) * in;
148 unsigned int oldSz = deriv.size();
152 double *
begin = &deriv.front() + (outConf[0] - in +
offset) * in;
153 double *
end = begin + out *
in;
154 if (begin < &deriv.front() + oldSz)
160 double *m0 = &matrix.front();
166 int *curConf = conf + cur();
167 unsigned int pos = *curConf;
169 std::cout <<
" -> cur = " << cur() <<
", pos = " << pos << std::endl;
171 if (loop && curConf >= loop) {
176 unsigned int n = loop ? (curConf[1] - curConf[0]) : 1;
177 for (
unsigned int j = 0;
j <
n; m0++,
j++, pos++) {
179 std::cout <<
" multip " << j << std::endl;
186 const double *
q = &deriv.front() + (pos -
in) * in;
187 for (
const double *
m = m0; p <
end;
m +=
size, q -=
in)
188 for (
unsigned int k = 0;
k <
in;
k++)
194 for (
const double *
m = m0; p <
end;
m +=
size, p +=
in)
201 std::cout <<
"================" << std::endl;
202 for (
const double *
p = &deriv.front();
p != &deriv.front() + deriv.size();) {
203 for (
unsigned int j = 0;
j <
in;
j++)
207 std::cout <<
"================" << std::endl;
220 registerProcess(
char const *,
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
char const * what() const override
static std::string const input
edmplugin::PluginFactory< PhysicsTools::VarProcessor::PluginFunctionPrototype > VPPluginFactory
def convert(infile, ofile)
std::string typeDemangle(char const *mangledName)