Fork me on GitHub

source: svn/trunk/Examples/interface/Analysis_Ex.h@ 150

Last change on this file since 150 was 84, checked in by uid677, 16 years ago

add output tree to example

File size: 1.4 KB
RevLine 
[81]1#ifndef ANALYSIS_EX_H
2#define ANALYSIS_EX_H
3
4#include <TROOT.h>
5#include <TChain.h>
6#include <TFile.h>
7#include <TParticle.h>
8#include <TObject.h>
9#include <TFormula.h>
10#include <TLorentzVector.h>
11#include "TClonesArray.h"
12#include <vector>
13#include <string>
14
15#include "Utilities/ExRootAnalysis/interface/ExRootTreeReader.h"
16#include "Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h"
17#include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h"
18
19#include "Utilities/ExRootAnalysis/interface/TSimpleArray.h"
20
21#include "Utilities/ExRootAnalysis/interface/BlockClasses.h"
22
23#include <iostream>
24#include <sstream>
25#include <fstream>
26#include <iomanip>
27
28using namespace std;
29
30class Analysis_Ex
31{
32public :
33
34 Analysis_Ex(string CardWithCuts,string LogName);
35 ~Analysis_Ex();
36
[84]37 void Run(ExRootTreeReader *treeReaderGen, ExRootTreeReader *treeReaderRec, ExRootTreeReader *treeReaderTrig, ExRootTreeWriter *treeWriter);//Analyze de l'event
[81]38 void WriteOutput(string LogName);
39
40private :
41
42 int total, cut_trig,cut_1,cut_2;
43
44 //******** Thresholds definition ***********
45 float INV_MASS_LL;
46 float PT_ELEC,PT_MUON;
47
48 TSimpleArray<TRootElectron> SubArrayEl(const TClonesArray *ELEC,float pt);
49 TSimpleArray<TRootMuon> SubArrayMu(const TClonesArray *MUON,float pt);
50
51};
52
[84]53//------------------------------------------------------------------------------
54
55class TRootInvm: public TObject
56{
57public:
58
59Float_t M;
60
61 ClassDef(TRootInvm, 1)
62};
63
64
[81]65#endif
Note: See TracBrowser for help on using the repository browser.