CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

loopername Class Reference

Inheritance diagram for loopername:
edm::ESProducerLooper edm::ESProducer edm::EventSetupRecordIntervalFinder edm::EDLooper edm::ESProxyFactoryProducer edm::EDLooperBase edm::eventsetup::DataProxyProvider

List of all members.

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

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 38 of file edlooper.cc.


Member Typedef Documentation

typedef perl loopername::if(1 eq scalar(@::datatypes)) [inline]

Definition at line 43 of file edlooper.cc.

{ $result="std::auto_ptr<$::datatypes[0]>"; } else { $result="edm::ESProducts<"; $line = 0; foreach $type ( @::datatypes ) { if ($line) { $result = "$result, "; } $result= "$result $type";  $line =1;} $result="$result>"; }  @\perl ReturnType;

Constructor & Destructor Documentation

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.)

}

Member Function Documentation

foreach loopername::$type ( @::datatypes  ) [inline]

Definition at line 43 of file edlooper.cc.

Referenced by produce().

{ $result="std::auto_ptr<$::datatypes[0]>"; } else { $result="edm::ESProducts<"; $line = 0; foreach $type ( @::datatypes ) { if ($line) { $result = "$result, "; } $result= "$result $type";  $line =1;} $result="$result>"; }  @\perl ReturnType;
void loopername::beginOfJob ( ) [virtual]

Reimplemented from edm::EDLooperBase.

Definition at line 103 of file edlooper.cc.

{
}
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]

Reimplemented from edm::EDLooperBase.

Definition at line 131 of file edlooper.cc.

{
}
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(), and python::Vispa::Plugins::EdmBrowser::EdmDataAccessor::eq().

{
   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.

{
}

Member Data Documentation

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.