1 | #include "MMcTrigHeader.hxx"
|
---|
2 |
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 |
|
---|
6 | //==========
|
---|
7 | // MMcTrigHeader
|
---|
8 | //
|
---|
9 | // This class contains the MonteCarlo information
|
---|
10 | // of the trigger simulation for the current run.
|
---|
11 | // The information is saved only once, whatever the
|
---|
12 | // number of events is
|
---|
13 | //
|
---|
14 | // This is the second version of this output class. Old root files, which have
|
---|
15 | // a previous version of this class, are still compatibles and can be used.
|
---|
16 | // But of course, you can no try to get infromatino in these old files about
|
---|
17 | // the new data members.
|
---|
18 | //
|
---|
19 | // The following data member have been introduced in this second version
|
---|
20 | // and they do not exist in the previous one:
|
---|
21 | //
|
---|
22 | // Float_t fElecNoiseTrig; The width of the gaussian noise is that times
|
---|
23 | // the amplitude of the single phe response
|
---|
24 | // for the trigger
|
---|
25 | //
|
---|
26 | /////////////////////////
|
---|
27 |
|
---|
28 | ClassImp(MMcTrigHeader);
|
---|
29 |
|
---|
30 | using namespace std;
|
---|
31 |
|
---|
32 |
|
---|
33 | MMcTrigHeader::MMcTrigHeader() {
|
---|
34 | //
|
---|
35 | // default constructor
|
---|
36 | // set all values to zero
|
---|
37 |
|
---|
38 | Int_t i;
|
---|
39 |
|
---|
40 | fTopology = -1 ;
|
---|
41 | fMultiplicity = -1 ;
|
---|
42 | for(i=0;i<CAMERA_PIXELS;i++){
|
---|
43 | fThreshold[i] = -1.0;
|
---|
44 | }
|
---|
45 |
|
---|
46 | fTrigPattern[0]=0;
|
---|
47 | fTrigPattern[1]=0;
|
---|
48 |
|
---|
49 | fTrigShape=0.0;
|
---|
50 | fAmplTrig=RESPONSE_AMPLITUDE;
|
---|
51 | fFwhmTrig=RESPONSE_FWHM;
|
---|
52 | fOverlapingTime=TRIGGER_OVERLAPING;
|
---|
53 | fGateLeng=TRIGGER_GATE ;
|
---|
54 | }
|
---|
55 |
|
---|
56 | MMcTrigHeader::~MMcTrigHeader() {
|
---|
57 | //
|
---|
58 | // default destructor
|
---|
59 | //
|
---|
60 | }
|
---|
61 |
|
---|
62 |
|
---|
63 | void MMcTrigHeader::Print(Option_t *opt) const {
|
---|
64 | //
|
---|
65 | // print out the data member on screen
|
---|
66 | //
|
---|
67 | cout << endl;
|
---|
68 | cout << "Monte Carlo Trigger output:" << endl;
|
---|
69 | cout << " XSTopology Trigger in this run: " << fTopology << endl;
|
---|
70 | cout << " Multiplicity Trigger in this run: " << fMultiplicity << endl;
|
---|
71 | cout << " Trigger Pattern in this run: ";
|
---|
72 | cout << fTrigPattern[0] << ", " << fTrigPattern[1] << endl;
|
---|
73 | cout << endl;
|
---|
74 | }
|
---|