Public Types | |
typedef perl | if (1 eq scalar(@::datatypes)) |
Public Member Functions | |
foreach | $type (@::datatypes) |
virtual void | beginOfJob () |
virtual Status | duringLoop (const edm::Event &, const edm::EventSetup &) |
virtual void | endOfJob () |
virtual Status | endOfLoop (const edm::EventSetup &) |
loopername (const edm::ParameterSet &) | |
ReturnType | produce (const recordname &) |
virtual void | startingNewLoop (unsigned int) |
~loopername () | |
Public Attributes | |
$line = 0 | |
else | $result = "edm::ESProducts<" |
$result = "$result>" | |
perl | ReturnType |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 38 of file edlooper.cc.
typedef perl loopername::if(1 eq scalar(@::datatypes)) [inline] |
loopername::loopername | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 67 of file edlooper.cc.
References edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); //now do what ever other initialization is needed }
loopername::~loopername | ( | ) |
Definition at line 77 of file edlooper.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
foreach loopername::$type | ( | @::datatypes | ) | [inline] |
Definition at line 43 of file edlooper.cc.
Referenced by produce().
void loopername::beginOfJob | ( | ) | [virtual] |
loopername::Status loopername::duringLoop | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [virtual] |
Called after all event modules have had a chance to process the edm::Event.
Implements edm::EDLooper.
Definition at line 116 of file edlooper.cc.
References edm::EDLooperBase::kContinue.
{ return kContinue; }
void loopername::endOfJob | ( | ) | [virtual] |
virtual Status loopername::endOfLoop | ( | const edm::EventSetup & | ) | [virtual] |
loopername::ReturnType loopername::produce | ( | const recordname & | iRecord | ) |
Definition at line 92 of file edlooper.cc.
References $line, $result, $type(), Vispa::Plugins::EdmBrowser::EdmDataAccessor::eq(), and hitfit::scalar().
{ using namespace edm::es; @perl $result=""; foreach $type (@::datatypes) {$result ="$result std::auto_ptr<$type> p$type ;\n";} @\perl return @perl if( 1 eq scalar( @::datatypes ) ) { $result="p$::datatypes[0]" } else { $result="products("; $line = 0; foreach $type ( @::datatypes ) { if ($line) { $result = "$result,"; } $result= "$result $type"; $line +=1; } $result="$result)"; } @\perl ; }
void loopername::startingNewLoop | ( | unsigned | int | ) | [virtual] |
Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 110 of file edlooper.cc.
{ }
loopername::$line = 0 |
Definition at line 43 of file edlooper.cc.
Referenced by produce().
else loopername::$result = "edm::ESProducts<" |
Definition at line 43 of file edlooper.cc.
Referenced by produce().
loopername::$result = "$result>" |
Definition at line 43 of file edlooper.cc.
Definition at line 43 of file edlooper.cc.