As with the .cpp file, the full header file is not shown here, but rather the portions that will require study.
//Inherits from probProcessor
class probTemplate : public probProcessor
{
public:
probTemplate(const char *name);
//Define your effInfo objects here
void defineEffInfo(std::map< std::string, eff_utils::EffInfo > &effInfo);
////////////////////////////////////////////////////////////
//These methods define the probability calculations
double calcProb(std::string version);
double P_Template(std::string version);
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
ClassDef(probTemplate, 0);
};
There's only one thing in this file that requires one to tinker, and that is the location of the probability methods within the header file. Specifically, the sections between lines of
////////////////////////////////////////////////////////////
One should place ones methods within this section. It will allow one a better organizational structure to ones probability processor.
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
Of course, one must change the names of the processor and methods (from probTemplate) in order to create a new processor as per the instructions.