ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/ObjectService/interface/ObjectService.h
Revision: 1.1
Committed: Wed Jul 30 09:04:39 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Start of ObjectService.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: ObjectService.h,v 1.7 2008/07/03 08:25:12 loizides Exp $
3 //
4 // ObjectService
5 //
6 // This service can be used in the config files to provide access to the TreeWriter,
7 // for example:
8 //
9 // service = ObjectService {
10 //
11 // }
12 //
13 // Authors: C.Loizides
14 //
15 //--------------------------------------------------------------------------------------------------
16
17 #ifndef MITPROD_OBJECTSERVICE_H
18 #define MITPROD_OBJECTSERVICE_H
19
20 #include "DataFormats/Provenance/interface/EventID.h"
21 #include "DataFormats/Provenance/interface/Timestamp.h"
22 #include "FWCore/Framework/interface/Event.h"
23 #include "FWCore/Framework/interface/EventSetup.h"
24
25 #include <TObjArray.h>
26
27 namespace edm
28 {
29 class ActivityRegistry;
30 class ParameterSet;
31 class ModuleDescription;
32 }
33
34 namespace mithep
35 {
36 class ObjectService {
37 public:
38 ObjectService(const edm::ParameterSet &cfg, edm::ActivityRegistry &ar);
39 ~ObjectService();
40
41 // TreeWriter *get(const char *name=0);
42
43 private:
44 #if 0
45 void preEventProcessing(const edm::EventID &id, const edm::Timestamp &t);
46 void postEventProcessing(const edm::Event& e, const edm::EventSetup& es);
47 void postBeginJob();
48 void postEndJob();
49 #endif
50 TObjArray obs_; //array holding the hash table
51
52 // parameters for service
53 std::vector<std::string> hashNames_; //hash names
54 };
55 }
56 #endif