UserUtils
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
usr::EDNtupleProducer Class Referenceabstract
Inheritance diagram for usr::EDNtupleProducer:
usr::PluginAlias< EDMPLUGIN >

Public Member Functions

 EDNtupleProducer (const edm::ParameterSet &, const std::string &treename)
 
template<>
void SetValue (const std::string &name, const double x)
 
template<>
void SetValue (const std::string &name, const float x)
 
template<>
void SetValue (const std::string &name, const int x)
 
template<>
void SetValue (const std::string &name, const bool x)
 
- Public Member Functions inherited from usr::PluginAlias< EDMPLUGIN >
 PluginAlias (const edm::ParameterSet &config)
 

Protected Member Functions

template<typename >
void AddCollection (const std::string &)
 
template<typename T >
std::vector< T > & Col (const std::string &)
 
template<typename >
void AddValue (const std::string &)
 
template<typename T >
void SetValue (const std::string &, const T)
 
template<>
void AddCollection (const std::string &name)
 
template<>
void AddCollection (const std::string &name)
 
template<>
void AddCollection (const std::string &name)
 
template<>
std::vector< float > & Col (const std::string &name)
 
template<>
std::vector< int > & Col (const std::string &name)
 
template<>
std::vector< bool > & Col (const std::string &name)
 
template<>
void AddValue (const std::string &name)
 
template<>
void AddValue (const std::string &name)
 
template<>
void AddValue (const std::string &name)
 
- Protected Member Functions inherited from usr::PluginAlias< EDMPLUGIN >
template<typename TYPE >
edm::EDGetToken GetToken (const std::string &configtag)
 template class for getting the EdmToken from the initializer configuration parameter set. More...
 
template<typename TYPE >
edm::EDGetToken GetRunToken (const std::string &configtag)
 Same template function as GetToken() except for getting Run level objects.
 
template<typename TYPE >
edm::Handle< TYPE > MakeHandle (const edm::Event &event, const edm::EDGetToken tok)
 Construction for a handle.
 
TObject * GetFileObj (const std::string &filetag, const std::string objtag)
 getting a clone of an object described in a file. See static function for full documentation.
 
std::string GetFilePath (const std::string &filetag)
 getting the full path to a file. See static function for full documentation.
 

Protected Attributes

edm::Service< TFileService > fs
 
TTree * tree
 
std::map< std::string, std::unique_ptr< std::vector< float > > > _float_collection
 
std::map< std::string, std::unique_ptr< std::vector< int > > > _int_collection
 
std::map< std::string, std::unique_ptr< std::vector< bool > > > _bool_collection
 
std::map< std::string, std::unique_ptr< float > > _float_map
 
std::map< std::string, std::unique_ptr< int > > _int_map
 
std::map< std::string, std::unique_ptr< bool > > _bool_map
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) final
 
virtual bool np_analyze (const edm::Event &, const edm::EventSetup &)=0
 
void clear_collections ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from usr::PluginAlias< EDMPLUGIN >
static std::string GetFilePath (const edm::ParameterSet &config, const std::string &filetag)
 returing the string to a path in the parameterset if an EDM::FileInPath was used.
 
static TObject * GetFileObj (const edm::ParameterSet &config, const std::string &filetag, const std::string &objtag)
 Given a file path in the form of an EDM::FileInPath, and a object key as a parameter set string. More...
 

The documentation for this class was generated from the following files: