16 gSystem->Load(
"libFWCoreFWLite");
20 std::cout <<
"Usage : " <<
argv[0] <<
" [your_cutflow_only.py] " 21 <<
"[cutflow_name] " << std::endl;
26 std::cout <<
" ERROR: ParametersSet '" <<
argv[2] <<
"' is missing in your configuration file" << std::endl;
36 throw cms::Exception(
"InvalidConfiguration") <<
"IDs are not allowed to have untracked parameters" 37 <<
" in the configuration ParameterSet!";
43 const EVP_MD* md = EVP_get_digestbyname(
"SHA1");
44 unsigned int md_len = 0;
45 unsigned char id_md5_[EVP_MAX_MD_SIZE];
47 EVP_DigestInit_ex(mdctx, md,
nullptr);
48 EVP_DigestUpdate(mdctx, (
const unsigned char*)tracked.c_str(), tracked.size());
49 EVP_DigestFinal_ex(mdctx, id_md5_, &md_len);
52 printf(
"%s : ",
argv[2]);
53 for (
unsigned i = 0;
i < md_len; ++
i) {
54 printf(
"%02x", id_md5_[
i]);
ParameterSet trackedPart() const
int main(int argc, char **argv)
static void enable()
enable automatic library loading
std::unique_ptr< edm::ParameterSet > readPSetsFrom(std::string const &fileOrString)
std::string dump(unsigned int indent=0) const