CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
InputFile.h
Go to the documentation of this file.
1 #ifndef IOPool_Input_InputFile_h
2 #define IOPool_Input_InputFile_h
3 
4 /*----------------------------------------------------------------------
5 
6 Holder for an input TFile.
7 ----------------------------------------------------------------------*/
9 
10 #include "Rtypes.h"
11 #include "TFile.h"
12 #include "TObject.h"
13 
14 #include "boost/scoped_ptr.hpp"
15 #include "boost/utility.hpp"
16 
17 #include <string>
18 #include <vector>
19 
20 namespace edm {
21  class InputFile : private boost::noncopyable {
22  public:
23  explicit InputFile(char const* fileName, char const* msg);
24  ~InputFile();
25  void Close();
26  void inputFileOpened(std::string const& logicalFileName,
27  std::string const& inputType,
28  std::string const& moduleName,
29  std::string const& label,
30  std::string const& fid,
31  std::vector<std::string> const& branchNames);
32  void eventReadFromFile(unsigned int run, unsigned int event) const;
33  void reportInputRunNumber(unsigned int run) const;
34  void reportInputLumiSection(unsigned int run, unsigned int lumi) const;
35 
36  TObject* Get(char const* name) {return file_->Get(name);}
37  TFileCacheRead* GetCacheRead() const {return file_->GetCacheRead();}
38  void SetCacheRead(TFileCacheRead* tfcr) {file_->SetCacheRead(tfcr);}
39  void logFileAction(char const* msg, char const* fileName) const;
40  private:
41  boost::scoped_ptr<TFile> file_;
42  std::string fileName_;
44  };
45 }
46 #endif
void reportInputLumiSection(unsigned int run, unsigned int lumi) const
Definition: InputFile.cc:62
const std::string & label
Definition: MVAComputer.cc:186
JobReport::Token reportToken_
Definition: InputFile.h:43
tuple lumi
Definition: fjr2json.py:41
TFileCacheRead * GetCacheRead() const
Definition: InputFile.h:37
void inputFileOpened(std::string const &logicalFileName, std::string const &inputType, std::string const &moduleName, std::string const &label, std::string const &fid, std::vector< std::string > const &branchNames)
Definition: InputFile.cc:32
void logFileAction(char const *msg, char const *fileName) const
Definition: InputFile.cc:83
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::size_t Token
Definition: JobReport.h:44
std::string fileName_
Definition: InputFile.h:42
boost::scoped_ptr< TFile > file_
Definition: InputFile.h:41
TObject * Get(char const *name)
Definition: InputFile.h:36
void Close()
Definition: InputFile.cc:68
InputFile(char const *fileName, char const *msg)
Definition: InputFile.cc:14
void SetCacheRead(TFileCacheRead *tfcr)
Definition: InputFile.h:38
list fid
Definition: NewTree.py:51
void eventReadFromFile(unsigned int run, unsigned int event) const
Definition: InputFile.cc:50
void reportInputRunNumber(unsigned int run) const
Definition: InputFile.cc:56